Re:Clever code is probably the worst code you could write
by collyw on Wednesday May 22, 2024 @04:39PM
(#40446219)
I find functional programming is where things get bad. It does give some pretty elegant ways to do things, but it can become a nightmare when debugging. Sometimes I need to dig into Django code to work out what's going on. It's all fine while the code is imperative, but as soon as you hit a functional part, then following what's going on gets difficult.
[ Parent
| on HN ]
Re:Clever code is probably the worst code you could write
by dijksterhuis on Saturday May 25, 2024 @08:10AM
(#40474457)
> It's all fine while the code is imperative
ah sorry, i may have had a brain fart here. I use functions imperatively like you say and that's the concept i wanted to get across. failed to do so because I just mentioned don't over-do it on the math.
my bad.
should probably have been an extra one between 6 + 7 for apply functions imperatively to things (objects/data structures)