By mswatcher
via prog21.dadgum.com
Published: Dec 31 2009 / 00:06
properly threaded in and out of functions, and there are no truly destructive updates to speak of. Now pick the two lowest-level and most isolated functions in the entire codebase. They're used all over the place, but are never called from the same modules. Now make these dependent on each other



Comments
RawThinkTank replied ago:
Brilliant article ,
emperors new clothes are down
michele.mauro replied ago:
The title of the article is way too broad. What it is saying is that functional programming is awkward in game programming and retrogaming re-creation. This is odd, because other parts of game programming (AI for automatic agents and NPC, for example) are known to be very well covered with functional languages.
Maybe it's just a thing of contexts: rewriting pac-man in erlang may well be "awkward". But the title of the article should be "Functional Programming Doesn't Work for some type game programming". There are many, many other areas of programming where functional programming provably works better than traditional imperative style.
Kaveh Shahbazian replied ago:
A very important thing is functional programming is totally (almost) from imperative programming; it needs a change in mind set. It is not just another methodology. If one, for every reason, wants to avoid changing in mind set, then he should avoid using functional programming at fist place; than blaming oranges for not tasting as fish!
Kaveh Shahbazian replied ago:
Ofcourse this article is not that bad.
zynasis replied ago:
have to agree, functional programming is not worth it for large apps. sure, it's good for little util programs and the small stuff, but this doesnt make it practical, it basically makes functional programming a toy
danielkorzekwa replied ago:
I wouldn't agree that functional programming is not worth for large apps. Everything depends on the business domain that it is used for, if you think about trading platform in financial markets then I can see a lot of space for functional programming. Also no one said that either functional or imperative, for example in Scala you can use both styles on the same time.
Voters For This Link (17)
Voters Against This Link (4)