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
The following steps lead you to improve your git commit messages as well as automating changelog and versioning. Goals Enforce a standard on every commit respecting Conventional Commits specification Automatically bumps the version in package.json
Continue Reading.editorconfig boilerplate
Partilho a minha configuração do ficheiro .editorconfig para servir de inspiração. Foi criado um repositório no GitHub denominado .editorconfig boilerplate onde é partilhada esta configuração. Achou interessante? Siga-me no Twitter.
Continue Reading.gitignore boilerplate
Partilho a minha configuração do ficheiro .gitignore para servir de inspiração. Foi criado um repositório no GitHub denominado .gitignore boilerplate onde é partilhada esta configuração. Achou interessante? Siga-me no Twitter.
Continue Reading