Functional Programming IS NO BETTER than Object Oriented Programming | Prime Reacts

  Рет қаралды 339,043

ThePrimeTime

ThePrimeTime

Жыл бұрын

Recorded live on twitch, GET IN
/ theprimeagen
Original: • Functional Programming...
Author: / @continuousdelivery
MY MAIN YT CHANNEL: Has well edited engineering videos
/ theprimeagen
Discord
/ discord

Пікірлер: 1 400
@capsey_
@capsey_ Жыл бұрын
my code was written using OOP and was inherently trash, then i rewrote everything using FP and now it's functionally garbage
@jamesking2439
@jamesking2439 Жыл бұрын
After a decade of programming, I've realized that no paradigm will cure my stupidity.
@thomassynths
@thomassynths Жыл бұрын
Honestly Prime, as long as you haven't even picked up learning a language like Haskell or ML, I can't take take your opinion too seriously about functional programming. "Functional programming" in languages like Typescript, Rust, anything not designed as legit functional.... just doesn't cut it.
@oblivion_2852
@oblivion_2852 Жыл бұрын
Procedural is the only paradigm which matches what the machine actually executes. OOP and Functional are just abstractions above procedural and are up to the compiler in how they're implemented and their expected performance
@CottidaeSEA
@CottidaeSEA Жыл бұрын
I agree with the overall take, FP is no better than OOP. However, a language which does not support functions as first class citizens is a bad language.
@TheFrankvHoof
@TheFrankvHoof
"anything you can do in OOP you can do in FP and vice-versa" is just a fancy way of saying: 'You can do everything in assembly, therefore paradigms don't matter'
@zacbackas
@zacbackas Жыл бұрын
why did prime just take a laxative shot in the first 3 minutes
@farqueueman
@farqueueman Жыл бұрын
MBOP (Mudball Oriented Programming) is the best. Because in your heart of hearts you all know that is what you have to maintain... so may as well love it ♥
@rjorgeish
@rjorgeish Жыл бұрын
"Procedural programming is greater than anything else" - finally someone that understands me! OOP is needlessly rigid and complex, and functional can get a mess like cable mismanagement on a server room.
@robmorgan1214
@robmorgan1214
Procedural is the king of minimal abstraction. It is the sword that cuts through a big ball of mud. It says f your imperfect type systems: (void *)() will save billions of lives and help us avoid decades of pointless warfare.
@ptf42069
@ptf42069 Жыл бұрын
I always follow money oriented programming. whatever the fuck my boss tells me to do.
@not_ever
@not_ever Жыл бұрын
This is from an article written in the 80s. It was pretty on point.
@insidetrip101
@insidetrip101 Жыл бұрын
This guy doesn't understand what he's talking about, when he mentions side effects in haskell or closure. Side effects aren't the point. Of course there is io in haskell and closure, the point about side effects is that your functions will always return the same out put given the same input, and that always happens (at least in haskell) unless there is some sort of bug in the compiler. Of course you can get side effects if you start doing shit like calling unsafeio, but that's missing the point.
@KyleSmithNH
@KyleSmithNH Жыл бұрын
It's funny to watch you interpret everything Dave says completely differently than me. Like, when he said 'model your problem', I didn't even for a moment think he meant 'ahead of time' or 'at a white board', but rather just that object models align to real world models very nicely in some domains (e.g., user interfaces).
@ArkhKGB
@ArkhKGB Жыл бұрын
18:00
@moodynoob
@moodynoob Жыл бұрын
"Academic masturbation" is such a great term for this unquestioning acceptance of a few research papers on hard to measure topics.
@Sweenus987
@Sweenus987 Жыл бұрын
When I did parallel computing for uni, I was taught that parallelising is almost always faster given a large enough dataset. An array with 1k elements, it would be faster on a single core utilising the L caches. 1bil elements, it would likely be faster if it was split to the number of cores. And if you have to search, you might as well search in the parallelised code as well, why wait until it's joined up again.
@misium
@misium Жыл бұрын
Stateless functions are good because it's easy to check for errors, find bugs and overall understand what a function is doing. Function that accesses global or even instance variables can be much more difficult to understand.
@andythedishwasher1117
@andythedishwasher1117 Жыл бұрын
I kinda feel as if the line where you're veering into OO territory is usually when you start associating functions with objects exclusively, as in "this function is specifically just a thing this one object does". At that point, you have essentially "oriented" the logical module around the object rather than the function existing purely as its own machine with specified inputs and outputs.
@nielshoogev1
@nielshoogev1 Жыл бұрын
Rust's traits are very similar to Haskell's type classes, which is considered a functional programming language. Rust's algebraic data types are very similar to those found in the ML family of languages, which are considered functional programming languages.
Dear Functional Bros | Prime Reacts
26:03
ThePrimeTime
Рет қаралды 204 М.
Have We Forgotten How To Program?? | Prime Reacts
22:53
ThePrimeTime
Рет қаралды 452 М.
Mom's Unique Approach to Teaching Kids Hygiene #shorts
00:16
Fabiosa Stories
Рет қаралды 38 МЛН
Schoolboy - Часть 2
00:12
⚡️КАН АНДРЕЙ⚡️
Рет қаралды 5 МЛН
لااا! هذه البرتقالة مزعجة جدًا #قصير
00:15
One More Arabic
Рет қаралды 15 МЛН
You dont know OOP
50:48
ThePrimeTime
Рет қаралды 308 М.
Ditch Your Favorite Programming Paradigm | Prime Reacts
16:02
ThePrimeTime
Рет қаралды 120 М.
Uncle Bob LOVES Functional Programming | Prime Reacts
22:59
ThePrimeTime
Рет қаралды 115 М.
Ditch your Favorite Programming Paradigm
6:08
Code Persist
Рет қаралды 175 М.
Why Isn't Functional Programming the Norm? - Richard Feldman
46:09
Elon Musk on xAI: We will win | Lex Fridman Podcast
27:01
Lex Clips
Рет қаралды 172 М.
Functional OOP????? | Prime Reacts
18:28
ThePrimeTime
Рет қаралды 81 М.
Reacting to Controversial Opinions of Software Engineers
9:18
Fireship
Рет қаралды 2 МЛН
You Can Code in Powerpoint??? | Prime Reacts
20:30
ThePrimeTime
Рет қаралды 229 М.