News for hackers. Stuff that matters.
Re:How I discovered my love for JavaScript after throwing 90... by empthought on Sunday September 17, 2017 @09:49PM (#15272823)
Replacing ifs with ternaries and switches with cond are hardly significant or important changes.

The whole point of abstraction (functional or object-oriented) is to push that logic from control structures in code to composition structures in runtime data.

If you weren't replacing conditionals with polymorphism, you weren't doing object-oriented programming in the first place.

There are no comments on this comment yet.