by marcus_holmes · 9y ago · 0 comments
I've always thought that academic writing is designed to impress rather than educate. I haven't read much academic code, but it seems the trait has carried over.
I really can't stand code that is designed to make the programmer look smart. I stopped messing about with CodeWars for this reason. All this dick-measuring about how few instructions you can use to implement a problem eyeroll. It misses the important thing: when some poor sap comes back to maintain the code in 2 years' time, can they?
First of all, coding isn't exactly a high class activity in most of academia. Any implementation that's not an uncommented mathematica notebook or matlab mess is in the top 1% of academic code.
Second of all, no one reads the code. So while there are incentives to intelli-obfuscate papers to trick naive reviewers, those incentives don't exist with code. (Oh, and it doesn't really work out well in papers either most of the time.)
Plus the code is still fresh in your mind so you haven't forgotten why did it that way, and discarded trade-offs.