Hacker Timesnew | past | comments | ask | show | jobs | submitlogin

> In my experience, the first thing people do in an OOP language is name their first classes. Like maybe you have a Twitter crawler so you create a Crawler class and stick state into it. And maybe you create a few more arbitrary classes that collaborate arbitrarily, and it's like name-driven development. State sprinkled around. And these nouns basically solidify as abstractions that last for the life of the project.

FP was and really still is a more of a "nerdy" thing in the wider world, so perhaps your seeing good FP vs bad OOP is more a function of the people involved. Think of the kind of persons who learn one language (Java / C#) at university with a "Cs get degrees" mentality about their skillset.

> I thought of the data first and merely built a pipeline on that data.

One can do this in any paradigm. One must also realize that this isn't a common (enough) refrain and that there is also a large difference between knowing it and knowing it.

With that said, I ask again: What about OOP specifically encourages terrible design?



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: