Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
rcleveng
1 day ago
|
parent
|
context
|
favorite
| on:
Simplify your code: Functional core, imperative sh...
If your language supports generators, this works a lot better than making copies of the entire dataset too.
akshayshah
1 day ago
|
next
[–]
Sometimes, sure - but sometimes, passing around a fat wrapper around a DB cursor is worse, and the code would be better off paginating and materializing each page of data in memory. As usual, it depends.
reply
KlayLay
1 day ago
|
prev
[–]
You don't need your programming language to implement generators for you. You can implement them yourself.
reply
Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: