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

UX

36 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,441
CSS Intermediate

The popover Attribute: Dropdowns Without the JavaScript

Toggle behavior, light dismiss, Escape handling, top-layer rendering - the popover attribute gives you all of it declaratively. Menus and tooltips just got dramatically simpler.

2 min 1,773
JavaScript Intermediate

The Form Validation API You Already Shipped

required, pattern and type attributes feed a full JavaScript API: custom error messages, on-your-terms timing, and async checks - without a validation library.

2 min 1,757
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,595
PHP Intermediate

A Real Upload Progress Bar with XMLHttpRequest and PHP

fetch() still cannot report upload progress reliably - but XMLHttpRequest has done it for fifteen years. The full pattern: progress events, a PHP receiver, and the config limits that silently break big uploads.

2 min 2,962
jQuery Intermediate

One Global Spinner for Every AJAX Call

Stop wiring loading states into every request. jQuery broadcasts global AJAX lifecycle events, and $.ajaxSetup injects headers everywhere - CSRF tokens included.

2 min 3,590
CSS Beginner

Your Animations Might Be Making People Sick

Vestibular disorders make parallax and zoom animations physically unpleasant for a lot of people. Respecting the reduced-motion setting takes ten lines and is table stakes for professional work.

2 min 1,524