[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

Object Orientation is overrated

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

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
>>
File: The_fox_and_the_grapes_copy.jpg (469KB, 1399x1600px) Image search: [Google]
The_fox_and_the_grapes_copy.jpg
469KB, 1399x1600px
>>
>>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)
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 posts: 14
Thread images: 3


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
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.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.