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

JavaScript

55 tutorials

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

JavaScript Intermediate

Let Users Paste Screenshots Straight into Your App

Ctrl+V with an image on the clipboard fires a paste event carrying a real File object. Ten lines of code turn any form into a screenshot-friendly uploader.

2 min 5,176
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,966
JavaScript Beginner

Serialize an Entire Form in One Line with FormData

new FormData(form) reads every field in one call, posts natively with fetch, and Object.fromEntries turns it into JSON. You may never write form.elements loops again.

2 min 3,398
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,250
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 3,053