Live data from Hacker News

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

news.ycombinator.com

371–380 of 532 posts

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

#371

Earlier quoted context omitted.

> The investment you have to make to really grok static typing is quite large. It took about 2 years for me to be really comfortable in TS. That sounds a bit exaggerated from my experience. If anyone interested in TS got discouraged reading your comment, it took between like 2 days and 2 weeks for my team to be really comfortable in TS. If you already know JavaScript and if you already have some experience with stati…

To be fair, TypeScript's typing is very overloaded with stuff, and is much more complicated than Java or C#'s.

Doesn't mean it's hard to get started. It only means, if you want to type everything to the detail, you can do it.

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

#372
post #209
post #206

The biggest boost in productivity I've had in recent years is switching back to a statically typed language. TypeScript in my case. You can absolutely refactor and change course _so_ much quicker and with virtually no regressions at all. Just the other day we realized a feature I was building didn't handle an important case, and I had to really change the approach. Doing it in a JavaScript would have been dramaticall…

Used to love Python. Now, unless it has type hints, not so much. Used to hate static types, or at least I thought I did. Really, I just hated C++ and Java. Go is Bae, trying to learn some rust. Computers are rigid. The more rigid the lang you talk to them, the less you get bitten. Untyped python, bash, javascript, just not worth it imho.

It seems type hinting is coming to Ruby 3, which im looking forward to.

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

#373

I keep two diaries, both MS Word documents. In one, I write summaries of what I read about -- papers, blog posts, books, and articles that interest me, along with the google search term, authors, URL, quotable quotes etc. In the other, I put together a free-form running log of projects I am working on, along with feature ideas, benchmark results (and the parameters used to get it),etc. Why MS Word, you ask? I am ordi…

Typora is mark down based but is WYSIWYG.

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

#374

I can't say enough good things about a multiple clipboard manager. Not only is it useful to copy/paste multiple items in sequence, but it's a game changer to be able to quickly retrieve a code snippet, or URL, or CLI command you used recently; and/or, to trivially stash one just in case you'll want it later. (Primary downside: using a computer without multiple clipboards feels broken. What do you mean it "forgot" the…

Yes! And please don't choose one that's too much powerful (usually means complexity) and bloated. On Windows over the decades I've tried a lot of them, and ATM, clipdiary is the best, because it does what I need (just keep a list of clip history and let me select and paste any of them handily) and not slow.

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

#375
1. I use Visual Code with carefully chosen extensions that alert me all the time about error.

2. I have enabled linter autofix on safe. It fixes a lots of stuff very good fast.

3. I wrote several own extensions. One for example shows error in the code when i do some mistakes i normally do. It also boosts my speed because i dont go through the whole process of finding these errors.

4. Since i code using TypeScript and Angular i use a lots of OOP and composition to reuse easily and modify code fast. And have less errors. OOP gives great propert and method suggestions in VSC so there is less space for errors.

5. I have a lots of generators and snippets custom for my projects. So writing similar things is blazing fast.

6. I dont overcomplicate stuff. Write everything as simple as possible so it is easy to refactor and modify and understand.

7. I use bash with a menu to have complicated operations like git operations to be done easily. Without clicking with mouse. It is a boost.

8. I have written also some software in C# that operates on the TS code base. I use it to generate some more complicated stuff that includes multiple files at once. I use code comments to put for example snippet examples into Angular code. Than a C# app looks for these in whole project and generates snippets for VSC automatically.

9. An extension for VSC executes tests one by one. I can choose test to start. It is faster than start all each time.

10. CI/CD, unit testing, linting, end to end tests give a boost if done right.

11. I side from solutions that are hype but cause loads of code to be written. For example some silly state management libraries. Overkill.

12. My PC is packed with best hardware, updated regularly to be fastest as possible. Since every second you wait ia a second you waste. PC ia better because you can upgrade it cheaper than laptop. Remote access is the key if you want use laptop.

13. Good sleep and diet, sports is essential for good performance. And music.

