The latest in ECMAScript 6 introduces new features to JavaScript which makes it so much more fun to use, while solving problems that have been around for years. The intent of this article is to provide you with resources you can use to start learning ES6 today. What is ECMAScript 6? ES6 can be looked […]

Babel offers a convenient way to transform your ES6 code to JavaScript that all browsers can understand. In this article, we’ll go over a basic configuration that will enable you to start using it with any project right away.

Now as of PHP 7.1, you can define the keys of your array that will be parsed when destructuring your arrays. Prior to PHP 7.1, you could only use arrays with numeric indexes. Now with this new addition, our lives just got easier. Let’s go over a few examples below on how we can use […]

As of PHP 7.1, you can now type hint your method/function arguments with the keyword iterable for handling arrays or even objects that implement the Traversable interface. Let’s create an example where we can convert any string to a slug. We’ll have 2 methods so that we can pass either a string or iterable data. […]

As of PHP 5.4, you can type hint your method arguments with the callable keyword allowing you to enforce the type of data that is passed via your arguments . Let’s look at an example where we create a Sort class, with a custom method that takes a callable function so that we can customize […]

Now in PHP 7.1+, you can set different visibility modifiers for each of your class constants. The available visibility modifiers consist of public, protected, and private. Any constant’s within your class set to protected or private that you try to access directly outside of the class will throw a Fatal Error. Example Usage <?php class […]

As of PHP 7.1, it is now possible to catch multiple exceptions within 1 catch block. This is super useful, as before you would have had to come up with a few work arounds to solve something like this in a similar fashion. For instance, you may have created a base class that multiple related […]

As of PHP 7, you can now create quick throwaway objects for use within your projects. This can be especially useful for your automated tests, for instance, with allowing you to create quick implementations of your interfaces. Let’s review a Notifier interface that we may have. We can easily create a anonymous implementation by using […]

As of PHP 7.1, you can now use the shorthand array syntax to destructure your arrays for assignment. Previously you would have had to use a function like list, but now you can use the simple new array shorthand syntax. Let’s look at some examples. Basic Example <?php $names = [ 'Frank Perez', 'Carmella Osman', […]

CSS transitions is the new preferred way of applying transitions to your elements compared to the old approach of using JavaScript. In this article, I’ll go through each of the transition properties available, and provide examples of how to use them. Below is a list of browser prefixes that you can use to enable backward […]

Tags

About This Blog

I'm writing this blog in order to share what I'm learning with the world. Since you learn best by teaching others and writing things down, I figured this would be the best way to really tackle any new technologies I plan on learning. I hope this blog will help you as much as it will benefit me.