Category: Code

Ternary Operator PHP 0

The Ternary Operator in PHP

If you have a small if/else statement, it could possibly be turned into a ternary operator. What is a ternary operator The ternary operator is a comparison operator and can be looked at as...






JavaScript 0

Some Notes on ES6 (JavaScript)

I’ve been taking a stab at ES6/ES2015 and Webpack for the past couple of days. So far I love it! I haven’t been the hugest fan of Javascript, however, I took the dive and...






Composer 0

Autoloading PHP Files with Composer (psr-4)

If you’re not sure what composer is, it’s a dependency manager for PHP. It’s very similar to NPM. Composer is a nice way to install PHP packages, manage dependencies, use it as an autoloader,...






Caching 0

Exploring Caching in Web Applications

I’ve been exploring the topic of caching in web applications lately. To be more specific, I’ve been interested on how data gets cached for better performance; especially when you’re performing really expensive queries. Maybe...






collection 2

Laravel Collections Make PHP Development Awesome

Laravel provides a lot of amazing tools out-of-the-box and collections are one of them. The collection class within Illuminate\Support is basically a wrapper that allows you to work with and manipulate arrays of data....