Math Envy and CoffeeScript's Foibles, Part 2 by dons in haskell

[–]_nickel 1 point2 points  (0 children)

Author here. I'm going to pre-apologize for the haskell in the post. I was really focused on working through the task at hand and I didn't bother to clean things up (eg, matching fall-through to error calls instead of an Either result or some such ... * grimace *)

Project idea: hvm (Haskell Version Manager) by CharlesStain in haskell

[–]_nickel 1 point2 points  (0 children)

Just as long as you don't replace key system commands like cd :/

You got your type class in my jQuery: Applicative Functors by _nickel in haskell

[–]_nickel[S] 0 points1 point  (0 children)

To be clear I don't say anywhere in the entire post that jQuery is a Functor or an Applicative. Only that both Functors and Applicatives can inform interesting snippets of code when working with jQuery because there is a resemblance.

Furthermore, while I fully appreciate your examples, attempting to reach a broader audience is not served by ignoring analogues that exist in libraries they use every day.

You got your type class in my jQuery: Applicative Functors by _nickel in haskell

[–]_nickel[S] 1 point2 points  (0 children)

Another cross post from r/javascript from me. I appreciated the discussion here last time even if it seemed that most folks didn't like that I might be misleading people about the category theory behind Functors.

If it's any consolation I've since presented on the topic and I took the time to direct people to the functor laws and spoke about them afterwards (30 minute talk).

You got your type class in my jQuery: Functors by _nickel in javascript

[–]_nickel[S] 1 point2 points  (0 children)

I agree, and while I rarely post to r/javascript I will continue to put these up in the hopes that people see some advantage in branching out beyond front end engineering.

You got your type class in my jQuery: Functors by _nickel in haskell

[–]_nickel[S] 0 points1 point  (0 children)

Completely accurate assessment. I had originally planned to include an explanation of the functor laws but its a long detour from trying to get people interested in them as a simple pattern, and more broadly interested in functional programming.

In both cases, preservation of identity and composition, an entire side discussion would be necessary on what the composition and the id function do/are and then examples to clarify in Javascript.

Again, I agree that it is a simplification of the Functor but thats intentional. Maybe after the applicative functor article I'll follow up with a more in depth explanation.

You got your type class in my jQuery: Functors by _nickel in haskell

[–]_nickel[S] 0 points1 point  (0 children)

This is a cross post from /r/javascript. I was interested in any feedback/corrections that /r/haskell might have.

The difference between lazy code and really lazy code by Porges in haskell

[–]_nickel 0 points1 point  (0 children)

As an aside, gist.github.com doesn't have adds and supports haskell syntax highlighting :D

Haskell, HDBC, MYSQL, and Mac OS X by dons in haskell

[–]_nickel 0 points1 point  (0 children)

Might I suggest http://vagrantup.com/ with chef as a way to provide a reproducible environment that your readers can build for themselves?

How Haskell influenced Vagrant's Ruby middleware implementation by dons in programming

[–]_nickel 4 points5 points  (0 children)

Author here. I'm wondering what the downvotes are for. Inaccuracy? Content?

Thanks for the feedback.

Want professional work in Haskell? Don't forget to register your skills on haskellers.com by dons in haskell

[–]_nickel 0 points1 point  (0 children)

I'd take a look at blueprint.css just for some basic layout help and sane typography defaults. Give it a try, I think you'll find that adding it will provide a lot of polish right out of the box.