News for hackers. Stuff that matters.
Re:Why Learning Haskell/Python Makes You a Worse Programmer by sethg on Tuesday December 23, 2008 @10:06PM (#408447)
Agreed. I think the point of learning multiple paradigms is so that you can recognize when idiomatic programming in your preferred (or employer-mandated) language is not the best way to get the job done--recognizing when it's time to write functional-style code in Python, OO-style code in Haskell, or whatever. But most of the time, you follow the grain of the language.
Re:Why Learning Haskell/Python Makes You a Worse Programmer by silentbicycle on Wednesday December 24, 2008 @07:47AM (#408758)
Absolutely. Some languages comfortably support several paradigms, of course (http://www.c2.com/cgi/wiki?MultiParadigmProgrammingLanguage).
Re:Why Learning Haskell/Python Makes You a Worse Programmer by sethg on Thursday December 25, 2008 @01:53PM (#409694)
I think any non-toy language needs to make it non-painful to program in several paradigms, but I'm not sure about the "comfortably" part; it's good for a langauge to be designed around a central paradigm that can work for most tasks and that the implementor can optimize for. So Python is OO and Haskell is functional, and there are many problems that you solve in an OO style when writing Python and a functional style when using Haskell, and that's OK. And every once in a while you need to write functional-style code in Python, or OO-style code in Haskell, and that's OK too. I'm OK, you're OK, we're all OK....