News for hackers. Stuff that matters.
Re:Advent of Code 2021 by rak1507 on Saturday November 20, 2021 @08:17PM (#29293321)
Python, sure, but not OOP. Most solutions will not be very large and there's really no need for OOP (ever) but particularly not for something like this.
Re:Advent of Code 2021 by exdsq on Saturday November 20, 2021 @10:28PM (#29293953)
Don't hate on poor old OOP :( It's a good way to take that step from scripting to software engineering. Sure it can get out of hand with AbstractSingletonProxyFactoryBean's but so can other paradigms.
Re:Advent of Code 2021 by lostcolony on Saturday November 20, 2021 @10:38PM (#29294001)
I mean...it forces you to plan and organize your code, if that's what you mean. But I also think it encourages you to do it in a way such that the organization becomes more important (and oftentimes, more complicated) than the problem you're solving, and I'd contend that's kind of a bad way to take that step, especially for people not otherwise experienced enough to know how to avoid that complexity.
Re:Advent of Code 2021 by benttoothpaste on Sunday November 21, 2021 @08:02AM (#29296009)
You can apply OOP principles to even the simplest problems. Search for “fizzbuzz enterprise edition” to get some ideas.