Showing posts with label tutorial. Show all posts
Showing posts with label tutorial. Show all posts

Tuesday, November 27, 2018

AirNYT: Clone Airbnb with New York Times Travel Data

AirNYT: Clone Airbnb with New York Times Travel Data

The New York Times has published a list of travel recommendations called ‘Places to go in [year]’ over the last 7+ years. The list length was standardized to 52 in 2014. The top of the list often features ‘off-the-beaten-track’ places like Mexico City, Ghana, Houston, or the Albanian Coast.

Wednesday, May 2, 2018

HXT/Conversion of Haskell data from/to XML

HXT/Conversion of Haskell data from/to XML

With so called pickler functions and arrows, it becomes rather easy and straightforward to convert native Haskell values to XML and vice versa. The module Text.XML.HXT.Arrow.

Aeson: the tutorial

Aeson: the tutorial

Aeson is the most widely used library for parsing JSON (in Haskell, of course, I'm not talking about the whole world). It's also hopelessly magical for people who try to learn it by looking at provided examples, and existing tutorials don't help that much, so I wrote my own.

Wednesday, April 4, 2018

For a Few Monads More

For a Few Monads More

We've seen how monads can be used to take values with contexts and apply them to functions and how using >>= or do notation allows us to focus on the values themselves while the context gets handled for us. We've met the Maybe monad and seen how it adds a context of possible failure to values.

lens over tea #1: lenses 101, traversals 101, and some implementation details

lens over tea #1: lenses 101, traversals 101, and some implementation details

Okay, so I never could really understand how lens works. This is an attempt to understand lens as completely as possible, including the ideas behind it, the implementation, and the design choices.

Thursday, March 15, 2018

You Could Have Invented Monads! (And Maybe You Already Have.)



If you hadn't guessed, this is about monads as they appear in pure functional programming languages like Haskell. They are closely related to the monads of category theory, but are not exactly the same because Haskell doesn't enforce the identities satisfied by categorical monads.

Wednesday, February 28, 2018

Rust By Example



Closures succinctly capture variables from enclosing scopes. Does this have any consequences? It surely does. Observe how using a closure as a function parameter requires generics, which is necessary because of how they are defined:

Friday, July 28, 2017

Building a Facebook-like Comment Box: A React Tutorial in Elm



Elm is a new programming language that compiles to JavaScript. It is a functional programming language that features static typing, ensuring type-safety in your web apps and catching common errors. React is a library for creating user interfaces in JavaScript.

bundlephobia

JavaScript bloat is a more real problem today than it ever was. Bundlephobia lets you understand the performance cost of adding a npm pack...