G to the Square

Geries Handal Profile picture

Occasionally, I write my opinions on software development. By Geries Handal. Github, Gitlab

Build your own image loader hook

2020-06-01

In the spirit of learning and having fewer dependencies, I decided to explore the creation of a "simple" image loader react hook. The hook will enable you to trigger loading of images and get different states

Build your own primitive UI

2020-01-08

I have seen many teams, in the spirit of moving fast and getting the product to the market, outsource their UI. By outsourcing

You don't need webpack

2019-08-06

Use parcel.js instead. No config needed, HMR is a breeze to setup (done via babelrc) and code splitting is done via dynamic imports, giving you full control programmatically of when to load code.

Should we always code review?

2019-07-10

I recently "stumbled" into the following statement from the Technical due diligence calculator for startups on Hacker news: 7.c Do you have code reviews?

Handling errors in promises the DRY way

2018-10-28

Here I will show you a subtle abstraction when dealing with errors in promises. The core concept using the Promise.resolve as we do in express middlewares with next().

How to package refactoring

2018-07-12

Every software project has a need for periodic refactoring. We need to add more tests (if any), improve readability and decrease tech debt. Otherwise the code base becomes hard to work with and deployments, well... "deployment jenga":

Copyright © 2020 Geries Handal