Node.JS
import.meta.main, neat!
if (import.meta.main) main();
Node.JS
if (import.meta.main) main();
Artificial Intelligence (AI) isn't just a buzzword anymore—it's the cheese on our innovation pizza, melting into every slice of technology we consume. From healthcare to open source software, AI is reshaping the way we innovate, collaborate, and even legislate. Let's dive into how
In recent years, the convergence of software engineering and machine learning (ML) has begun to reshape how developers build, test, and maintain software. Machine learning offers powerful techniques to automate and enhance various aspects of the software development lifecycle (SDLC), leading to more efficient processes and innovative solutions. This article
The statement raises an interesting point about REST, JWT (JSON Web Tokens), and the concept of sessions. Let’s break it down: REST is stateless * Core Principle: REST (Representational State Transfer) is designed to be stateless, meaning each request from a client to a server must contain all the information
Here are some fundamental design concepts in Functional Programming (FP), along with their equivalents in Object-Oriented Programming (OOP): 1. Immutable Data Structures (FP) vs. Encapsulation (OOP) 2. In FP, data is immutable by design, ensuring that functions don't modify state. In OOP, encapsulation is used to hide internal
In Node.js, handling asynchronous calls is mainly based on its event-driven, non-blocking I/O model rather than using traditional multithreading. Here's a technical breakdown of how Node.js manages asynchronous tasks: Event Loop and Async Callbacks Node.js operates on a single-threaded event loop. It uses this
Why does annotating types in typescript feel more cumbersome than in other languages? No matter how much I use typescript, that's always a latent theme of lamentation. Don't get me wrong, I see the benefits in it as a programming language but that aspect is what
quick-tip
Yes, it's possible to use the new Microsoft Edge browser to emulate older IE! For me, this is useful for development and troubleshooting. I'm writing these based on my experience in using the feature in Windows 11 for "Microsoft Edge Version 96.0.1054.41
React
A solution for WebStorm & ESLint error that states Failed to load config "plugin:@typescript-eslint" to extend from.
DevOps
I've been using AWS to host my personal websites (although this website hasn't been relocated there). I automate everything. Anything not automated is just a POC in my perspective. I have some static websites - that is websites that do not do any server side processing
quick-tip
For an upcoming article, I'm investigating the source code to Ghost - the platform this blog (and many others) run on. I found this code in main/core/server/web/shared/index.js among other places in the code-base. module.exports = { get middlewares() { return require('./middlewares'
quick-tip
Somewhat thoughtfully pressing keys on a keyboard to get the computer to do approximately what you want.