JavaScript Promises Are Just Like Monads and I Can Explain Both in Under 2 Minutes

There’s a joke in functional programming that once you understand monads, it becomes impossible to explain them to others. The sheer number of monad tutorials on the internet is growing almost exponentially!
Monads are a funky concept that’s nearly impossible to understand in all of its nuance. Maybe I’m just not smart enough. That’s why I’m not going to explain any of that.


Parsing HTML: Selecting the Right Library (Part 1)

HTML is a markup language with a simple structure. It would be quite easy to build a parser for HTML with a parser generator. Actually, you may not even need to do that if you choose a popular parser generator, like ANTLR. That is because there are already available grammars ready to be used.
HTML is so popular that there is even a better option: using a library. It is easier to use and usually provides more features, such as a way to create an HTML document or support easy navigation through the parsed document. For example, usually, it comes with a CSS/jQuery-like selector to find nodes according to their position in the hierarchy.


Should You Migrate Your Project to TypeScript?

<!– Google Tag Manager (noscript) –> <iframe src="" height="0" width="0" style="display:none;visibility:hidden"></iframe>

TypeScript (TS) and JavaScript (JS) are two widely known languages in the development world, but what are the differences and what use cases are better suited for one over the other? In this post, we’ll compare the two languages, how they relate to one another, discuss their primary differences, and outline the benefits of each.