[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y / ] [Home]
4chanarchives logo

Object Orientation is overrated


Thread replies: 14
Thread images: 3

>Born of simulation, now used for everything, even when inappropriate
>Encouraged by Java/C# in all situations, due to their lack of (idiomatic) support for anything else
>Mutable stateful objects are the new spaghetti code
>>Hard to understand, test, reason about
>>Concurrency disaster
>Inheritance is not the only way to do polymorphism
>"It is better to have 100 functions operate on one data structure than to have 10 functions operate on 10 data structures." - Alan J. Perlis
>Many functions defined on few primary data structures (e.g. seq, map, vector, set) is superior
>>
>>54868292
>object orientation
>she did a landscape selfie
she's already better than 95% of the population
>>
>see tons of "oop sucks" threads
>never see any "functional programming sucks" threads
Conclusion I'm coming to is that functional turds are vocal and unemployed and have a lot of time on their hands
>>
>>
>>54868779
>I found OOP hard and am happy that I now understand it, others must also find it difficult to grasp

I sure hope you're as good with the toilet as you are OOP
>>
>>54868292
>"It is better to have 100 functions operate on one data structure than to have 10 functions operate on 10 data structures." - Alan J. Perlis

If your OO design is good, you wont have multiple data structures. I fail to see your point.
>>
>>54868817
are you seriously implying that OOP has less job opportunities?
>>
>>54868292
>It is better to have 100 functions operate on one data structure than to have 10 functions operate on 10 data structures
whoever said this has no clue what oop is about. you can do either of these things in any language.
>>
OO good:
defining scope of methods and data
enforce pre and post conditions

OO meh:
you usually want composition, but there are also cases where inheritance is the obvious answer.

OO sucks:
people can program OO interfaces extremely poorly in a way that isn't immediately obvious
>>
File: nail.jpg (77KB, 333x500px) Image search: [Google] [Yandex] [Bing]
nail.jpg
77KB, 333x500px
>>54868331
>>
>>54869495
What's that white stuff flying around?
>>
>>54869636
cocaine
>>
>>54869636
Delicious tears
>>
>>54869636
Probably a panadol they put there for effect.
Thread replies: 14
Thread images: 3
[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y / ] [Home]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
If a post contains personal/copyrighted/illegal content you can contact me at [email protected] with that post and thread number and it will be removed as soon as possible.
If a post contains illegal content, please click on its [Report] button and follow the instructions.
This is a 4chan archive - all of the content originated from them. If you need information for a Poster - you need to contact them.
This website shows only archived content and is not affiliated with 4chan in any way.
If you like this website please support us by donating with Bitcoin at 1XVgDnu36zCj97gLdeSwHMdiJaBkqhtMK