shlogg · Early preview
Nhan Nguyen @hoainhaanguyen

I’m a web developer, and I am really passionate about learning web development | MEAN.

Dynamic Service Instantiation In Angular For Scalable Solutions

Dynamic service instantiation in Angular: Use Injector to select services at runtime based on user input or app state, keeping design clean & scalable. Example: payment services for PayPal, Stripe, Venmo.

Building A GraphQL API With Node.js And PostgreSQL

Build a GraphQL API with Node.js & PostgreSQL: use a single endpoint, strongly typed schema, & support real-time data & subscriptions for modern apps.

Setting Up PostgreSQL In Docker For Efficient Database Management

Set up PostgreSQL in Docker with 7 easy steps. Pull the image, run the container, verify setup, persist data, use Docker Compose (optional), manage the container, and follow security best practices.

PostgreSQL Offers Advantages Over MongoDB For Scalable Applications

PostgreSQL offers robust data integrity, advanced query capabilities, and performance at scale, making it a superior choice over MongoDB for many applications. Its flexibility ensures data quality without sacrificing adaptability.

Setting Up And Getting Started With PostgreSQL In 60 Characters

Get started with PostgreSQL in 5 steps: Install, set up, create user & database, connect, and use basic commands like CREATE TABLE, INSERT, SELECT. Ideal for developers & businesses seeking a robust RDBMS.

Supabase: Open-Source Firebase Alternative For Easy Backend Management

Supabase is an open-source backend-as-a-service that offers database management, authentication, real-time features, storage and edge functions for scalable web and mobile apps. Get started with Supabase in 6 easy steps.

RxJS Deprecation: Understanding The Shift Away From Subscribe()

RxJS deprecating subscribe() due to misuse! Switch to explicit Observer objects or operator pipelines for better subscription management. Audit, refactor, and test your codebase for a smoother transition.

Best Of JS: Your One-Stop Destination For JavaScript Ecosystem

Discover top JavaScript projects with Best of JS, a curated platform aggregating data from GitHub. Find trending projects, categorized listings, real-time updates & more to stay updated on the latest innovations in JavaScript.

Configuring Nginx For Load Balancing With Node.js Applications

Load balancing Node.js apps with Nginx distributes traffic across multiple servers, enhancing perf, avail & scalability. Configure upstream servers, customize load balancing methods & test/reload Nginx for seamless user experience.

Node.js Alpine: Lightweight, Secure, And Efficient Server-Side Apps

Node.js Alpine is a lightweight Docker image for building scalable server-side apps. It's 5MB, not 50-100MB like standard Node.js images. Smaller size means faster downloads & reduced storage usage.

Angular Shifts To Native Bindings For Styles And Classes

Angular shifts to native bindings for styles & classes, promoting cleaner code, better perf & web standard alignment. Use [style] & [class] instead of ngStyle & ngClass for efficiency & maintainability.

Software Engineering With AI: 12 Months Of GitHub Copilot

Integrated GitHub Copilot into my dev workflow for 1 year, discovering its strengths in automating repetitive tasks & sparking creativity, but also limitations like context awareness & accuracy issues.

Optimizing Code With Weak References And Lazy Loading Techniques

Optimize your code with 4 simple tips: Use Weak References, Lazy Loading, Efficient Data Structures & Pooling Resources. Reduce memory consumption and improve load times!

Preventing Memory Leaks In JavaScript: Strategies And Best Practices

Prevent memory leaks in your app by minimizing global variables, clearing detached DOM nodes & timers, and avoiding large closures. Use local scope for vars, set removed node refs to null, and clear event listeners when no longer needed.

Node.js 23.6.0 Enables Experimental TypeScript Support By Default

Node.js v23.6.0 released with experimental --experimental-strip-types flag enabled by default, allowing TypeScript files to run without external transpilers or build steps. Still experimental, use with caution in production environments.

Angular Resource API Simplified State Management For Modern Apps

Angular v19's Resource API simplifies async data fetching & state management with declarative syntax, built-in state tracking & reactive integration. Ideal for real-time apps, but still experimental.

Angular 19 Simplifies Async Data Fetching With Resource API

Angular 19 introduces the Resource API, simplifying asynchronous data fetching & state management with declarative approach, reducing boilerplate code & enhancing app consistency.

Angular Multi-Providers For Scalable Notification Systems

Angular's multi-providers enable scalable, maintainable code by injecting multiple service instances dynamically without tightly coupling the system. This allows for modular and extensible architecture with loose coupling.

Template Pattern In Software Engineering For Tax Calculation

The template pattern allows defining an algorithm's skeleton in a superclass, letting subclasses override specific steps without changing its structure. Reusable tax calculator example demonstrates this concept.

Angular Signals Improve Change Detection And Performance

Angular Signals available from v16, providing change notifications for improved performance and reactivity. Use signals with computed() or effect(), or untracked() to read values without triggering reactive functions.

Mediator Pattern Reduces Chaotic Dependencies Between Objects

The Mediator pattern reduces chaotic dependencies by defining an object that encapsulates interactions between objects, allowing them to collaborate indirectly through a mediator.