Re:Avoiding if-else Hell: The Functional Style
by jerrygoyal on Wednesday September 25, 2024 @03:46PM
(#41651130)
I too wrote a similar article: Writing code the linear way: https://gourav.io/linear-code
[ Parent
| on HN ]
Re:Avoiding if-else Hell: The Functional Style
by muli_d on Wednesday September 25, 2024 @05:29PM
(#41652078)
You forgot to add `/blog`: https://gourav.io/blog/linear-code.
And thanks, I've been trying to get my team to get used to writing `else`-less code (i.e., without nesting as much as possible), I'll keep your link in my bookmarks and share it with them when appropriate.