Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
WalterBright
on Feb 25, 2025
|
parent
|
context
|
favorite
| on:
Clean Code vs. A Philosophy Of Software Design
Too often I see functions that are shells that reshuffle the arguments and pass them to another function, which also reshuffles the arguments and forwards them to another, and on and on. One was 11 layers deep.
js8
on Feb 25, 2025
|
next
[–]
I have seen such code too - with just S,K and I combinators. It wasn't readable.
Copenjin
on Feb 25, 2025
|
prev
|
next
[–]
And a lot of people doesn't understand how dangerous shuffling parameters is, especially in languages that do not have named parameters...
Pxtl
on Feb 25, 2025
|
parent
|
next
[–]
Powershell is an
awful
language but it has made me fall in love with named parameters. Name all the things.
mrkeen
on Feb 25, 2025
|
prev
[–]
If you have a 2-4 line function and you spot this, you can trivially remove it.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: