Skip to content
Carl Victor Fontanos
Carl Victor Fontanos

Carl Victor Fontanos

Software Engineer

I build web applications and share what I learn along the way.

© 2026

Browser APIs

18 tutorials

Step-by-step programming tutorials on PHP, JavaScript, Laravel, WordPress and more.

JavaScript Beginner

"1 item" vs "2 items": Stop Writing That Ternary

Intl.PluralRules knows every language's plural categories and Intl.ListFormat writes "a, b, and c" correctly - two tiny APIs that end string-building guesswork.

2 min 2,439
JavaScript Advanced

Measure Real User Performance with PerformanceObserver

Lighthouse tells you about your machine. PerformanceObserver tells you about your users - long tasks, slow interactions and layout shifts, from the field, in a few lines.

2 min 1,411
JavaScript Beginner

Stop Using Math.random() for IDs: crypto.randomUUID()

Math.random-based IDs collide more than you think and are predictable by design. The browser ships a real UUID generator and a cryptographic random source - both one-liners.

2 min 3,105
JavaScript Intermediate

Your Tabs Can Talk to Each Other: BroadcastChannel

Log out in one tab, stay logged in at the other five? BroadcastChannel syncs state across tabs in three lines - and the storage event covers the legacy cases.

2 min 2,594
PHP Advanced

Real-Time Updates with Plain PHP: Server-Sent Events

WebSockets need infrastructure. Polling hammers your server. SSE streams live updates over normal HTTP with a PHP file and the built-in EventSource API - reconnection included.

2 min 1,920
JavaScript Intermediate

Responsive JavaScript Without Resize Listeners

Checking window.innerWidth on every resize event is wasteful and drifts out of sync with your CSS. matchMedia gives JavaScript the same breakpoints CSS uses, with change events.

2 min 4,864