New: functionalprogrammingAll contenthive-129948hive-196917krhive-185836zzanhive-183959photographysteemhive-150122hive-101145hive-180932hive-166405hive-144064hive-183397uncommonlabhive-184714hive-188619bitcoinkrsuccesshive-103599hive-193637hive-145157hive-193186hive-179660hive-180301TrendingNewHotLikersevrone (41)in ocaml • 5 years agoHannes Mehnert on MirageOS and OCaml: Functional programming is about better code maintenance and program understandingOur backend engineer, Pavel Argentov, travelled to Marrakech, Morocco to attend the ninth MirageOS retreat, which was held from March 13–19, 2020. The goal of the event is to bring both experienced…evrone (41)in elixir • 5 years agoWhy your project needs Elixir developersElixir is a functional, distributed, general-purpose programming language that runs on BEAM, an Erlang virtual machine. The Erlang VM ensures distributedness, fault tolerance, soft real-time…crell (53)in php • 5 years agoType matching in PHPOne of the nice features of Rust is the match keyword. match is similar to switch , but with two key differences: It requires an exhaustive match, that is, every possible value must be…markgritter (59)in adventofcode • 6 years agoAdvent of Code day 13 [spoilers]Day 13 is a simulation of carts on tracks. The track layout is given by an ASCII diagram, like this one: /->-\ markgritter (59)in adventofcode • 6 years agoAdvent of Code, day 12, in Haskell [spoilers]Day 12 asks us to implement a cellular automaton. There's a lot of flavor text, but that's basically it. The rules are part of the puzzle; I don't know if they're actually different for…markgritter (59)in adventofcode • 6 years agoAdvent of Code Day 11 [spoilers], Inclusion-Exclusion, and Haskell's odd design decisionsHaskell has a maximum function and it has lazy evaluations of lists. I come from Python that has a max function and list generators. But there turns out to be a crucial difference. Day…markgritter (59)in adventofcode • 6 years agoAdvent of Code Day 8 [spoilers]Day 8's puzzle was basically just about parsing a long list of integers correctly, and writing tree-recursive functions correctly. Both are pretty easy in Haskell. I defined the tree object…markgritter (59)in adventofcode • 6 years agoAdvent Of Code Day 5 [spoilers]I completely gave up on solving the Advent of Code problems as they went up, and I'm backfilling the days I missed, which is most of them. Day 5 was the first time I really felt happy with my…markgritter (59)in adventofcode • 6 years agoAdvent of Code, day 7 [spoilers]The Day 7 puzzle is about parallel builds. So, just convert your input into a Makefile and solve it with GNU Make! OK, maybe not. I probably could have gotten that working in less time than it…markgritter (59)in adventofcode • 6 years agoAdvent of Code Day 4 [spoilers]Day 3 and 4 kinda kicked my butt (plus I had work stuff both nights) but I finally finished day 4 . It asks us to solve a scheduling problem, and the example even shows us a nice matrix we could…markgritter (59)in adventofcode • 6 years agoAdvent of Code day 2 [spoilers]Advent of Code Day 2 asks us to do some string searches. It took me about 40 minutes, and I can't say I'm particularly happy with the results, but it worked. Part 1 asks us to find the number…markgritter (59)in adventofcode • 6 years agoAdvent of Code day 1 [spoilers]I'm doing Advent of Code in Haskell this year, as planned. I warmed up with one of last year's problems so I was able to get started right away at 11pm last night when the puzzle went live. It…jonathanfishbein (25)in introduceyourself • 7 years agoI want to introduce myselfHello steem community, I am Jonathan Fishbein. I am from Washington D.C. I have a interest in functional programming and would be interested in reading and writing about it. I have experience…therealklanni (37)in javascript • 8 years agoFunction Composition using TuplesIn this post I go into detail about tuples and how to get really versatile function composition in JavaScript using your own tuple-izer function—explained step by step. Function Composition using…therealklanni (37)in javascript • 8 years agoThe Mysterious Y-CombinatorSince I'm new here, I might as well share some of my blog posts, for those interested. This one is an in-depth deconstruction of the Y-Combinator concept (from lambda calculus) in JavaScript. Very…