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.

Monday, November 26, 2018

4 Tips to Optimize Your Map with React Native

4 Tips to Optimize Your Map with React Native

In this article, you will find tips to improve the performance of your map with React Native in order to avoid slow animations, lags and to enhance the UX. When implementing a map with a lot of markers, optimization is a critical point to avoid bad performance.

Thursday, November 22, 2018

Upload files and directories using an input, drag and drop, or copy and paste with HTML5

Upload files and directories using an input, drag and drop, or copy and paste with HTML5

Many websites have a form to upload a file. For some sites, such as OneDrive or Google Drive, uploading files is a major feature. As time went on, webpages are more and more interactive. So, users expect more interactions such as dragging and dropping files or directories or pasting screenshots.

Thursday, November 15, 2018

Finite-State Machines, Part 1: Modeling with Haskell Data Types

Finite-State Machines, Part 1: Modeling with Haskell Data Types

Stateful programs often become complex beasts as they grow. Program state incohesively spread across a bunch of variables, spuriously guarded by even more variables, is what I refer to as implicit state.

Monday, November 12, 2018

JavaScript Event Loop Explained

JavaScript Event Loop Explained

Now for the long answer, let me try through 2 sample code snippets. Here we have the main function which has 2 console.log commands logging ‘A’ and ‘C’ to the console. Sandwiched between them is a setTimeout call which logs ‘B’ to the console with 0ms wait time.

Wednesday, November 7, 2018

Why classic FRP does not fit interactive behavior

Why classic FRP does not fit interactive behavior

In functional reactive programming (FRP), the type we call “behaviors” model non-interactive behavior. To see why, just look at the semantic model: t -> a, for some notion t of time. One can argue as follows that this model applies to interactive behavior as well.

Sunday, September 9, 2018

How can you work with a JSON value if you know nothing about it?

How can you work with a JSON value if you know nothing about it?

I have talked about the difficulty of typing certain JSON values coming from some APIs. The JSON is just very complicated. When I do that, I often get this question “how can you work with a JSON value if you know nothing about it?” The question is rhetorical.

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 ...