News for hackers. Stuff that matters.
Re:Code Health: Make Interfaces Hard to Misuse (2018) by Smaug123 on Sunday September 06, 2020 @09:18AM (#24391108)
Yes and no - `doThing` itself is less inspectable, and it's sometimes helpful to separate the implementation from the instructions. (I wrote https://www.gresearch.co.uk/article/defunctionalisation/ ; the usual introduction is https://blog.sigplan.org/2019/12/30/defunctionalization-ever... .)
Re:Code Health: Make Interfaces Hard to Misuse (2018) by Kinrany on Sunday September 06, 2020 @05:10PM (#24394700)
Oooh, I did think of that article!