Tag: module

Optional DI in JavaScript

This was something that eluded me for a while since I went back to using global variables, and I kept thinking it was an either-or thing. Do I continue to use global variables, or write testable code. While attempting to solve some other issue, I accidentally discovered a technique that appears to b...

Understanding Module Federation: A Deep Dive

Module Federation is an advanced feature in Webpack (and soon Rspack) that provides a way for a JavaScript application to dynamically load code from another application. This feature allows for efficient code sharing and dependency management. In this article, we will explore the architecture, ...

Should I use the print function or logging module??

Logging is the process of outputting messages from your code/script either to the terminal or mostly to a file, in order to be informed on what’s happening, it’s a great use in debugging and can be used in other situations to. Quite a lot of programmers use the print function, wh...

Best Practices for Compose Navigation in Multi-Module Project

This is the 2nd story in the series for Jetpack Compose Navigation. The first story shows how to implement Drawer Navigation using Material3 Apis. The link of that story is below Drawer Navigation using Material 3 in Jetpack Compose In this story we will take the same project, e...

Factory: Multiple Module Registration

When you want to use a dependency injection system like Factory with multiple modules you often run into a “Who’s on first” dilemma. Let’s say that ModuleP specifies an abstractAccountLoading protocol. // ModuleP public protocol AccountLoading { func load()...

How MEGA engineered its iOS design tokens module

Introduction Here at MEGA, in order to build a consistent UI experience throughout all of our products on different platforms (Android, desktop, iOS, and our websites) it became clear that we needed to create a robust, consistent, and sustainable design system for our codebase. With that goal ...

Hacker Detection. Let’s Develop and Load a Custom Security Kernel Module for Ubuntu

Picture this: while your friends are bragging about their MW2 Killstreak or the results of their latest speed run, you’ll be the hip cat (do young people still say this?) casually mentioning how you thwarted a potential cyber-intruder with your custom kernel module. Trust me; you’ll be t...

The Windows Process Journey — DrvInst.exe (Driver Installation Module)

“DrvInst.exe” is a PE executable located at “%windir%\System32\drvinst.exe”, it is known as “Driver Installation Module”. Since Windows Vista when PnP (Plug and Play) manager detects a new device “DrvInst.exe” is started. It is used for searching and i...