In JavaScript, the rest parameter is a feature that allows a function to accept an indefinite number of arguments as an array. Here are some examples: Did you find it interesting? Follow me on Twitter.
Continue ReadingAvoid global methods in JavaScript
The code snippet provided showcases the difference between using the global isNaN method in JavaScript and the Number.isNaN method. Did you find it interesting? Follow me on Twitter.
Continue ReadingAbstract class and method in JavaScript
The following snippet shows how to write an abstract class and method. Goals The abstract class cannot be instantiated; The abstract method must be implemented. See example online at https://codesandbox.io/s/abstract-class-and-method-clvze Did you find it interesting? Follow
Continue ReadingValue of the first object property
Get the value of the first object property using Object.values() and array destructuring. See example online at https://codesandbox.io/s/value-of-the-first-object-property-b7dvj Did you find it interesting? Follow me on Twitter.
Continue ReadingCustomize SVGs in React
I tried a few ways to display SVG images in React and I want to share why did I choose to use SVGs as a React component. Continue reading on DEV.to » Did you find
Continue ReadingReturning undefined (JavaScript)
Because sometimes things aren’t so obvious – All these functions return undefined. See example online at https://codesandbox.io/s/returning-undefined-x6wxh Did you find it interesting? Follow me on Twitter.
Continue ReadingVerum PHP Validator
I share my PHP library to validate forms (server-side). A repository has been created in GitHub called verum-php where you can find all the documentation. You can install Verum PHP with Packagist: composer require sandromiguel/verum-php
Continue ReadingPHP is_null() VS isset() VS empty() cheat sheet
Because sometimes things aren’t so obvious, I decided to share my true table. is_null – Finds whether a variable is NULL isset – Determine if a variable is declared and is different than NULL empty
Continue ReadingSome Awesome Project
I share the project setup guidelines I use for my personal projects. A repository has been created in GitHub called some-awesome-project where these guidelines are shared. Did you find it interesting? Follow me on Twitter.
Continue ReadingImprove your Git Commit workflow
Warning This blog post is outdated. Please visit the standard-commit repository. Goals Continue reading on Medium » Did you find it interesting? Follow me on Twitter.
Continue Reading