blog.rakha.devMicro-pattern: IIFE and Return-EarlyImmediately Invoked Function Expression (IIFE) If you came from JavaScript background you will most likely have encountered this pattern. Remember JQuery? ;(function($) { $('.spoilerBtn').click(function() { var button = $(this).find('.spo...Mar 8, 2021·5 min read
blog.rakha.devTesting Koa Server with JestExpress has long been the de facto standard and mainstream pick when you start a project in Node.js. But recently (well, not that recent), the team behind Express has started a new, shiny library called Koa.js with a different phillosophy in mind. W...Nov 25, 2020·5 min read
blog.rakha.devIntegrating PostgreSQL to your Node-Typescript project with TypeORMPhase 1: Choosing a DBMS If you’re reading this article, you most likely have already known a few popular example of DBMS or Database Management System like MySQL, MS-SQL, PostgreSQL, or even the NoSQL one like MongoDB or Redis. A database-managemen...Nov 25, 2020·8 min read
blog.rakha.devProfiling, Refactoring & Design PatternsProfiling, Refactoring & Design Patterns Evaluating and enhancing the code Profiling One way to evaluate the code is to profile it. Luckily, Node.js already provides us with a profiler, behind the --prof flag. So let’s just run our app with the profi...Nov 24, 2020·11 min read