[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
Is OOP a meme? Are OOP programmers too stupid to into functional
Images are sometimes not shown due to bandwidth/network limitations. Refreshing the page usually helps.

You are currently reading a thread in /g/ - Technology

Thread replies: 37
Thread images: 3
File: oop-meme.jpg (98 KB, 400x330) Image search: [Google]
oop-meme.jpg
98 KB, 400x330
Is OOP a meme?

Are OOP programmers too stupid to into functional programming?
>>
ur gay fuk u faget
>>
>WUD EBEN IZ A OBJECT SUM KIND OF STOOPID THANG DAT DONG EVBEN USE A FUNGSHUN?
>>
Meme topKek = new Meme();

Looks pretty normal to me.
>>
>>51253220
OOP is a faggot
>>
>>51253220
OOP is good

OOP doesn't solve all problems though

Functional is good

Functional doesn't solve all problems though

Everyone is happy :)
>>
Is functional programming a meme?

Are functional programmers too stupid to into states?
>>
>>51253220
Name one thing functional programming has over OOP.
>>
>>51253304
Multiparadigm is GOAT.
>>
>>51253304
Fairly new dev here. What are some good real world problems where functional programming works better? I learned me a Haskell for great good in a class but I wasn't really sure why I'd want to use it elsewhere. The prof was shitty so he didn't have any good applications either.
>>
>>51253350
Do you like Javascript? it's capable of many different styles, one reason people seem to dislike it.

>>51253420
You want street cred
>>
They both have their place and can solve the same problems with relatively similar efficiency.

Subjectively speaking, I find functional approaches are usually more elegant and concise, though sometimes less clear - to be expectied with less verbosity. It also usually has a larger memory footprint but is wonderfully suited for parallelization.
>>
>>51253458
JS is fine apart from callbacks, which are not an issue anymore with ES7.
>>
File: scala-smooth-spiral.png (13 KB, 167x246) Image search: [Google]
scala-smooth-spiral.png
13 KB, 167x246
>OOP and FP are mutually exclusive
>This thread
>>
>>51253458
Theorem provers, compilers, model checkers.
>>
there was an idiot on the verge who thought object in OOP meant icons.
>>
File: 7lOZhGA.png (58 KB, 914x848) Image search: [Google]
7lOZhGA.png
58 KB, 914x848
>>51253220

Object-oriented programming and functional programming aren't mutually exclusive you retard.

If you can't use both then you have no right to call yourself a programmer.
>>
>>51253582
>scala
>ever
Ocaml or bust!
>>
>>51255606
Why should I learn something that's objectively inferior?
>>
>>51255645
>OBJECTively inferior
Obviously that would be $your_favorite_oop_language_here
>>
>>51255673
>$
>>
>>51255725
>being poor
>>
What an INTeresting thread().
>>
How can you model a car in functional programming?
>>
>>51255865
you dont
>>
>>51255865
type Car = Car String Int;
Car "nigger" 1984
>>
>>51255907
What about structures in C?
>>
>>51256001
C structs have nothing to do with OOP.
>>
>>51256069
>C++ classes have nothing to do with OOP.
>>
>>51256069
But couldn't I use it to store data in a way that resembles an object in OOP?
>>
>>51256100
C++ classes follow the OOP rules (mostly).
>>
>>51256133
So do C structs.
>>
>>51256131
Yes, but storing data alongside methods is just one part of OOP. C isn't and will never be OOP. It's not trying to, either, so the discussion is hiroyuki.

>>51256150
Wrong.
>>
>>51256169
>Wrong
But he's not. A struct can easily replace almost everything a class can. Only really missing inheritance.
>>
>>51256208
Inheritance can be done by having a pointer to the parent, or via macros.
>>
>>51256208
>A struct can easily replace almost everything a class can.
Keep dreaming.
>>
>>51256227
Good point.

>>51256242
Name something then.
Thread replies: 37
Thread images: 3

banner
banner
[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.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com, send takedown notices to them.
This is a 4chan archive - all of the content originated from them. If you need IP information for a Poster - you need to contact them. This website shows only archived content.