|
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 list(filter(lambda x: x in big_butts, map(fart, butts))) feels fun to write even if it is less clear than a loop.
|
# ¿ Nov 20, 2017 23:13 |
|
|
# ¿ May 10, 2024 00:50 |
|
Cocoa Crispies posted:that's really hard to read, you want: i agree, python list/dict comprehensions and map/reduce/lambda expressions are not the easiest thing to read. i mostly use them as specific idioms rather than composing up a piece of fresh line noise, things like flattening a nested list, or reversing a mapping. you can put additional whitespace in as when you are inside an argument as you aren't in semantic whitespace land anymore, but it's an open question of style.
|
# ¿ Nov 21, 2017 15:22 |
|
computerphile just posted their what is a monad video, which was somewhat helpful, but stay for the end for the presenter making bitchy spergy functional programmer comment about why they are called monads and not something more understandable for mere computer programmers.
|
# ¿ Nov 29, 2017 13:36 |
|
gonadic io posted:unless the comment "it's stupid and historical and literally everybody wishes they were called something else but it's too late now" he's wrong. well it is what they are and calling them what they are gives credit to the mathematicians who discovered them for me it's "oh we have this black box of a pure function how to do we get something useful out of it, and that interface is called a monad and it is kind of like wrapping up the function in a case switch which is something like typecasting and something like exception handling and oh god this would all be clear if you were smarter and/or went to college."
|
# ¿ Nov 29, 2017 17:11 |
|
Symbolic Butt posted:computerphile is kind of bad lol dinkering with old computer is cool or hearing from ancients about the origins of things is neat the guy who parrots lesswrong fears about AI is not so neat
|
# ¿ Nov 29, 2017 17:12 |