This is part two of a multi-part series about React and Vue. Part 1: React Part 2: Vue As I have been learning React lately, I’ve also been learning Vue. I currently use Vue at work, but I wanted to make a sample project for myself. I’ve been interested in doing a comparison between React…
Sample Project: Star-Rating (React)
This is part one of a multi-part series about React and Vue. Part 1: React Part 2: Vue Lately, I’ve been learning React, a JavaScript front-end framework. As of now, it is one of the most popular JS frameworks in existence. To help myself learn the framework, I built a sample project: a Star-Rating app.…
Hacky Way to Display PHP Object for Debugging
Sometimes, you have to work with…let’s call it “legacy code”. You don’t get to use the nice things to help you debug your code, like Laravel’s dd(), and you’re getting really tired of var_dump-ing all over your web page just to figure out what variables are being used by the particular function you’re debugging. In…
Refactoring BandTracker
It’s always a good idea to take time to review old code you’ve written and see how you can refactor it to be cleaner, modern, and easier to understand. This weekend, I’ve been doing just that with one of my old demo projects, BandTracker. It’s a Laravel 5.4 app I wrote about a year ago…
Sync Your Project Directory To Your VirtualBox VM
One of the things I enjoy about Laravel’s Homestead is the automated syncing that happens between your local project directory and the virtual machine, so any changes you make locally are immediately transferred to the VM on save, thus making changes quick and easy. I wanted to set up the same thing for a VM…
Creating a Data Container in Javascript
While working on an interactive novel demo, I happened to need a container for containing flags (aka values that I could check later on to change bits of flavor depending on what a player chose), but I didn’t want to just use a plain ol’ JavaScript object. I wanted to create a true data container…
Laravel: Validate Fields Only When One Is Present
Sometimes, when setting up validation for Laravel forms, you need to be able to set up validation rules for two fields, but allow for one of them to be ignored if the other is filled. This is how you can set up your validation rules to make that happen.
Laravel and PHPUnit Error: Supported Ciphers
An odd error involving Laravel and PHPUnit, and searching Google found no solution…
React Error: Expected a string, got object
Here’s a React error that took me awhile to figure out.
Super Mario in the Real World
Here is a cool video I found of someone who recreated the first level of Super Mario Bros in augmented reality! Is it an AAA-caliber game? No, obviously, but it is an impressive tech demo and a sign of what AR can bring to the world.