|
it’s good thatTheFluff posted:writing a node js app, op it’s good that you like fp in JavaScript because it’s not like it has integers
|
# ¿ Nov 18, 2017 18:32 |
|
|
# ¿ May 10, 2024 09:21 |
|
Colonel Taint posted:fp is cool until something doesn't quite work as you expect and you're left wondering wtf and you can't debug because your 'clever' and 'elegant' one-liner is actually wrapping 10 different things and all you can do is stare at it and think and hope some epiphany about what's wrong pops into your head. *morpheus voice* what if i told u that if you use functional programming you won't have to debug (because you won't make bugs)
|
# ¿ Nov 20, 2017 22:32 |
|
OldAlias posted:yeah but in the Linux “worse is better” way. if there are libs that handle your problem domain well then use it. if not then you’re on your own and do it yourself. it can be significantly easier to reason about with the caveat of an upfront cost of time, to formulate a solution and to understand anything. you could use fp features in otherwise OO langs I guess spending time doing fp in erlang made me better at ruby which is extremely oo
|
# ¿ Nov 20, 2017 22:43 |
|
ultravoices posted:list(filter(lambda x: x in big_butts, map(fart, butts))) feels fun to write even if it is less clear than a loop. that's really hard to read, you want: code:
|
# ¿ Nov 20, 2017 23:15 |
|
gonadic io posted:ive formally verified that my program is a piece of poo poo yes i too us the formal verification tool `ls` to locate programs that are poses
|
# ¿ Nov 21, 2017 01:35 |
|
atomicthumbs posted:Programming in a functional style can also be accomplished in languages that are not specifically designed for functional programming. For example, the imperative Perl programming language has been the subject of a book describing how to apply functional programming concepts.[29] This is also true of the PHP programming language.[30] step 1 to functional php is using the "render mathy" tool `rm` on all your php files
|
# ¿ Nov 21, 2017 16:36 |
|
Ludwig van Halen posted:my dude functional programming has been around as long as C has had function pointers functional programming predates c by almost 20 years
|
# ¿ Nov 21, 2017 22:10 |
|
MALE SHOEGAZE posted:no lie i'm going to miss scala though, i feel like FP is just starting to click for me looks like scala is just starting to right click empty trash imo
|
# ¿ Dec 12, 2017 17:32 |
|
Colonel Taint posted:Is this true of all fp? Like I've mainly done programming in the small type stuff for course work in scheme, sml, and some racket so I haven't had to deal with this, but it sounds hosed up. nah erlang & elixir are 100% fine with functions in a module being out of order (otherwise you can't have functions that call each other) ruby's fine with cross-file dependencies as long as the names can be resolved at runtime rust is good
|
# ¿ Dec 13, 2017 05:20 |
|
|
# ¿ May 10, 2024 09:21 |
|
fart simpson posted:i think you can be out of order in haskell, too. and also in elm and purescript most haskellers are out of order in some way
|
# ¿ Dec 13, 2017 13:46 |