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

Tutorials

128 tutorials

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

PHP Intermediate

readonly + Constructor Promotion: DTOs in Five Lines

The 40-line value object - properties, constructor assignments, getters - collapses into a declaration. Modern PHP makes immutable data carriers nearly free to write.

2 min 427
PHP Intermediate

Backed Enums Are Your Status Fields' Best Friend

Order statuses as loose strings invite typos, scattered labels and unguarded transitions. PHP 8.1 enums centralize the values, their behavior, and - with match - force you to handle every case.

2 min 570
PHP Intermediate

strlen(...) Is Valid PHP Now: First-Class Callables

PHP 8.1 turned functions into values you can pass, store and compose - ending the string-callable era of 'array_map("strtoupper", ...)' and its silent refactoring bugs.

2 min 891
CSS Intermediate

light-dark(): Two-Mode Colors in One Declaration

Half your dark-mode CSS is pairs of rules flipping the same property. light-dark() collapses each pair into one line - and color-scheme unlocks free dark UI from the browser itself.

2 min 1,167
CSS Intermediate

z-index: 99999 Isn't Working Because of Stacking Contexts

When a dropdown hides behind a header despite a huge z-index, the number is not the problem - the element is trapped in a stacking context. Here is the mental model and the debugging routine.

3 min 983
CSS Beginner

:empty - Hide Containers That Have Nothing to Say

Notification badges showing "0", alert boxes rendering as empty bordered rectangles, list wrappers with padding and no list - :empty cleans up after your templates.

2 min 1,026