3 ms·
OO is a very hard art. It took me a good 10 years to be effective at it. But, I learned in the 90s, when there was a lot less knowledge available. These days,
by ap22213 13y ago
OO is a very hard art. It took me a good 10 years to be effective at it. But, I learned in the 90s, when there was a lot less knowledge available. These days, it should be a lot easier - so many good resources.
Anyway, I would love to try other ways of doing it. I see functional programming often sold as the better alternative. However, I've never seen a large code base written entirely in functional language.
Anyone have an examples of large functional programs code bases that are good to learn from?
- dllthomas 13y agoGHC is written in Haskell. I don't know the line count, but I understand it to be a large project.
- dllthomas 13y agoLine count ~140,000, according to this: http://www.aosabook.org/en/ghc.html http://www.aosabook.org/en/ghc.html And of course with more abstraction and less boilerplate, one line gets more done on average. (Fixed the number above - read 139... as 199...)
- lomnakkus 13y agoIt was around 140K LoC as of 2011. [1] [1] http://www.aosabook.org/en/ghc.html http://www.aosabook.org/en/ghc.html EDIT: I see another poster arrived at a conclusion of 200KLoC from the same source. I'm guessing the discrepancy is about the ~40KLoC which comprise the runtime system.
- nbouscal 13y agoAs another mentioned, GHC is a good example. Another one that might be a bit better to look at is xmonad. It's only a little over 1kLOC and is a fully functional window manager.