Issue #294 · October 10, 2022

How to Code a 2D Game Using JavaScript

“Should array indices start at 0 or 1? My compromise of 0.5 was rejected without, I thought, proper consideration”

How to Code a 2D Game Using JavaScript

How to Code a 2D Game Using JavaScript

Last week at NodeConfEU, the awesome Liran Tal thought me about Kaboom.js, a JavaScript toolkit that can be used to easily create games in the browser! But if you feel really hardcore, you should know that you don't need a toolkit and you can just build everything from scratch with just JavaScript and a canvas. Do you want to learn how?

Articles

Preview.js

A VSCode plugin that allows you to have a preview pane to render the React, Solid, or Vue components that you are currently working on. I still have to try this but it seems like something that can save you a lot of time if you find yourself doing a lot of components!

The new wave of Javascript web frameworks

How did we get from 0 to React? And what's coming next? This article explores the history of JavaScript frameworks (and the evolution of the web really) making it easy to understand the proliferation of new Javascript web frameworks. I like the fact that MPAs (Multi Page Apps) are considered the new rage even though they existed forever... Sometimes innovation just goes in cycles!

Where JavaScript is headed in 2022

This article also explores the future of JavaScript, but rather than looking into frameworks it looks into JavaScript's new features and what those will enable. If you enjoyed the previous article, this one is a good complement!

Minimize Heap Allocations in Node.js

If you care about performance in JavaScript (both frontend and backend) you should be concerned about when and how your code allocates memory in the heap. This article explains in great detail how all of that works and it shows how to prevent memory leaks and minimize heap allocation in your Node.js app.

Postgres WASM

Last week we discussed how WordPress can now be executed "serverless" using WASM. More is happening in this space, and this week is the time of PostgreSQL, the king of open-source relational databases. If you are curious to see how this can help in the field of web development, well you just need to check out this article!

Leonardo Syndrome

This is a non-technical short article, but I think all software engineers (including aspiring ones) will enjoy it! Did you know that Leonardo Da Vinci didn't really have such a great reputation during his time? He was so curious that he was literally incapable of completing anything. He was always moved to explore something else. Apparently, Leonard was not unique in this and the Leonardo Syndrome defines people that suffer from the same overwhelming level of curiosity!

Book of the week

Introduction to Algorithms, Third Edition (International Edition)

Introduction to Algorithms, Third Edition (International Edition)

by Thomas H. Cormen

Some books on algorithms are rigorous but incomplete; others cover masses of material but lack rigor. Introduction to Algorithms uniquely combines rigor and comprehensiveness. The book covers a broad range of algorithms in depth, yet makes their design and analysis accessible to all levels of readers. Each chapter is relatively self-contained and can be used as a unit of study. The algorithms are described in English and in a pseudocode designed to be readable by anyone who has done a little programming. The explanations have been kept elementary without sacrificing depth of coverage or mathematical rigor.