Skip to content

Engineering Blog

Concept-first explanations followed by implementation, testing, delivery, and operational evidence.

Articles

176 total

Why @Autowired is null in a new object: Spring beans vs manual construction

Compare a Spring-managed bean with an object built using new, and see how constructor injection exposes a missing dependency earlier.

Java/Spring3 min

Flutter pub add and Version Constraints: Avoid Dependency Conflicts

Understand how pubspec.yaml and pubspec.lock differ, read a caret version constraint, and verify updates before a platform build.

App3 min

React Router loader: Fetch route data and handle errors at the route boundary

Use a Data Mode loader to prepare route data, send 404 and server errors to an error boundary, and pass the router request signal to fetch.

Web3 min

Numbers, Conditions, and Coordinates in Code: binary, true, and offset

Understand number bases, Boolean conditions, and the words used for positions and dimensions in code and UI.

CS3 min

SQL UPDATE without WHERE: Check affected rows and ROLLBACK before COMMIT

A missing WHERE updates every row. Use three SQLite rows to inspect the scope, roll back before commit, and retry with a targeted condition.

DB/SQL2 min

When does React useEffect need cleanup? Listeners and stale requests

Pair listeners and requests with cleanup before changed dependencies rerun an effect or the component unmounts.

Web3 min

Why Mutating a React State Array May Not Update the Screen

Replace push and splice with new arrays from spread, map, and filter, while preserving stable keys and nested object identity.

Web2 min

Why the Next Promise then Gets undefined Without return

Trace what each then callback returns, including response.json(), and compare a missing return with an explicit one.

Web2 min

CIDR /24 vs /26: Find the subnet for 10.20.30.70 and count Azure IPs

Split a /24 into four /26 subnets, locate 10.20.30.70, and distinguish 62 conventional IPv4 host addresses from 59 Azure-assignable addresses.

Linux3 min

Variable, Literal, Constant, null, and void: Different Kinds of Absence and Value

Distinguish values written in code, names bound to values, missing references, and functions that return no value.

CS3 min

JavaScript map vs forEach: Which returns a new array?

Compare map transformations with forEach side effects, check missing callback returns, and avoid accidental mutation of objects.

Web2 min

JavaScript Default vs. Named Exports: Match the Import to the Export

Understand why default and named exports use different import syntax, how to diagnose a missing-export error, and when each style makes a module API clearer.

Web2 min

IntersectionObserver threshold 0.5: Why the callback runs again on scroll

A 0.5 threshold marks a crossing, not a one-shot trigger. Watch the intersection ratio move from 0.7 to 0.3 and use unobserve for a one-time reveal.

Web3 min

Dart named and redirecting constructors: Share one initialization rule

Compare a manually initialized Notice.error constructor with a redirecting this(...) constructor to see how duplicated field rules drift apart.

App2 min

JavaScript Event Bubbling and Delegation: Handle Clicks on New List Items

Use one listener on a list parent to handle existing and newly added buttons through event bubbling.

Web2 min

Why setTimeout(0) Runs After a Promise Callback in JavaScript

Trace synchronous logs, an already-fulfilled Promise, and a zero-delay timer without treating 0 ms as immediate execution.

Web3 min

Dart var vs dynamic: Type inference and when errors appear

Compare a String inferred from var with dynamic JSON input, then use Object? and an is String check to catch a numeric label before calling a method.

App3 min

JavaScript DOMContentLoaded and defer: When Scripts Run Before the DOM Is Ready

Fix a null querySelector result by checking script placement, defer, and the timing of DOMContentLoaded.

Web2 min

Syntax, Statement, Expression, Operator, and Signature in Code

Separate code-writing rules from executable statements, value-producing expressions, operators, and function signatures.

CS4 min

CSS position: relative vs. absolute: Why a Badge Drifts Away from Its Card

Learn which containing block positions an absolutely positioned element, why a card needs position: relative, and when normal flow or stacking contexts matter.

Web2 min

CSS Flexbox centering: justify-content and align-items follow different axes

Compare row and column layouts to see how justify-content follows the main axis and align-items follows the cross axis.

Web3 min

CSS box-sizing and overflow: What to Check When an Element Exceeds Its Container

Understand why a layout overflows despite an apparently correct width by checking box-sizing, padding, borders, and overflow.

Web3 min

Ubuntu apt update vs apt upgrade: Refreshing the package index is not an upgrade

Follow the repository, local package index, and installed package to see what apt update and apt upgrade each change.

Linux3 min

How Semantic HTML Improves Page Structure and Accessibility

Learn what header, nav, main, and article communicate beyond a page built entirely from div elements.

Web3 min

JUnit tests pass alone but fail together: A static repository and @AfterEach

See why two tests share a static in-memory Map despite new repository objects, when @AfterEach cleanup helps, and when independent storage is safer.

Java/Spring2 min