Advent of Code 2021 is here!

Time for my second year into Advent of Code! The first year was fun, you can see all of my challenges, answers, and thoughts here: https://davidlozzi.com/tag/advent-of-code/. If you're new to this, let me share what I shared last year: I found this neat little site, big thank you to Eric Wastl, called the Advent of Code. It... Continue Reading →

Keeping React component’s state top of mind

I'm impatient I've done this too many times: // api call to get the contact Luke Skywalker // process a little data return ( <Card> <Card.Title>{person.name}</Card.Title> </Card> ) just to get a lovely Can't read property 'name' of undefined error. Yuck. I fire up the dev console... Network tab, is the API returning data? ✅.... Continue Reading →

Challenge #2 – Staying focused with a tomato

Here we go with challenge 2 of our little coding challenge! What's with the tomato? Well, this challenge was to make a pomodoro timer, check this out: Our second challenge gets more tangy! We'll be building a Pomodoro timer.  To provide some background, the Pomodoro Technique is a time management method developed by Francesco Cirillo in... Continue Reading →

Style up your console.logs

This is nothing new, but something I only recently started doing. Ya know those console.logs you're using in your JavaScript code? Did you know you can style them in the dev toolbar? YA! In both your browser console and nodejs! Styling the browser console It's really that simple! Throw a %c in your console.log message,... Continue Reading →

Powered by WordPress.com.

Up ↑