Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
100% agreed. Functional programming really incentivices cleaner code and you can apply those habits everywhere else. OOP is fine with anything as long as it's in some GetterFactory.
-
Well jassole, you can be an asshole, so.. I will learn it after I finish learning OOP. Thanks for the tip!
-
Lemme fix that for you:
New folks, learn good programming basics and fundamental engineering principles, because there are no magic one-size-fits-all solutions. -
@RememberMe Isn’t accepting there isn’t a “One-size fits all” kinda a “One-size fits all”?
-
@RicoNijeboer yes, but it's not a good *engineering* solution because "solution: we need to find a solution" doesn't help you in any way.
-
jassole18544y@iiii I disagree. Functional is a silver bullet to OOP. Newbies are like I want to use this pattern just for the sake of practicing OOP. With functional = less patterns, design needs to be thought out and structured.
-
@h3rp1d3v dude listen, if You can’t fucking read your 600 lines of code in a single file, can you really say your code is solid?
I mean let’s stop this shitty functional code thing: I want people who try to spy on my colleagues to just give up and cry, not to help them. Especially my colleagues. 😤
I dream of a code with so many lines in a single file it collapses on itself, creating a black hole, therefore the most solid thing possible.
Stupid fluffy functional code. Ooh look at me, I can change code without breaking everything!
Pfft! Weaklings!
…I swear they put something in the water, it’s two weeks I keep going for these stupid jokes. 😅 -
Functional is good when the aim is to compute something. Only that a lot of software is not about computation, but behaviour.
-
@jassole functional and OOP aren't mutually exclusive btw. It's also very easy to write spaghetti functional code. I use Haskell, Rust, OCaml, SML, and WhyML regularly and nothing in them prevents me from turning everything into an unintelligible soup.
-
iiii90854y@jassole you are mixing cause and effect. Patterns are used where they are needed, not just because they exist at all.
Functional does not mean "less patterns". There are as many patterns but different ones. Patterns are just that: patterns. They are not laws imposed by something, but solutions emerging from common problems. -
h3rp1d3v5194yIt's much easier to write spaghetti code with OOP using multiple level of inheritance. Personally haven't got into trouble with interfacing with data oriented design or pure functional codebase 💕.
-
h3rp1d3v5194y@iiii Who the fuck use pure functional programming in C++ 😂 good luck with all those copying and cache line hit rate
-
Crost40744yPleas explain to me how you would only use functional programming to design a large enterprise system with bounded contexts. And it should still be functional, not procedural.
-
Btw., given that functional is suited for computing things, why is it that there's no competetive chess engine in Haskell? Most are basically abandoned at early stages, and the only one that made it even to decent mid-range is Barbarossa.
It's also the best engine in any functional language that I know of, and performance is hardly the problem because there's ChessBrainVB among the Top 50 - written in fucking VBA. -
h3rp1d3v5194y@iiii Who the fuck uses OOP in JavaScript. JS is "technically a OOP" programming language.
-
h3rp1d3v5194y@iiii I am not sure who is the dumb one who can't understand the domain of the problem. Have you ever seen game engine devs promoting functional programming? If you use Java/c++ for work, no one asks you to use pure functional programming.
-
jassole18544y@Fast-Nop You are wrong. Functional programming is so far ahead than just pure function computations. Look at Scala and cats effect.
-
jassole18544y@Fast-Nop Your question is why is nobody writing a freaking chess-engine in functional programming lol?
-
@jassole The question why no competetive engine in a functional language exists although that kind of application looks like a good fit for functional programming. And why the best try ended up only mid-range, while the rest basically gave up once they tought their engine the rules of chess. I have already ruled out "speed" as answer.
Btw., ridiculing the question doesn't count as answer. -
jassole18544y@Fast-Nop Do you always wait for others to come up with something so it is "safe" for you to follow that path? Or you do it yourself?
There are countless applications written in functional world. There are plenty of closed source application using functional programming especially in finance that has proven its reliability. What specifically are you looking for? -
@jassole Functional programming isn't anything new because Haskell has been around for ages. I think I made it clear what I'm looking for, and my question is why it doesn't exist.
-
jassole18544y@Fast-Nop You should look outside Haskell, i.e Scala, F#, OCaml. Look how all major languages are stealing ideas out of the functional world. Haskell is only testbed of functional ideas.
Yes it isn't new, but it hasn't caught with majority with the devs. -
@jassole The mid-range example I already mentioned is already the best engine that I know of in ANY functional language.
-
jassole18544y@h3rp1d3v yep, C++, Java grads coming out of school with AbstractCoffeeBeanFactory, MultipleShitObserver, must be very angry that what they learnt is useless.
-
mundo0349114y@jassole someone still doesn't understand the spaghetti does not come from the cookware but from the cheff.
-
@ostream If you're already spam-reviving ancient threads can you at least not make it about offtopic political brain diarrhea?
-
Just fight your epic battle of justice somewhere else, please. I don't like that garbage either, that's why I'm here and not on Shitter.
-
jassole18543y@deadlyRants Just simply ignore the village idiot. Proclaims himself as God. Enough said!
This idiot simply can't help himself from spamming all my rants and painting it politically. I am glad I live in his mind rent free. lol. -
jassole18543y@ostream Something burning, oh a village butthurt idiot who follows me around sniffing my ass.
Related Rants
New folks, learn functional programming. Avoid the stupid pain with OOP and mutability. Pays off a lot and for ffs, increase your salary demand, don't lowball, so everyone can enjoy higher pay.
rant
salary
functional programming