PHPNews

The Reader monad and read-only context

Written by Jack Hsu - Published on Jack Hsu
Aggregated on Wednesday May 10, 2017 - Permalink

In this three-part series, I want to take a functional approach to building React applications. There will be mathematical theory sprinkled throughout the series, and hopefully by the end of it you will pick up some useful techniques! Series contents: Part 1 - Deconstructing the React Component Part 2 - The Reader monad and read-only context Part 3 - Functional state …

Continue reading »


Three Rules For Structuring (Redux) Applications

Written by Jack Hsu - Published on Jack Hsu
Aggregated on Sunday February 28, 2016 - Permalink

In this series we are looking at code organization in the context of a React and Redux application. The takeaways for the “Three Rules” presented here should be applicable to any application, not just React/Redux. Series contents Part 1 - Three Rules for Structuring (Redux) Applications Rule #1: Organize by feature Rule #2: Create strict module boundaries …

Continue reading »


Why You Need Types

Written by Jack Hsu - Published on Jack Hsu
Aggregated on Tuesday August 23, 2016 - Permalink

Dynamically typed languages like JavaScript provide a lot of expressiveness and power to the programmer. By not having to think about strict types, a program is more maleable since it will run no matter what, allowing the programmer to write code very quickly. The problem with dynamic types is that it slows down development of an application over time . This decrease in velocity can be …

Continue reading »


Additional Guidelines For (Redux) Project Structure

Written by Jack Hsu - Published on Jack Hsu
Aggregated on Monday December 12, 2016 - Permalink

In this series we are looking at code organization in the context of a React and Redux application. The takeaways for the “Three Rules” presented here should be applicable to any application, not just React/Redux. Series contents Part 1 - Three Rules for Structuring (Redux) Applications Rule #1: Organize by feature Rule #2: Create strict module boundaries …

Continue reading »


Don't Fear the Type System

Written by Jack Hsu - Published on Jack Hsu
Aggregated on Tuesday January 24, 2017 - Permalink

There’s been a lot of talk about static types recently. I’ve especially noticed that folks who usually work with dynamically typed languages have become big proponents of static typing – and I count myself amongst them. Being a fan of Robert C. Martin (aka Uncle Bob) for a long time, it was a surprise for me to see that he has written not one , but two blog posts on the subject of The Dark …

Continue reading »


Deconstructing the React Component

Written by Jack Hsu - Published on Jack Hsu
Aggregated on Sunday April 30, 2017 - Permalink

In this three-part series, I want to take a functional approach to building React applications. There will be mathematical theory sprinkled throughout the series, and hopefully by the end of it you will pick up some useful techniques! Series contents: Part 1 - Deconstructing the React Component Part 2 - The Reader monad and read-only context Part 3 - Functional state …

Continue reading »