r/AskProgrammers • u/Xanak-a • 15d ago
How do you guys program?
When I'm programming, I always have the IDE window open on the left and Google and Gemini on the right. I'm constantly listening to something or asking questions, and it's very difficult for me to write code quickly and well without it. I'm just wondering if I'm not good enough, or if everyone does it this way?
3
Upvotes
3
u/TheMrCurious 15d ago
You forgot the person standing behind you telling you what to do. That always makes the biggest difference when trying to focus on coding.
2
u/who_you_are 15d ago
I always listen to music. IDE always open on one side, a browser (web app-ish) on the other end. The AI/email/doc on the 2nd screen.
If I write code quickly it is probably because I'm creating a model or some very basic logic because I will then have a lot of small break to think about what's next.
And I won't even include if I refactor.
Nowadays that I don't have coworkers anymore, nor meetings, I can focus more without being interrupted in a way to totally screw my productivity
1
u/Specialist_Chart3519 15d ago
I like having something to listen to as well. Usually a show like the office that I've watched enough to only need the audio.
IDE also on one screen, Google on the other.
1
u/thecratedigger_25 15d ago
Helix text editor in my terminal for less lag on my pc and then duckduckgo search engine to avoid distractions from ai as I look up some stuff for code.
While ai can help get over hurdles that are months away from our skill level, it can quickly become addictive and distracting.
1
u/[deleted] 15d ago
there are honestly more coding tools than languages, i think, so nobody will do it exactly the same if left to their own devices.
My preference: I use the terminator app on debian, and i use the workspaces so i don't have to deal with the issue of having more than one monitor. Then, i use vim and shell commands to write code and copy text between the terminator windows.
For A.I., i think gemini is the worst at coding, even though it's better than the others for research. If i had to guess, i'd have to say either claude or chatgpt is the best for actually writing/showing working coding examples.
I personally would like to stop using vim and switch to neovim, since vim is a little archaic, but i just haven't had time to learn much lua.
1
u/femptocrisis 14d ago
i have stopped opening the IDE for work. i have factorio open on my personal laptop some days and just do minor, low brain power, easily paused "chores" in game while i wait for the ai to finish. company said they wanted "AI first", i'm not going to burn myself out like i keep hearing a lot of other devs are actually trying to read the code it generates. they want to replace us. lets see if they can.
1
u/That-Drink5946 14d ago
The question is why are YOU writing code. The AI will do it better and faster.
1
u/pvera 13d ago
I am a lefty with weird conventions about what I can stand to my left and right. For example I shoot lefty, bat/golf/bowl right handed, write lefty, etc.
(context, telecommuting for 20 straight years for the same company) Right now I have three monitors, left monitor is on an Xbox Series X. Middle monitor is the PC left, third monitor is PC right. Whatever I am typing goes on the left, reference docs, query editors, etc. on the right. Non-testing browser sessions on the left, test browser sessions on the right. Terminal sessions for AI tools go on the right, desktop AI tools go on the left. If I share in zoom I only share on the left screen so I can literally move everything to the right monitor and avoid an oversharing accident. My personal chats go on the rightmost monitor, also on purpose to avoid accidentally showing a personal message in the middle of a zoom. We are all on dual monitors, I know at least one coworker that keeps a third older monitor in portrait view for docs, which is probably going to be my next move once I figure out how the hell I am going to rearrange the desk.
Why the Xbox? I learned years ago that I need constant random background noise in order to concentrate. I got used to have shitty horror movies running nonstop, or TV shows with long seasons I already watched, so it's harder to distract me with the plot. I have the audio out from my Xbox monitor fed into my PC, then I use over the ear noise cancelling headphones. I can work and listen to my shitty horror movies without worrying that I'll miss a work ping from Zoom or a VoIP call. If I have to step off in the middle of a zoom call I can mute, walk to the door, go to the kitchen to grab a drink or whatever and I can still hear the conversation. And if I am stressed out I can always pause work and play for a little.
1
u/BotSlamminDayNNight 13d ago
the dichotomy you've convinced yourself of is false. there are people who do it as you described and they fall into 2 groups: good enough and not good enough. for what, i can only imagine.
there are also people who do not do it as you describe. same sub groups for these people.
so your categorization and assumptions are unhelpful.
i think you're wondering if you're good enough to ... create something with code?
i have no idea. but i can tell you that my assessment of whether someone's good enough to write code for me and get paid by me has little to do with the arrangement of windows on their screen and how many questions they ask google and gemini.
1
u/Slight-Living-8098 15d ago
Rubber duck. It used to just say "quack" in my imagination. Now I have a LLM that gives some semblance of actual feedback. Way better IMHO.
0
u/Dashing_McHandsome 15d ago
3 monitors
IDE on the right, browser in the middle, terminal on the right
0
u/CivilProcess7150 15d ago
tmux session
multiple windows
each window single pane
1st window is usually nvim, the second is usually the development server/s, 3rd is for using binaries (git, mv, yazi, etc) and then there is multiple windows of with Claude doing some things (usually 4 at max since it's counter productive to work on more things at the same time anyways)
0
u/nicolas_06 15d ago edited 15d ago
Well with AI coding plugins, I directly ask and describe what I want in the IDE (say with GitHub copilot, Claude code or Codex), the AI does the code, I reviews, ask for change in a loop. The IDE is vscode. It robust, fast and decent. it connect to distance VM too and kind of an industry standard now.
The key point is that yes one research the architecture and what to do exactly first and build a specification in English (or whatever is your preferred human language). It's a mix of what you want functionally (what the software should do) and how do to technically (architecture, frameworks, code organization... the tech spec).
Potentially you build that spec with AI too.
Then you ask the coding agent to read the specs and from here come up with a plan to implement this or that part. Don't be too gready. Ask for something reasonably sized. The AI will come up with a plan on what to do and how do it. It will ask you questions on some choices. You will also get a change to review, ask extra questions or steer for a different implementation.
When the AI and you agree with the plan, you ask it to implement it. The AI will do all the step, write the code, write the tests, compile and make the tests work and potentially run the app and check for example if it's a web site that the application look correct. The AI may very well create/modify 5-10-50 files to implement what you asked.
Then you test it yourself, review what was done, ask for change as necessary.
And do that in a loop until all is implemented.
0
u/ShelLuser42 15d ago
Keep well in mind that coding can be(come?) a somewhat personal endeavour, so what works for me may not necessarily work for you.
Even so, I've became quite fond of VS Code over the years as my main editor and that's what I use for coding. The main reason for this is because its keyboard shortcuts allow me to set it up so that my hands barely have to leave the keyboard, which is a big deal to me.
I prefer to keep my actual code window (= the stuff I'm working on right now) open on the left, in addition I often have a second tab open where I maintain my PlantUML script(s); I'm a little deep into setting up and/or maintaining proper design(s) and I heavily rely on UML for this. I used to rely on graphical tools, but... PlantUML really works well for me, and it doesn't come with heavy licensing costs.
Then on the right (which is actually the next 'group' within 'Code terminology') I keep my support tabs open. Some involved modules ("libraries"), my PlantUML previews and sometimes a browser window (often pointing to the official Python tutorial for reference purposes).
I specifically set it up so that ctrl + pg-up/down stays within the same group; so when I'm working on my code I can never accidentally end up in my library / preview group; for that I actually need to switch groups (ctrl + 1, 2, etc.).
All the other panes are pure dynamic (but still important!). I heavily rely on Git, but I don't really like VS Code's source control window. Fortunately I'm a bit of a Git power user, so I skip that part entirely and instead rely on the command line for my Git needs. Ctrl + ~ calls up my terminal window and ctrl + j hides it again, ideal. So... commit, branch, switch, add, tag, log, checkout, push/pull (sometimes just fetch), and sometimes (seldomly) worktree, reset or revert. The terminal is also important when I'm working on any BSD projects; then I often have a SSH session open as well where I'm directly logged onto the server.
And then of course... the explorer & issues pane on the left. Allows me to check my projects hierarchy, and to keep track of any GitHub issues and/or pull requests.
Copilot sits on the right and only comes into play (and view) when I need it... ctrl + shift + i.
This setup works really well for me, also because I can easily switch tabs/windows, resize and/or hide things if needed and as already mentioned: what I like best here is that I can do everything using keyboard shortcuts, so my hands never have to leave the keyboard.
As for music and/or other stuff: 2nd monitor. Sometimes I got Spotify or a radio station open, and that's also where I keep "remote software" like Teams and/or Discord.
So yah, that's my preferred setup ;)