4 ms·
I promise you, a "proper" C programmer will do the same thing, faster. And I say this as an FP fan! A bad C programmer will write horrible spaghetti code, but
by iainmerrick 5y ago
I promise you, a "proper" C programmer will do the same thing, faster. And I say this as an FP fan!
A bad C programmer will write horrible spaghetti code, but it will probably be enough to do the job. A bad Haskell programmer will get absolutely nowhere.
If you think pure FP is great for this stuff, I think you need to explain why imperative languages are regularly used to win the ICFP programming contest (https://en.wikipedia.org/wiki/ICFP_Programming_Contest#Prizes https://en.wikipedia.org/wiki/ICFP_Programming_Contest#Prize...).
- chii 5y ago> A bad Haskell programmer will get absolutely nowhere. that's a feature, not a bug in my books! Maintaining code written by other bad programmers is the bane of my life (despite getting paid to do it, so i can't complain).
- iainmerrick 5y agoHeh, there’s something in that. Now I’m wondering what the worst mainstream language is for maintaining somebody else’s legacy code. C can definitely be pretty bad... but I’m thinking maybe Perl?
- chii 5y agoyou don't maintain perl - it's a write-once language. Every time you need to change it, you rewrite a new perl program to do exactly what you need ;D the title of course, goes to javascript imho.