30 Days of JavaScript: Unit Testing in JavaScript, Day 15
You wrote the function. It works on your machine. Three weeks later someone refactors it, ships, and it quietly breaks in
A collection of web development tutorials and code snippets for WordPress, PHP, JavaScript, CSS and many more.
You wrote the function. It works on your machine. Three weeks later someone refactors it, ships, and it quietly breaks in
By now you’ve written a fair bit of JavaScript in this 30 Days of JavaScript series, and your files are probably
Nobody writes everything from scratch. The moment you need to manipulate the DOM, wrangle a date, or build a screen that
You call an API, and back comes a wall of text. Before your code can do anything with it, that text
You’ve written code that works. Then you ship it, someone opens it on a mid-range phone, and it stutters. Closing that
Your code just broke, and the browser is yelling at you in red. The instinct is to panic, or to start
You’ve written the loop before. Check whether a string holds a phone number, then a second pass for the dashes, then
You’ve spent a week on syntax and small exercises. Today you build something you’d actually keep in a tab: a ToDo
Day 7. Your layout looks sharp on your laptop, then someone opens it on a phone and the whole thing folds
In Part 1, we walked through the categories of ARIA roles and why they matter. That was the map. This part
ES6 (ECMAScript 2015) is the release that changed how everyday JavaScript reads. If you learned the language before it, your old
You click a button and the whole page freezes for a second or two. We’ve all shipped that bug at least
Up to now your JavaScript has run in a vacuum. Today it touches the page. The Document Object Model is the
Every program you write comes down to one thing in the end: moving data around. Holding it, reshaping it, reading it
Day 2 is where JavaScript stops feeling abstract. Almost everything you write later leans on a handful of ideas: variables, data
JavaScript is the one language that runs everywhere a web developer works. It powers the button that responds when you click
Ask “WooCommerce or Shopify?” and you will get a hundred confident answers, most of them useless, because they are answering the
WordPress interviews rarely test whether you memorized the docs. They test whether you understand how the platform fits together and can
Sooner or later WordPress won’t do the one thing you need, and you’ll be tempted to edit a core file to
Running a WordPress site is a hundred small jobs stacked on top of each other. You write, you design, you chase