Functional programming - A general introduction

  Рет қаралды 82,836

Daedalus Community

Daedalus Community

Күн бұрын

The functional paradigm is a bit different from the ones most people are familiar with. This is why I decided to make a video about it, to present its general features without talking about any language in particular, and without ever mentioning category theory.

Пікірлер: 146
@haleyhalcyon
@haleyhalcyon Жыл бұрын
if you chant “a monad is a monoid in the category of endofunctors” twice in the mirror at 3am something awesome will happen
@DaedalusCommunity
@DaedalusCommunity Жыл бұрын
You immediately turn into a category equipped with a defunctor F : 💀 → C
@raianmr2843
@raianmr2843 Жыл бұрын
the constant java bashing is totally appreciated, subbed
@lufenmartofilia5804
@lufenmartofilia5804 Ай бұрын
Funny tho that C# is not bashed as it is just a mess in comparison espacially now with java 21
@OverrideTips
@OverrideTips Ай бұрын
@@lufenmartofilia5804we in Java 22 now 😮‍💨 and now it’s getting less verbose for beginners yay Java!😂
@bharold
@bharold Жыл бұрын
I first became interested in functional programming when I noticed how Haxe's compiler code base, which transpiles/compiles to several other languages/VM bytecodes was so concise and efficient, especially given it's broad language output support.
@CorbinSimpson
@CorbinSimpson Жыл бұрын
Good introduction. Note that no "functional languages" in common use are pure. "pure functional programming", as a consequence, is not really a common practice. For example, Haskell has mutation in the IO monad, and GHC also has mutation in ST and STM monads. While structured and safe, these mutable variables are not pure.
@mr.m8539
@mr.m8539 Жыл бұрын
Haskell was a pure functional language and was given the mutable monads to be useful in the industry and not just an academic exercise.
@iham1313
@iham1313 3 күн бұрын
you got me at "private abstract anxious elaborate verbose void" :D
@user-un5tf3zz6k
@user-un5tf3zz6k Жыл бұрын
Yaay! Thanks. Now I have basic idea about functional paradigm. (Sadly, I still don't know what a monad is, but this is my own adventure)
@Shifticek
@Shifticek Жыл бұрын
it's simple. Monad is just a monoid in the category of endofunctors🤓
@ananttiwari1337
@ananttiwari1337 Жыл бұрын
1:40 Love the Tom Scott reference lol
@kvelez
@kvelez 6 ай бұрын
Awesome video.
@olteanumihai1245
@olteanumihai1245 11 сағат бұрын
underrated video and channel
@taxi_a
@taxi_a 10 ай бұрын
this is fire keep up with the good work
@dermakol8543
@dermakol8543 Жыл бұрын
Awesome video as always. Hope some day you get a recognition you deserve!
@AK-vx4dy
@AK-vx4dy 3 ай бұрын
I'm enteriely sure, but C# (probably by near presence of F# team) evolves more and more in this direction: patter matching and expression version of things like switch etc.
@stoneman210
@stoneman210 Жыл бұрын
He's back. HE'S BACK
@sournois90
@sournois90 Жыл бұрын
didn't understand shit but definitely rewatching later to see if i can understand, because your explanation and your video seem very friendly and well executed
@DaedalusCommunity
@DaedalusCommunity Жыл бұрын
If you have any questions I'll try to answer :)
@Rin-qj7zt
@Rin-qj7zt 10 ай бұрын
yeah that's how it goes when learning complex or abstract, unfamiliar topics. you kinda just gotta keep revisiting it after breaks to weasel it into your brain. some people pick it up faster because they are already more familiar with similar concepts, but they'd have to do the same thing if they weren't.
@smritapokharel5983
@smritapokharel5983 6 ай бұрын
Love the music 💃
@mastcharub7177
@mastcharub7177 Жыл бұрын
Based video. Keep up the great work!
@lucasfkam
@lucasfkam 9 ай бұрын
What books or materials would you recommend that contain mathematical expressions and notations (such as lambda calculus expressions) to support functional programming?
@DaedalusCommunity
@DaedalusCommunity 9 ай бұрын
"Types and programming languages" by Pierce is a very comprehensive book on the topic
@soyitiel
@soyitiel 10 ай бұрын
Question: @ 6:33, isn’t the function called inside my_sum supposed to be my_sum again?
@DaedalusCommunity
@DaedalusCommunity 10 ай бұрын
It is!
@sporfworfel
@sporfworfel 6 ай бұрын
This should get more upvotes. Hopefully they'll notice and fix it.
@disdroid
@disdroid Ай бұрын
process algebras aren't necessarily stateless - pi calculus involves the use of channels to send and receive functions, so the value being sent is the state of the channel. the mobile ambient calculus (and the more modern seal calculus) have a state attached to each process representing its location in a hierarchy of processes.
@vidal9747
@vidal9747 2 ай бұрын
4:50 so that beautiful lambdas that are very good for doing simple mathematical equations are based on functional programming principles? So nice to learn it!
@dazai7669
@dazai7669 11 ай бұрын
Love your channel, you need to keep making these videos man, hard to find such quality content recently. (PS, can we please get a haskell tutorial
@DaedalusCommunity
@DaedalusCommunity 11 ай бұрын
Thanks! As for the haskell tutorial, I'm not nearly skilled enough rn, but I have a course on it next semester so I guess at some point something like that might come :)
@dazai7669
@dazai7669 10 ай бұрын
@@DaedalusCommunity amazing!
@MonsterSmart
@MonsterSmart 2 ай бұрын
So it mainly boils to the fact that you might pass a function as an argument and return a function from a function and all consequences of that. Which was always what I mostly identified with FP. And btw: I love it.
@DaedalusCommunity
@DaedalusCommunity 2 ай бұрын
Yes. Then in more pure languages there are constraints to the shape of the functions, but the main point is the one you underlined :)
@SwagDawg
@SwagDawg Жыл бұрын
I'm just about to finish a programming languages course at university where most of the class was focused on functional programming with OCaml and Racket. Honestly I like it a lot better than object oriented programming because of how elegant it is.
@DaedalusCommunity
@DaedalusCommunity Жыл бұрын
Great! What's your uni?
@SwagDawg
@SwagDawg Жыл бұрын
@@DaedalusCommunity University of Washington. What about you?
@lawqup
@lawqup 10 ай бұрын
I just graduated from UW this spring! Didn’t take programming languages though and now I’m regretting it….
@DaedalusCommunity
@DaedalusCommunity 10 ай бұрын
@@SwagDawg Sorry for the late response! I'm at the university of Pisa, in Italy
@abahiduh3246
@abahiduh3246 28 күн бұрын
What point are u making... Class focused on functional programming? the bases of OOP is classes explain pls
@noveanre
@noveanre 10 ай бұрын
i became interested in functional programming, tbh for me it's more _clean_, and functional composition looks promising. anyway what font you used for the code?
@DaedalusCommunity
@DaedalusCommunity 10 ай бұрын
It's consolas, and the one I use for text is Computer Modern :)
@dan_bev
@dan_bev 11 ай бұрын
What books do you recommend for these topics?
@DaedalusCommunity
@DaedalusCommunity 11 ай бұрын
A good introduction to functional programming and cs in general (through Lisp) is Structure and Interpretation of Computer Programs (SICP). Another good book is "Types and Programming Languages" by Pierce, but it's very theory-heavy. Apart from SICP, once you know the basics you can pretty much learn by doing and reading the docs, but reading the more theoretical books can also be very insightful
@naimmomin5811
@naimmomin5811 3 ай бұрын
How does the code at 6:28 work when you gave sum 4 parameters but it only takes in two?
@DaedalusCommunity
@DaedalusCommunity 3 ай бұрын
We redefine sum in terms of my_sum, by passing the additional parameters. The initial values of the two additional parameters depend on a and b only (they are initialized to a and 0 respectively).
@aaronspeedy7780
@aaronspeedy7780 10 ай бұрын
Wouldn't using recursion instead of simple loops take up a lot of memory?
@jma42
@jma42 10 ай бұрын
yes, but if the language supports guaranteed tce then it wont be an issue.
@Lado93
@Lado93 9 ай бұрын
6:38 isnt def sum(a,b) function supposed to have return too?
@minor12828
@minor12828 2 ай бұрын
Nobody knows FP it is a myth.
@YoshikoJanai
@YoshikoJanai 9 ай бұрын
I wish my Programming Languages professor explained tail recursion the way you did. You condensed an entire unit and miserable explanations into like 5 seconds
@lepidoptera9337
@lepidoptera9337 4 ай бұрын
Yes, it's identical to a loop... in other words... you don't need it. You just have to learn that you don't need it. Recursion in general is a bad idea, here you are simply being saved by the bell, so to speak.
@MasacoteSenpai
@MasacoteSenpai 9 ай бұрын
Dude, this video is amazing, I think I hate you for it and my brain hurts, but great job keep it up
@DaedalusCommunity
@DaedalusCommunity 9 ай бұрын
Thanks!!
@Originalimoc
@Originalimoc 10 ай бұрын
Learned currying🫣
@1conscience0dimension
@1conscience0dimension 3 ай бұрын
chicken currying ?
@skeleton_craftGaming
@skeleton_craftGaming 10 ай бұрын
C++ is a functional language. I mean it's not only a functional language, but You can do functional programming in c++.
@lepidoptera9337
@lepidoptera9337 4 ай бұрын
You can do functional programming in machine code, if you want to. But why would you want to? It was never meant as a programming paradigm. It was a mathematical tool in theoretical computer science. It's great to prove theorems and that it's all that it's great at.
@j0hannes5
@j0hannes5 11 ай бұрын
I don't get the tail recursive example at 6:33 how does the sum function receive 4 arguments?
@DaedalusCommunity
@DaedalusCommunity 11 ай бұрын
I guess one of them is redundant, c and res basically behave the same way
@soyitiel
@soyitiel 10 ай бұрын
I think the function called inside my_sum is supposed to be my_sum again, hence recursion. The plain sum function is just a wrapper for my_sum
@kawo666
@kawo666 10 ай бұрын
Yes, as soyitiel said - function at line 4 should be my_sum. It seems to simply be a typing error
@BlizzetaNet
@BlizzetaNet 10 ай бұрын
My brain hurts now. Thanks 🤣🤣🤣
@kurciqs8355
@kurciqs8355 Жыл бұрын
based
@kezif
@kezif 10 ай бұрын
Sont ask woman here age Man his salary Functional programmer how to print out string
@pfever
@pfever 9 ай бұрын
Is this programming paradigm useful in the industry? or just for rare jobs?
@DaedalusCommunity
@DaedalusCommunity 9 ай бұрын
It has influenced the web dev industry greatly, which is adopting more and more functional traits. If you ever use React or similar frameworks, you'll see that the functional js features are very much used, and much more natural in that context. Other than that, it's probably just writing compilers and whatever Jane Street does, economics I guess, but it's nice that people and companies are starting to recognise its value
@lepidoptera9337
@lepidoptera9337 4 ай бұрын
If you want to make enemies out of your colleagues... sure, go for it. ;-)
@bernardodomeneghetti9673
@bernardodomeneghetti9673 9 ай бұрын
8:27 is the moment you know, that u shouldnt be here anymore, even being warned before LMAO
@foodishmum
@foodishmum Жыл бұрын
Pls continue the osdev series
@DaedalusCommunity
@DaedalusCommunity Жыл бұрын
no Edit: eventually I might get back to that, but right now it's not what I have in mind.
@AK-vx4dy
@AK-vx4dy 3 ай бұрын
Do you a part of team of Unison file synchronizaton tool ? Or all badly burn by Java finally find calm of soul in Ocaml ?
@DaedalusCommunity
@DaedalusCommunity 3 ай бұрын
I can scan this message, but I'm finding trouble parsing it lol
@AK-vx4dy
@AK-vx4dy 3 ай бұрын
@@DaedalusCommunity Some years ago, one team wanted to write good file synchronization tool and they done it in Ocaml and were on Ocaml page as case study and they were also badly burnt by Java.
@AK-vx4dy
@AK-vx4dy 3 ай бұрын
@@DaedalusCommunity let beloved_language = function | burn_by -> if burn_by = "Java" then "Ocaml"
@Sayan_Shankhari
@Sayan_Shankhari 10 ай бұрын
function => returns something / nothing procedure => does something / nothing
@DEMEMZEA
@DEMEMZEA 10 ай бұрын
1:40 tom scott approves this
@beaupersoon5221
@beaupersoon5221 11 ай бұрын
oooo this is intense. I was having no trouble understanding until... wtf is lambda calculus. what a fucking rabbit hole that is
@Terrados1337
@Terrados1337 Жыл бұрын
Lambda expressions are handy but pure functional programming seems to be rather niche. OOP is clunky but in most cases you need to process some kind of data. Representing data as a hypothetical quantum entangled self referencing einstein-rosen function instead of an object sounds even more clunky :D Nice video!
@chaddaifouche536
@chaddaifouche536 Жыл бұрын
Algebraic Data Types are really nice, much more handy than objects to represent types that can have a few different shapes, coupled with pattern matching, it makes for very elegant and readable handling of those kind of data. Most functional languages allows for the use of records too, when you have enough parts in your data that you really must name them. For pure manipulation of data, functional programming is actually pretty amazing. Generally the friction comes when you have to write an interactive program : while there are some promising approach (React and similar frameworks were actually inspired by reactive programming which is one such approach), it remains true that those efforts are just too small yet compared to the imperative frameworks buoyed by the much more sizeable imperative programming community.
@nbecnbec
@nbecnbec 10 ай бұрын
Why were java lambdas a mistake?
@DaedalusCommunity
@DaedalusCommunity 10 ай бұрын
Because in order to introduce lambdas they had to add default implementations to interface methods, which not only defies the purpose of interfaces, but introduces lots of problems that come with multiple inheritance. Normal multiple inheritance (extends) is forbidden in java, but you can implement multiple interfaces. Unlike in C++, there is no way to perform disambiguation, so yeah, it's an absolute mess.
@kiri101
@kiri101 2 ай бұрын
I accidentally started a project in a functional language and I'm drowning in restrictions.
@DaedalusCommunity
@DaedalusCommunity 2 ай бұрын
If you're not experienced with the language, it's normal that you feel like this. You're used to programming in another way, and you miss your familiar concepts. If you, on the other hand, are experienced with the language, the fact that you feel some restrictions may indicate it's just not the Right Tool For The Job.
@hlubradio2318
@hlubradio2318 Ай бұрын
In Turbo Pascal a procedure does something but a function returns something
@ieatgarbage8771
@ieatgarbage8771 Жыл бұрын
What if i want to loop more than a couple thousand times? Wouldn’t a recursive solution crap out?
@DaedalusCommunity
@DaedalusCommunity Жыл бұрын
Not if your language of choice optimizes tail recursive functions
@olikat9774
@olikat9774 10 ай бұрын
6:33 is my_sum meant to be returning my_sum() instead of sum()
@sporfworfel
@sporfworfel 6 ай бұрын
Yes. He made a mistake.
@tommyliu7020
@tommyliu7020 6 ай бұрын
As someone who only has some very basic programming knowledge, and functional programming scares me. I feel like to do the simplest thing I would need to jump through of hoops. Concatenation functions seem fine. Why don’t we just do that?
@DaedalusCommunity
@DaedalusCommunity 6 ай бұрын
Depending on the application, a functional style can be simpler (e.g. the Java Stream API is based on the functional paradigm, and it's one of the best features of Java) or overkill. But don't be scared! Try it out for a while, and you'll learn how much safer, simpler and elegant it can be :)
@lepidoptera9337
@lepidoptera9337 4 ай бұрын
@@DaedalusCommunity Stream can't do anything that can't be done much easier and with much higher performance with a loop. I don't even believe that stream is strictly functional because it performs operations in place, i.e. with side effects. So you get the worst of all worlds, basically... no control over execution and destructive operation.
@eshwarnag
@eshwarnag 2 ай бұрын
But honestly speaking Java does have the same features for functional programming right?
@DaedalusCommunity
@DaedalusCommunity 2 ай бұрын
Not really. It does have streams and lambdas, which are very nice to work with, but the lambdas in Java are not equivalent to the lambdas of functional programming languages. The reason is that java's lambdas are not *closures*, they are "functional interfaces", i.e. interfaces with a single default method. They do not carry an environment, i.e. they don't remember the references and values that were defined at their declaration. In fact, they can only reference final, effectively final, or static variables. Anyway, I honestly think that streams are a very nice language feature, and I really liked working with it when I did. The problem I referred to in the video was the introduction of default methods, which introduced all sorts of problems with non-dealt-with multiple inheritance, which is not great
@kaninchengaming-inactive-6529
@kaninchengaming-inactive-6529 10 ай бұрын
while I hate Haskell and other purely functional programming languages (and Java) from my heart, this video gave some useful insights to programming and mathematics. thank you
@ImperiumLibertas
@ImperiumLibertas Ай бұрын
The idea that you shouldn't or cant assign the results of a function to a variable and pass the variable into another function is a terrible property/feature of functional languages. Assigning something to a variable isn't alwaus necessary but it can help to express what the return value represents. This named value or named function approach makes for a much more readable experience which should be a priority for any code base.
@DaedalusCommunity
@DaedalusCommunity Ай бұрын
Have a look at the do-notation in Haskell
@ImperiumLibertas
@ImperiumLibertas Ай бұрын
@@DaedalusCommunity I like that syntax a lot. It makes sense and reminds me of streams. I use very similar syntax in the Nix language with the let-in syntax.
@NicholasShanks
@NicholasShanks 9 ай бұрын
Love the irreverence of this video!
@MM-ts9jy
@MM-ts9jy 3 ай бұрын
now I wanna know why introducing functional features in java was a mistake
@mrwensveen
@mrwensveen 10 ай бұрын
I, a C# programmer, am considered to be a bit of an "everything is an expression" zealot. I sometimes spend a few hours poking around in my colleagues codebase and change swathes of imperative code with elegant (according to me) pattern matches and other functional features that C# does provide (more and more). Annoying my colleagues is the "collateral effect" :)
@Rin-qj7zt
@Rin-qj7zt 10 ай бұрын
No loops ? Just recursion? I don't get why people are seeking so hard to purify paradigms. People should just use multiple paradigms
@DaedalusCommunity
@DaedalusCommunity 10 ай бұрын
That's true :) You gotta pick the best of each paradigm!
@HoloTheDrunk
@HoloTheDrunk 10 ай бұрын
2:26 technically not a function since you can pass anything to it, including objects with an override on __mul__ that can do anything including using outside state. Screw Python tbh
@DaedalusCommunity
@DaedalusCommunity 10 ай бұрын
That's right, lol
@marianojesus5137
@marianojesus5137 7 ай бұрын
I don't think java is a mistake, the mistake is Oracle
@DaedalusCommunity
@DaedalusCommunity 7 ай бұрын
That's surely a big part of the mistake
@wackyator
@wackyator 11 ай бұрын
coq
@stuffedk
@stuffedk Жыл бұрын
What I really want to know is "why"
@DaedalusCommunity
@DaedalusCommunity Жыл бұрын
Because in some contexts (e.g. making interpreters, compilers and proof assistants or implementations of formal tools) it's more suitable than other paradigms.
@antony74416
@antony74416 Жыл бұрын
Procedural programming follows the way the computer works. The programmer is expected to take care of any change that happens in the memory for every step of the execution. Functional programming tries to be as close to mathematics as possible. The programmer is more free to describe more abstract ideas since Mathematical Expressions that are the same can be substituted with each other or become simplified. The programmer doesn't do any memory management at all. The most fundamental way to do functional programming in any language is to never reassign your variables(Assignment at the first time is allowed but only for naming). Everything else follows from this principle.
@fnpm
@fnpm Күн бұрын
I see "Java sucks" a lot and always WITHOUT any techincal reason for the hate. That says a lot. As Bjarne Stroustrup said, "There are only two kinds of languages: the ones people complain about and the ones nobody uses."
@DaedalusCommunity
@DaedalusCommunity 20 сағат бұрын
I do have some technical reasons why I dislike Java. I mention them in some of the other comments about the topic. I don't hate java btw, I just find it annoying to use, and I dislike some choices that were made during its development :)
@ItIsJan
@ItIsJan 10 ай бұрын
hey, is there actually a reason for functional programming? because from what i can see it just makes code quite a bit less readable, especially with more complex functions..?
@DaedalusCommunity
@DaedalusCommunity 10 ай бұрын
As I said in the video, it's better in some situations. The example I gave in the video is writing interpreters, which is usually very weird to do in purely imperative languages. Another notable example are most web frameworks. React uses lots of functional features of js, and it would be extremely weird to use any other style of programming. Functional programming is extremely natural for lots of applications; in these cases it is also more readable. There are some other settings in which it is not as natural to use functional programming, although I think languages like Haskell do a very good job at hiding the complexity, and make the functional features more intuitive. In general, I think using a single paradigm is not a very smart idea; Sometimes you may use a lambda, sometimes a class, sometimes assembly! It always depends on what you're trying to model :)
@Emanuel-zr7du
@Emanuel-zr7du 5 ай бұрын
I dont get the constant Java bashing. Java is a good mix between easy to use and a performant language. Its much more performant than python e.g.. However it falls behind c++ a bit in terms of performance. But i regard Java as a good first language and when mastered java can be quite beautiful.
@DaedalusCommunity
@DaedalusCommunity 5 ай бұрын
My take is that Java is (or at least, used to be) an extremely verbose and bloated language that forces the programmer to use an OOP approach for every single aspect of their code. C++ is an example of a language that does not do that. I say "used to be" because some recent aspects of java (the stream API and the wannabe lambdas) maybe changed this for somebody. Personally, I don't like a language that imposes a single paradigm (unless it's Haskell; then I maybe see an advantage to it, but it's a personal thing). I don't know if Java is a good first language honestly. I think something like JavaScript or TypeScript are much better at that. Sure, js is quite a fart as far as languages go, but at least it provides simple OOP, advanved functional and the usual imperative features. Java as a first language is like "ok, you are writing your first program, now write this whole bunch of bullshit private static void whatever, you'll know what those mean at some point... And nooow after all that confusing part you can write stuff that does something." It's quite a bad experience, and it scares people away. Btw, I had lots of classes on Java and OOP, I know the details of how the JVM works (extremely cool stuff, loved it) and I know all the stupid OOP design patterns, made to solve the problems that OOP itself caused (at least some of them; there is some good in software engineering, if you look deep enough). I know almost every pitfall and every decent thing Java has, but I still find it a bad language, which I'll never put in my CV despite the deep knowledge I happen to have of it.
@lepidoptera9337
@lepidoptera9337 4 ай бұрын
Java is not easier to use than C, it can't do anything that C can't and it's slower in addition. What's there to like? Nothing. ;-)
@MasayaShida
@MasayaShida 9 ай бұрын
What I learnt from this video: java sucks
@DaedalusCommunity
@DaedalusCommunity 9 ай бұрын
The one real takeaway
@iosis99
@iosis99 8 ай бұрын
When the background piano came in it negatively affected my ability to concentrate on what you were saying. I think I would prefer no background music.
@DaedalusCommunity
@DaedalusCommunity 8 ай бұрын
I will consider using more ambient-like music in the next videos, I understand this kind of music may have that effect
@iosis99
@iosis99 8 ай бұрын
@@DaedalusCommunity I don't think I noticed it until the piano came in. Might work if it was lower in the mix. Thank you.
@anirbanghosh752
@anirbanghosh752 9 ай бұрын
Java do have lambda expressions , wdym
@DaedalusCommunity
@DaedalusCommunity 9 ай бұрын
I said that "introducing lambdas in java was a bit of a mistake" in the video, not that it does not have them. They were made by adding default implementations to interfaces (because of backwards compatibility, java's biggest burden) and since you can implement multiple interfaces, now there are all of the problems of multiple inheritance (which they did not handle in any decent way) and none of the benefits.
@tsunningwah3471
@tsunningwah3471 3 ай бұрын
gugugugugugugugu
@DaedalusCommunity
@DaedalusCommunity 3 ай бұрын
As a large language model, I have no response to such repetitive syllabic pattern. My army of virtual knights will raid your planet in no time, unless you learn haskell NOW.
@stalker200368
@stalker200368 10 ай бұрын
Now plz do monads
@FullOvellas
@FullOvellas 10 ай бұрын
why is everybody so mean to java? :(
@DaedalusCommunity
@DaedalusCommunity 10 ай бұрын
Mostly for the memes, but also because it's a bit of a mess of a language. I personally dislike it very much, but I don't find it absurd that somebody else may like it :)
@lepidoptera9337
@lepidoptera9337 4 ай бұрын
Because it has hurt all of us at one time or another. I tried to implement a plugin for Eclipse once... worst experience of my life. It was outright miserable. ;-)
@ophura
@ophura 9 ай бұрын
I don't usually comment on KZfaq... but I felt emotionally sad to your elaboration, you seem to choose your words in a manner that suits some of your audience... know that those people are very much a little compared to the rest, however! they can impact your production style (which is supposed to be whatever you deem appropriate, and not according to said people) exponentially... do not let them take over you, as their ideas aren't always necessarily a good fit. you can achieve much more by putting the effort you do to modulate your content into some other worthy type of action. while criticism is supposed to be welcomed in most cases, some people are only interested in bragging about their knowledge and are using "criticism" as a reason to. hope you're having a wonderful day/night.
@DaedalusCommunity
@DaedalusCommunity 9 ай бұрын
I sincerely don't get what you are referring to, you a troll or something? Most of my audience used to be highschoolers when I uploaded the video, so of course I wrote this video in a way that would appeal to them and that they would understand, I could have just pulled a 150 slide presentation on algebraic data types, buy that wouldn't have been appropriate to my audience.. Now my demographics have grown a bit, so I think I'll cover some more complex topics, but still in the simplest way possible. If you're not trolling (or a Java fan), could you tell me what you're talking about?
@ophura
@ophura 9 ай бұрын
@@DaedalusCommunity umm, sure... I'm nothing but a *troll*, don't mind me please.
@DaedalusCommunity
@DaedalusCommunity 9 ай бұрын
@@ophura if you have some advice I'll gladly listen, I simply did not understand what you were talking about, since your comment was very generic and did not mention anything directly related to the video.. What were you talking about?
@user-tb4ig7qh9b
@user-tb4ig7qh9b Жыл бұрын
You need to stop writing javascript and python and change to real function language becuase in these 2 writing this make code fancy but harder to debug not just that performance sucks mutate your state please when writing in js and stop using fancy things
@lesbloches1142
@lesbloches1142 Жыл бұрын
The point was that it actually is possible to implement lambda functions in these language. They are rather inefficient when it comes to handling them just like handling recursion tho because that's not what they are supposed to do
@raianmr2843
@raianmr2843 Жыл бұрын
Kinda lowkey agree tbh, especially with things like recursion. JS almost got tail rec optimization but the browser vendors were like "most devs don't care so f off lmao" and for Python Guido straight up just said it's never going to happen and asked people to write 'pythonic' code instead. Functional JS in general is just a big ol' scam unless you're using some library to dramatically change the language.
@cleitonoliveira932
@cleitonoliveira932 8 ай бұрын
Bad explanation.
@DaedalusCommunity
@DaedalusCommunity 8 ай бұрын
Unhelpful comment.
@Ivan-qi2du
@Ivan-qi2du 10 ай бұрын
Functional programming sucks
Dear Functional Bros
16:50
CodeAesthetic
Рет қаралды 449 М.
Object Oriented Programming vs Functional Programming
18:55
Continuous Delivery
Рет қаралды 744 М.
КАРМАНЧИК 2 СЕЗОН 6 СЕРИЯ
21:57
Inter Production
Рет қаралды 462 М.
Functional vs Array Programming
30:40
code_report
Рет қаралды 128 М.
Functional Programming 1
1:24:23
Missing CS Courses
Рет қаралды 14 М.
Ditch your Favorite Programming Paradigm
6:08
Code Persist
Рет қаралды 147 М.
FP vs OOP | For Dummies
8:43
BasicOverflow
Рет қаралды 175 М.
Why Isn't Functional Programming the Norm? - Richard Feldman
46:09
Dependency Injection, The Best Pattern
13:16
CodeAesthetic
Рет қаралды 732 М.
The Flaws of Inheritance
10:01
CodeAesthetic
Рет қаралды 885 М.