14. I never go into the zone if i am not 100% sure what and how to do stuff. In the zone you arw blazing fast, but be careful to not write useless code because of bad approach.

15. Notes notes notes. For everything. Refactored often. JIRA as a single source of tasks. Notepad as a detail task list.

16. I adjust tasks to the time of day and my mental focus. Some easy task for first half hour, and than the big ones for the rest of the morning.

17. I have wrote a lots on keyboard to have very high speed. It saves me time writing (actually you need to use keyboard when you are a dev anyways) and less wasted time for typos.

18. All notifications off. All spam sms, emails, calls off. No distractors.

19. I never code when i am not 100% sure what and how to do it. No guessing, always asking. A lots of wasted time saved. Never being ashamed to ask even the most stupid question.

20. I always remember that things take time and not stress too much about it. Stress harms performance if too high. But also some stress can let you go into the zone. And this is magical place to be in.

I enjoy coding. Always had. For 20 years.

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

#376
post #360

The things I've benefited from most are not tools but practices. - Question the work Always be questioning whether the thing you're doing really needs to be done. Is there a way to not do it? Is there a way to do something better instead? - Park downhill Before putting a project or incomplete task away, make notes of what the next thing was that you were going to work on. This lets you bypass that 10 minute orientati…

Regarding the todo list, I find that having a text-format todo list for the current day can provide structure and sense of accomplishment (especially at the end of the day). After completing a task I would put a checkmark emoji in front of it. Such a list can also bring me back on track after a lunch or a mentally-demanding task.

If I know that I won't be able to do a certain task today, I put it in advance for the next day's todo list. Not completed tasks will roll to the next day.

Plan for May 11:

  - Contact Person 1 regarding Thing 1
  - [checkmark] Review Pull Request 1 made by Person 2
  - Implement Thing 1 from Feature 1
  - Read Email 1 from Person 3
Plan for May 12:

  - Implement Thing 2 from Feature 1
  - Investigate Thing 3

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

#377
post #333

This is a bit of a departure from the question you asked, but I'm always amazed how much people tend to hyper-tune their dev environments, when in reality, most of my time is spent thinking how not to write code. I get just as much work done on a completely vanilla macbook with VS code installed on it as my editor-obsessed peers with obsessively optimized setups can. How much actual code are you writing? I'd be reall…

IIRC, the average developer output is 10 lines of code per day.

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

#378

1. I use Visual Code with carefully chosen extensions that alert me all the time about error. 2. I have enabled linter autofix on safe. It fixes a lots of stuff very good fast. 3. I wrote several own extensions. One for example shows error in the code when i do some mistakes i normally do. It also boosts my speed because i dont go through the whole process of finding these errors. 4. Since i code using TypeScript and…

Bonus: when you have the highest effeciency, the next step is to help other boost theirs. I think this is something important too. Some people get to the 10x point and think itis enough. It is not. Your team has to be too. If you are the only one, you did only tiny part of your job

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

#379
post #27

A couple others have mentioned shell tricks. One of my favorites is using Alt-. (in Bash and Zsh) to insert the last argument of the previous command. Press it multiple times and it will cycle through the last argument of all previous commands. It's great for when you want to, say, `ls thing` and then `vim thing`. Yesterday I went looking for a similar key that would insert a copy of the last argument on the current…

Thanks! I didn't know about Alt-. I'm using powershell and it works there too.

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

#380
post #293

I switch between commonly used apps with a single shortcut (e.g. ⌥E opens VSCode, ⌥D opens Chrome). Details http://frantic.im/macos-app-shortcuts I use a simple TODO file for side projects https://blog.frantic.im/all/todo-file-for-personal-projects/

Doesn't help with multiple windows of the same app, I'd guess?

That is/was a big problem with MacOS for me - I tried using alternative application switchers that displayed an icon for each window instead...

Then kinda settled in just using spaces and putting VsCode, Chrome and Iterm on the same places every time.

Post reply on HN