Articles

Why mutation can be scary

Unexpected changes in your JavaScript code can be a real headache. When working with objects, it can be even harder to prevent unintended mutation. In this article, I’ll show you some tricks (and libraries) to prevent these unintended changes and ensure stability when working with objects.

Should you use CSS or JavaScript for animations?

When should you use CSS for your web animations? Or when should you use JavaScript? Is one better than the other? In this article, I’ll show how you to use both to produce smooth animations for your web site.

Can I get a discount?

You’ll have to pay the full fee to enroll in my courses. I don’t discount anymore, with the exception of early-bird prices. This article explains why I offer early-bird prices, and why I don’t discount anymore.

CSS Animations explained

The second way to animate your components is through CSS Animations. CSS Animations are like CSS Transitions, except they’re way more powerful.

Dealing with Imposter Syndrome

Two days ago, I sent out a tweet that says, “The more I learn about code, the less I realize I know, and the less confident I feel about teaching people how to code. Compound this with the fact that I’m writing a course AND selling it”.

That sums up how I’m feeling these two days. If I were to put it in a nice way—I feel like shit. I haven’t been sleeping well the entire week. I woke up today at 3am these two days.

When I had dinner with my wife yesterday, she said I look like I might be better off dead. Obviously that’s not what she said in my face, but that’s what I inferred.

CSS Transitions explained

The simplest (and most straightforward) way to animate your components is through CSS Transitions. In this article, you’ll learn how CSS Transitions work, and how to make animations with it.

How to make interactive components

How do you make a website interactive? That’s one question that many beginners get stuck at. In this video, I walk you through you need to know to build an interactive website.

Understanding for loops

Let’s say you want to run a function, bounceBall, four times. How would you do it? Like this?

function bounceBall() {
// bounce the ball here
}

bounceBall() bounceBall() bounceBall() bounceBall()

This approach is great if you need to bounceBall only for a few times. What happens if you need to bounceBall for a hundred times?

The better way is through a for loop.

Understanding if/else statements

Let’s say you’re walking on a busy street in the middle of town. You’re about to cross the road when you notice the traffic light for pedestrians turns red. What do you do?

You stop, don’t you?

And what happens when the light turns green again? You start walking.

We can put this analogy into code too. It sounds something like: “If the light turns red, stop walking. Otherwise, continue walking”.

And that, my friend, is the foundation of an if/else statement.

Hold on while i sign you up…

🤗
Woohoo! You’re in!
Now, hold on while I redirect you.