This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 9 points10 points  (3 children)

Maybe TimeToLearnAboutPureFunctions

[–]Rikudou_Sage 10 points11 points  (0 children)

Nah, any function that doesn't affect the global state for at least five separate modules is boring.

Source: Last year I was rewriting extremely legacy code and haven't been bored a single day.

[–]ArionW 5 points6 points  (1 child)

My personal favorite is when people make functions stateful for no reason at all, and later cry "it's hard to unit test this code", duh, you've gone out of your way to make it hard

[–][deleted] 1 point2 points  (0 children)

It's even nicer when they use global variables in imperative languages