Skip to content

Comment on Teaching FP to freshmen

Comments

The real danger of OOP is that people mangle it and use far too much state. At some point there is virtually no difference between a class with many variables and global variables yet this is exactly what we teach freshmen.

Is that a bad thing? Global variables keep cropping up in programming languages, so large objects (context-globals; namespaces) might be just the right compromise between encapsulation and coherence.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.