Ask me a question about something you think I wouldn’t be too interested in
-
Show this thread
-
Replying to @visakanv
Which is better, functional or object-oriented programming languages?
2 replies 0 retweets 1 like -
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
i think visibility is good but the collision between visibility culture and testing culture generated by zero modern languages adopting friend classes, and its resolution by means of horrible fucking reflection boilerplate as you describe, is the dumbest fucking foot marksmanship
-
-
we already have a first class mechanism for managing visibility: scope. let's just use scope correctly and forget all the absurd attempts at hand-holding developers with language reserved words.
1 reply 0 retweets 1 like -
i am dubious of this but not willing to dismiss it out of hand
1 reply 0 retweets 1 like - 5 more replies
New conversation -
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.