HeadlinesBriefing favicon HeadlinesBriefing.com

Small Programming Tricks Boost Daily Productivity

Hacker News •
×

Engineering productivity often stems from small, practical nuggets of knowledge that require little mental overhead. Essential terminal tricks include using Ctrl+R for command history search, installing fzf for fuzzy searching, or using atuin to replace history with a searchable SQLite database. Tools like per-directory-history allow switching between directory-specific and global command searches.

Developers can configure history storage limits and leverage tricks like SELECT without FROM in SQL to test functions or understand NULL logic. Both Postgres and MySQL support EXPLAIN ANALYZE to optimize query performance. In regular expressions, the word boundary assertion \b helps find word starts or ends.

Logarithms can visualize metric distributions using Math.log10. Modern JavaScript features include Array.flatMap, Object.entries, and Promise.with Resolvers. In Node.js, using an https.

Agent keeps external connections open, dramatically reducing latency. Git users can utilize git log -S pattern ("git pickaxe") to find commits adding or removing specific strings. Shortcuts like git checkout - revert to previous HEAD, while globs like **/*.md replace find commands.

Ripgrep (rg) often outperforms grep. Zsh advanced autocompletion requires initializing FPATH via Homebrew. At an organizational level, shared daily tricks on Slack—such as using specific data sources or commands for debugging and scaling—prove highly effective for team efficiency.