PHPNews

Stickers!

Hey Folks! You crashed my server. Good job. Please hang on for a bit while I fix this. Please don’t email or tweet me – I know about it!

Continue reading »

Written by Wes Bos - - Aggregated on Friday September 29, 2017


Announcing Learn Node!

It’s finally here! I’m super excited to announce my latest course – Learn Node . The last 5 months of my life have been spent creating this server side course and it’s honestly one of the best things I’ve ever made . I know a lot of you have been waiting patiently (and some not so patiently ) so grab it now …

Continue reading »

Written by Wes Bos - - Aggregated on Wednesday May 10, 2017


The Breakout Email Management System

The Breakout Email Management System An email management system for overwhelmed creatives who want to get back to work. This is a collection of my thoughts over the last year of trying to solve my email overload problem. I’ve certainly not fixed my email problem – you might be reading this while you wait for a …

Continue reading »

Written by Wes Bos - - Aggregated on Monday February 27, 2017


Rename & Destructure Variables in ES6

Last post we took a look at an intro to destructuring . Let’s take a look at another use case which would be renaming your variables. Sometimes data comes back in some odd names, and you might not necessarily want to use a property key as the end variable name. Maybe you don’t like that variable name or it’s already …

Continue reading »

Written by Wes Bos - - Aggregated on Tuesday November 15, 2016


Setting Default Values with JavaScript’s Destructuring

There’s one last thing we need to know about destructuring objects, and that is the ability to set defaults. This one’s a little bit confusing, so bear with me here and we’re going to circle back for another example later on in a couple of videos over at ES6.io . When you destructure an object, what happens if that …

Continue reading »

Written by Wes Bos - - Aggregated on Tuesday November 15, 2016


4 New String Methods in ES6 that you should know

The String type in ES6 has come with four new methods that are really handy, help us write a little bit more readable code, as well as reduce our reliance on using regular expressions, or RegExp, for certain things. .startsWith() and .endsWith() So I have a const variable named course , which has the value of …

Continue reading »

Written by Wes Bos - - Aggregated on Monday November 14, 2016


How to Sanitize Data with ES6 Template Strings

These last few examples we’ve been creating HTML and inserting it right into the DOM. If you have any sort of security background and you’re probably screaming, "Wes, you must sanitize that data before you put it into the DOM!!!" A Quick primer on XSS If you don’t know what that means, essentially when you …

Continue reading »

Written by Wes Bos - - Aggregated on Monday November 14, 2016


Tagged Template Literals

One feature that comes along with template literals, or template strings, is the ability to tag them. That means is that we can run a template string through a function, and rather than have the browser immediately assign that value to a variable, we can have control over how this actual string is made. I’m …

Continue reading »

Written by Wes Bos - - Aggregated on Tuesday October 25, 2016


An Intro to Template Strings

In JavaScript, when you want to put a variable inside of a string, it’s a pain in the ass because you have to stop your string, concatenate on the variable, and then open your string again and keep going. var name = 'Snickers'; var age = 2; var sentence = 'My dog ' + name + ' is ' + age * 7 + ' years old.'; …

Continue reading »

Written by Wes Bos - - Aggregated on Monday October 17, 2016


React For Beginners Updated and Re-Recorded!

Hey Folks – I totally updated and re-recored every single video on my React for Beginners series . Just under a year ago I launched ReactForBeginners.com — I wanted it to be an accessible, easy to understand and fun introduction to building React applications and website components. Since then I’ve had 6,317 …

Continue reading »

Written by Wes Bos - - Aggregated on Wednesday September 28, 2016


JavaScript Default Function Arguments

Default function arguments in JavaScript are here. This is one of those features that’s going to make your life much easier, and make your code much more readable and maintainable. Let’s say we have a function called calculateBill which is going to take in three things: the total cost of your meal, how much tax …

Continue reading »

Written by Wes Bos - - Aggregated on Sunday September 11, 2016


JavaScript Arrow Functions and this scoping

We’ve learned about the concise syntax of arrow functions. We’ve learned about the implicit return of arrow functions. The last thing we’re going to learn about and probably the most important is that the fact that this keyword does not get rebound . What does that mean? Let’s show an example as to when you might …

Continue reading »

Written by Wes Bos - - Aggregated on Saturday September 10, 2016


When Not to use an Arrow Function

Before you start going absolutely bananas on using arrow functions everywhere, we need to chat. Arrow functions don’t replace regular functions . Just like Flexbox and floats, pixels and rems and anything else new that comes along, the older thing still retains lots of utility because it works differently than the …

Continue reading »

Written by Wes Bos - - Aggregated on Saturday September 10, 2016


More Arrow Function Examples

Let’s look at a couple more JavaScript arrow function examples. This is something that comes up often where I’m building an application, and I don’t necessary have the data in the right format that I need. I’m building a website for a bunch of racers, where the winners have been supplied to me in an array of …

Continue reading »

Written by Wes Bos - - Aggregated on Friday September 9, 2016


JavaScript Arrow Functions Introduction

ES6 has introduced arrow functions which have three main benefits. First, they have a concise syntax. Secondly, they have implicit returns , which allows us to write these nifty one-liners. Thirdly, they don’t rebind the value of this when you use a arrow function inside of another function, which is really …

Continue reading »

Written by Wes Bos - - Aggregated on Thursday September 8, 2016


Is var Dead? What should I use?

We’ve learned about let and const — what they do, and how they’re scoped. We also know when they can be reassigned and when they cannot, but there’s a question: What Should I actually use? That’s a bit of a hot topic in the community right now, because some people prefer to still use var . Some people are …

Continue reading »

Written by Wes Bos - - Aggregated on Wednesday September 7, 2016


Temporal Dead Zone ☠️

Let’s talk real quick about the Temporal Dead Zone . This is a bit of a boring topic, so I’m going to try and make it at least a little fun for you. This is something that you probably won’t come across too often, but it’s helpful to know in case someone ever slings it out in an interview. You’d be able to talk …

Continue reading »

Written by Wes Bos - - Aggregated on Thursday September 1, 2016