What is Nostr?
jb55 / Will
npub1xts…kk5s
2022-10-20 15:12:53
in reply to nevent1q…jyyt

jb55 on Nostr: I used to refactor all the time for the first 12 years of programming until I changed ...

I used to refactor all the time for the first 12 years of programming until I changed the way I programmed (probably thanks to learning Haskell): small, pure functions that minimize the scope of input data, aka only take as inputs exactly what you need and nothing more, no large class inputs or something. Then you don't have to move stuff around as much. Styles like object oriented complect data dependencies in all your coding structures which require you to refactor all the time when you need to change things.

I very rarely refactor my code these days. Just small pure functions that I swap out and rearrange. Refactoring implies tangled code.

In other words, OOP is fucked me up bad for 12 years, learning Haskell reversed my brain damage and taught me how to code properly.
Author Public Key
npub1xtscya34g58tk0z605fvr788k263gsu6cy9x0mhnm87echrgufzsevkk5s