Main Hall 06: Why is Functional Programming so hard?

  Рет қаралды 5,348

DDD Melbourne

DDD Melbourne

Күн бұрын

Пікірлер: 10
@adambickford8720
@adambickford8720 24 күн бұрын
Maybe this is a skill issue, but I just don't find mathematical proofs to be convincing even if they perfectly demonstrate a principal. For example, partial application. Take a method that takes a user, pw, db and sql query and just bind the first 3 args, leaving a function that just takes the sql. I think that makes much more sense to most devs with any amount of experience vs some leetcode adjacent 'lesson'.
@ferroalloys594
@ferroalloys594 Ай бұрын
The presumption that functions abstracting over expressions (that may themselves contain function appications) IS SIMPLY NOT HOW HUMANS (well except mathematicians/logicians) normally themselves "compute" what they need to do... But it maybe possible to fix this, e.g. teach recursion rather than just comprehension! Just a thort, no criticisism intended or implied... ):-) Simples
@rorycawley
@rorycawley Ай бұрын
Monads? why don't you just use clojure?
@XKS99
@XKS99 3 ай бұрын
Its not hard at all.
@Daniel_Zhu_a6f
@Daniel_Zhu_a6f 21 күн бұрын
imo functional programming tries to solve some problems that people don't really have in practice. like making partial application into language syntax warrants a lot of implicit allocations while a more procedural builder pattern, which does not require special syntax, does not. making monads into syntax is also a strange idea, rigid interface for errors as values doesn't make them better (imo makes them worse). another FP shortcoming is the idea that most errors are type errors: in my experience most severe errors arise either in floating point computations or in side effects ordering (memory management, data racing). imo the best idea that sort of came out of FP is lisp macros, which genuinely solves some annoying problems (eg. custom utility method generation, binary embedding and pre-computed values). another good idea was async/await monads, but it's primary use is simple UI/networking (for high performance/embedded, event polling makes more sense)
@statebased
@statebased 4 ай бұрын
Types make FP harder. Better start "soft", with Python, frozen data classes and much __call__ .
@akim1995
@akim1995 4 ай бұрын
I agree, but I'd suggest switching Python or JavaScript to Clojure. Functional programming (FP) isn't just about the type system.
@statebased
@statebased 4 ай бұрын
I like Jax's numerical abilities and therefore why FP with Python.
@edgeeffect
@edgeeffect 2 ай бұрын
Types make everything EASIER.
@adambickford8720
@adambickford8720 24 күн бұрын
@@edgeeffect Agreed. In practice we have a type, why not share that info w/the programmer?
Why Isn't Functional Programming the Norm? - Richard Feldman
46:09
Players push long pins through a cardboard box attempting to pop the balloon!
00:31
What type of pedestrian are you?😄 #tiktok #elsarca
00:28
Elsa Arca
Рет қаралды 34 МЛН
Music Creation with Tempolor: Royalty-Free and AI-Powered
9:05
Thinking Functionally in C++ - Brian Ruth - CppCon 2023
50:25
Is Functional Programming a Good Idea?
10:28
Sammy Engineering
Рет қаралды 18 М.
Is Functional Programming DEAD Already?
21:07
Continuous Delivery
Рет қаралды 69 М.
Functional programming design patterns by Scott Wlaschin
1:05:44
Ivan Plyusnin
Рет қаралды 193 М.
7 Functional Programming Techniques EVERY Developer Should Know
21:35
Learn Functional Programming | Full 2-Hour Course
2:27:56
Boot dev
Рет қаралды 14 М.
Не бойтесь экраны "водопады"
1:00
Бананикс
Рет қаралды 430 М.
iPhone 16 vs Samsung…💀 #shorts #edit #trollface
0:33
MysteryCake
Рет қаралды 4 МЛН
Улучшил свой айфон!
0:17
По ту сторону Гугла
Рет қаралды 5 МЛН
Не бойтесь экраны "водопады"
1:00
Бананикс
Рет қаралды 430 М.