Ask HN: What are your favorite developer-efficiency tips?
11–20 of 532 posts
Re: Ask HN: What are your favorite developer-efficiency tips?
#12https://github.com/nikitavoloboev/dotfiles/blob/master/karab...
I go as far as binding keys to instantly type `console.log()` or `fmt.Println()` or the other language equivalent with my dot modifier key. Plus typing things like `Thank you` with dot+spacebar press.
https://github.com/nikitavoloboev/dotfiles/blob/master/karab...
The other tip that paid off in time is starting a wiki. And building an interface to access contents of the wiki instantly.
Re: Ask HN: What are your favorite developer-efficiency tips?
#13Re: Ask HN: What are your favorite developer-efficiency tips?
#14`rspecs alexa_api` translates to `rspec spec/services/alexa_api_service_spec.rb`
`rspecm startup` translates to `rspec spec/models/startup_spec.rb`
I also have a bunch of other shortcuts for repeating tasks like expiring Redis, dumping a test database for local testing, etc.
Re: Ask HN: What are your favorite developer-efficiency tips?
#15export HISTTIMEFORMAT='%F-%T'
PROMPT_COMMAND="${PROMPT_COMMAND:+$PROMPT_COMMAND ; }"'echo \ bash$SHELLNO $PWD "$(history 1)" >> ~/.bash_eternal_history'
Re: Ask HN: What are your favorite developer-efficiency tips?
#16Re: Ask HN: What are your favorite developer-efficiency tips?
#17Contrarian opinion, but often doing things manually rather than automated will save you time. Writing/debugging a script is fun, but more often than not it would have been faster to do things the dumb way. If a task is risky or repetitive daily, then sure, but often developers confuse "writing a script because too lazy to manually do the work" vs "get the task done as fast as possible".
Re: Ask HN: What are your favorite developer-efficiency tips?
#18C-r for interactive history search
Add this to you inputrc:
"\e[A": history-search-backward
"\e[B": history-search-forward
Now up and down arrows will search your history with whatever you already have typed at the prompt. Re-running a command often? Probably just have to type its first letter and hit up arrow once or twice.
Re: Ask HN: What are your favorite developer-efficiency tips?
#19RTFM (as in Read The Fine Manual). To me, the key for being productivity is understand throughly the "tools" we use: IDE, languages, libraries, framework cli, os, shell,... Read the implementation, the docs, the issue tracker, even the git history if you have time. When I started to learn vim, I tried many popular distribution without understand each of the plugins they included. And I almost gave up learning vim. It…
Some developers use alternate F-words for RTFM.
F-words like:
Fabulous or Fantastic or Friendly