Register a SA Forums Account here!
JOINING THE SA FORUMS WILL REMOVE THIS BIG AD, THE ANNOYING UNDERLINED ADS, AND STUPID INTERSTITIAL ADS!!!

You can: log in, read the tech support FAQ, or request your lost password. This dumb message (and those ads) will appear on every screen until you register! Get rid of this crap by registering your own SA Forums Account and joining roughly 150,000 Goons, for the one-time price of $9.95! We charge money because it costs us money per month for bills, and since we don't believe in showing ads to our users, we try to make the money back through forum registrations.
 
  • Locked thread
HappyHippo
Nov 19, 2003
Do you have an Air Miles Card?
Two other resources I found useful for Haskell (once you grasp the basics) are the Typeclassopedia and What I Wish I Knew When Learning Haskell.

Adbot
ADBOT LOVES YOU

HappyHippo
Nov 19, 2003
Do you have an Air Miles Card?

Pollyanna posted:

Clojure is pretty drat cool. I'm learning it for the express purpose of wrapping my head around functional programming in general. I wanted to go through Functional Programming in Scala, but I felt like I didn't have the FP background for it. What are some good language-agnostic resources for the basics and theory behind FP?

It's not really language-agnostic, but Structure and Interpretation of Computer Programs is a classic textbook which uses Scheme (a lisp). When I had trouble learning Haskell I switched over to that book for a bit and then went back, it was a lot easier after that.

HappyHippo
Nov 19, 2003
Do you have an Air Miles Card?
Just a note about Elm, I've found this set of tutorials, Elm By Example and I wished I'd started here.

I like the idea behind Elm so far, but it's in version 0.15 and it shows. A lot of rough around the edges stuff. I'm going to stick with it though.

HappyHippo
Nov 19, 2003
Do you have an Air Miles Card?

VikingofRock posted:

Speaking of interesting math-y books, can anyone recommend a good book on category theory? I've been meaning to read up on it more.

Don't know how I've seen this recommended. I read the first two posts and it seemed pretty good.

HappyHippo
Nov 19, 2003
Do you have an Air Miles Card?

sarehu posted:

Yeah but those aren't short-circuiting.

You can't short-circuit xor anyway

HappyHippo
Nov 19, 2003
Do you have an Air Miles Card?

Sinestro posted:

I was pretty sold on Elm, until I started to try and actually write stuff. I really hate the stupid "no typeclasses, if you really need it just pass an explicit record around!" poo poo. It's a functional language, it'll mostly be used by people that understand it, and if you don't dive right into monad bullshit, it's a pretty simple concept. I don't think that you should be programming if you can't understand the concept of a constraint.

Agreed. I also think the whole "no monads!!!" thing itself is pretty silly. They've reimplemented Applicative like half a dozen times in the core libraries, its ridiculous that there's so many versions of map/map2/map3/... when they could just define them once and be done with it. Is this because typeclasses are difficult to implement, or is this from the "for your own good" school of language design? Or are they just concerned that people will be turned off the language if it has monads in it?

HappyHippo
Nov 19, 2003
Do you have an Air Miles Card?

GrumpyDoctor posted:

I'm in the camp that considers this a good thing, although I don't know anything about Scala or Clojure specifically.

When you're trying to learn functional programming for the first time I think it's a good idea to use a language that forces you to use it.

HappyHippo
Nov 19, 2003
Do you have an Air Miles Card?

AWWNAW posted:

Reading The Little Schemer helped me think more "functionally" and that was before I even started using functional languages for real.

I also found Scheme to be a good intro, although I read SICP (or part of it anyway).

HappyHippo
Nov 19, 2003
Do you have an Air Miles Card?
I thought STM was supposed to be a superior option to locks, not message passing?

Adbot
ADBOT LOVES YOU

HappyHippo
Nov 19, 2003
Do you have an Air Miles Card?

The March Hare posted:

Does anyone have a good resource for gaining an understanding of category theory for code bros who know almost nothing about math? It's OK if this isn't a thing, but if it is I'd appreciate a recommendation for a decent resource.

I've seen this recommended: https://bartoszmilewski.com/2014/10/28/category-theory-for-programmers-the-preface/

  • Locked thread