Live data from Hacker News

Ask HN: What are your favorite developer-efficiency tips?

news.ycombinator.com

141–150 of 532 posts

Re: Ask HN: What are your favorite developer-efficiency tips?

#141
Make use of .bashrc (I'm sure other shells have similar).

For projects I'll be working on for a while, rather than CD into a nested directory, activate a virtual envirnoment etc. I have simple bash shortcuts that perform all the steps. Also for SSHing and many other common task.

On this note, (probably doesn't apply to many here) but if you aren't lighting fast with a terminal and are dragging files around etc. you are usually doing work in a sub-optimal way. Learning bash (or some shell, I don't consider I'm an expert) a little more all the time really pays off. Likewise VIM.

Re: Ask HN: What are your favorite developer-efficiency tips?

#142

KEEP NOTES. Write everything down. Write down what you were thinking about, how you felt about decisions, things you tried for bug fixes. you never know when this stuff will be useful to you again. I keep really basic markdown notes in a git repo, roughly one file per day with an ISO date name, but some things I give a separate file name (still with the iso date, but with some descriptive words) for things that might…

I do the same, using the Zettelkasten method. I've found it very useful. I write many small notes as markdown files and link them together, storing them in a git repository.

I wrote a bit about Zettelkästen (and the practices I follow), in case others find it useful: https://github.com/alefore/weblog/blob/master/zettelkasten.m...

Re: Ask HN: What are your favorite developer-efficiency tips?

#143
Get out of the habit of watching TV.

Some downtime is important and healthy, but it is too easy to waste hours and stay up late staring at a television.

Not a developer tip specifically, but not wasting time and sleeping well is the best way to improve your efficiency at everything.

Re: Ask HN: What are your favorite developer-efficiency tips?

#145

- Your eyes are the only broadband connection into the brain, and they have millenia of pattern recognition training built into them. When solving problems like debugging, refactoring or data preparation, consider arranging information in a way that takes advantage of this. When it's in the right shape, irregularities or patterns will often just jump at you. - Relatedly, your eyes are also extremely well-adapted to d…

Oddly enough I can't use IDE's. They simply throw way too much information on the screen, and my brain gets overloaded. So I have to sheepishly confess that I do my programming in IDLE. There, I said it. But I think a take-home lesson is that the "right" visual environment is a function of your eyes and your brain, and might not necessarily be the most sophisticated environment.

just wondering, why idle instead of vscode with minimal extensions, or sublime text maybe?

Re: Ask HN: What are your favorite developer-efficiency tips?

#146

Get out of the habit of watching TV. Some downtime is important and healthy, but it is too easy to waste hours and stay up late staring at a television. Not a developer tip specifically, but not wasting time and sleeping well is the best way to improve your efficiency at everything.

+1 same sentiment to Call of Duty (ie videogames)

Re: Ask HN: What are your favorite developer-efficiency tips?

#147

Get out of the habit of watching TV. Some downtime is important and healthy, but it is too easy to waste hours and stay up late staring at a television. Not a developer tip specifically, but not wasting time and sleeping well is the best way to improve your efficiency at everything.

It's only a waste when one considers it wasteful.

Re: Ask HN: What are your favorite developer-efficiency tips?

#148

Learn to touch-type properly. I'm not a shit hot typist or anything, but it does make hours on a keyboard more pleasant. And (hate me) I do judge other devs on it. If someone can't be bothered to invest a few tens of hours on such a key productivity enhancement then what does that say?

I'd love to subthread hear from people if alternate keyboard layouts have made a difference. ?

Re: Ask HN: What are your favorite developer-efficiency tips?

#149
post #33

Earlier quoted context omitted.

I have a bind to turn off all my binds if anyone else wants to use my computer. And I can still use other people's computers although with some pain.

as a caps-to-ctrl remapper, I can't imagine how crippling it would be to have serious remaps or Dvorak or something and try to use someone else's keyboard. Doesn't seem worth it.

A buddy of mine uses dvorak with a qwerty keyboard and an inline usb switch to engage dvorak. Pair programming and everything.

Re: Ask HN: What are your favorite developer-efficiency tips?

#150
I only have only one real tip for you: learn to get in the zone.

When I am in the zone I have an intense desire to create a beautiful masterpiece in my chosen art and revel in its elegance and beauty. When I am in the zone outside distractions are eliminated and my mind is fully focused on the task at hand. When I am truly in the zone matters such as health, family, children, work and (when I was younger) even hunger or the need to sleep disappear; all that remains is the task. My brain has maximum cycles to iterate again and again until I achieve greater understanding and/or arrive at a solution.

I do not have very good general tips on how to get in the zone. I have some things that work for me, although not always. They include:

- Real-world isolation: These days where everyone is at home, I go to a corner in my garden where my family knows not to bother me.

- Virtual-world isolation: No emails. No browsing. No notifications of any kind. Phone on silent. Absolutely no Slack, Teams, etc!

- Friction-free programming environment: If the build takes 20 minutes, then it will be hard to remain in the zone. If the Mac has stuck keys get them fixed or buy a laptop from a different brand.

- Headphones with some favorite music: For programming I like trance, the more repetitive the better. I often use this youtube channel: https://www.youtube.com/user/MrLemilica2

- Review previous work on the subject: This acts as a brain warm up for me and usually puts me in the right mood.

- Some times work better than others: When I was younger it was far easier to get in the zone at night. These days I do not have that luxury because of family.

- Work on a problem that excites you: It is much easier to get in the zone when the subject matter interests you. It is harder (although still possible) when the subject is less interesting.

- No context switching: Choose a task and stick to it for at least a few hours.

- Get the non-enjoyable tasks out of the way: (This may not work for everyone.) I like to complete tasks that I do not enjoy (e.g. administrative or legal) first. I can then continue my work care-free instead of having this niggling thought in the back of my mind: "do not forget to respond to the lawyer".

Post reply on HN