Push ifs up and fors down(matklad.github.io)
606 points by celeritascelery | 274 comments
A blog post by matklad giving two rules of thumb: move if conditions up to callers and push for loops down into batch-processing functions, with Rust examples.
606 points by celeritascelery | 274 comments
A blog post by matklad giving two rules of thumb: move if conditions up to callers and push for loops down into batch-processing functions, with Rust examples.
128 points by ingve | 85 comments
271 points by ingve | 144 comments
50 points by ingve | 15 comments
201 points by ingve | 108 comments
109 points by nequo | 95 comments
606 points by celeritascelery | 274 comments
A blog post by matklad giving two rules of thumb: move if conditions up to callers and push for loops down into batch-processing functions, with Rust examples.
169 points by speckx | 79 comments
Blog post examining the 'push ifs up and fors down' coding idiom from TigerBeetle's TigerStyle, relating it to database query optimization and category theory.
54 points by ahmedhossamdev | 0 comments
Matthias Endler's essay arguing against VC-funded hustle culture and for small, bootstrapped, sustainable businesses, critiquing Paul Graham's startup advice.
606 points by signa11 | 266 comments
A blog post arguing that small nuggets of programming knowledge boost productivity, sharing examples like fzf-powered ctrl+r and python3 -m http.server.
777 points by simonw | 599 comments
Simon Willison blog post arguing developers must prove their code works through manual and automated testing before submitting it, especially when using LLM tools.
28 points by speckx | 27 comments
A personal blog post on pinecoder.dev reflecting on how the author's previous job now feels distant.