Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
UncleEntity
on Jan 9, 2020
|
parent
|
context
|
favorite
| on:
Copying data is wasteful, mutating data is dangero...
The pythonic way would be to have sort() and sorted() which either sort in place or return a sorted copy. Best of both worlds.
ajuc
on Jan 10, 2020
[–]
Command Query Separation is a very good general idea in programming that should be followed more often. Sadly it went out of fashion in 90s when everybody got hyped about OOP.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: