Which is better, functional or object-oriented programming languages?
-
-
Replying to @_molten_steel_
obviously neither is universally better, or the question wouldn't exist so it depends on what you're trying to do and what your needs are, and even maybe what your personality is I would probably generally learn towards OOP myself given my personality and approach to things
1 reply 0 retweets 3 likes -
Replying to @visakanv @_molten_steel_
OOP is actually terrible though which is why we use it for most things
1 reply 0 retweets 11 likes -
i have seen so much awful OOP code, studiously avoiding its strengths while diving headfirst into its weaknesses, that i understand why people believe this but i have seen good OOP code and it is very, very good indeed
3 replies 0 retweets 7 likes -
I'm half-kidding. My experience has been similar. There are some problem domains that are neatly divided into object classes and the inheritance model is a massive efficiency gain. Functional Composition can accomplish the same thing but few languages have syntax sugar for it
2 replies 0 retweets 2 likes -
This Tweet is unavailable.
-
pattern matching is a really nice feature, as is destructuring, but they mostly just make code more concise. haven't really observed that they help avoid anti-patterns.
1 reply 0 retweets 1 like -
i admire the determination of people trying to discourage antipatterns with language design but holy shit how Sisyphean is that imo the only way to combat antipatterns is proliferating good, accessible examples shitty examples are the most destructive form of technical debt
1 reply 0 retweets 3 likes -
I don't think it's Sisyphean I think we're just, in general, bad at programming and past attempts to accomplish this have been bad because we are bad at programming. Example: public vs. private class members basically doesn't help at all but does add lots of boiler plate.
2 replies 0 retweets 2 likes -
Replying to @danlistensto @chaosprime and
another example: dependency injection. it DOES help except it's become absurdly overcomplicated by framework authors that insist on being fancypants and automagical instead of just, uh, passing parameters into functions.
1 reply 0 retweets 1 like
yeah, totally concur, DI is great, DI frameworks are atrocities
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.