I like to write and I like to code and sometimes I write about coding.
If you want to make sure that the data getting sent to the back-end of your react app is ready to be perfectly parsed and saved into the database then you should be using propTypes, React's built-in validation type checker.
In this post, I'm going to explain how to build a dynamic next page button that fires when clicked, requesting and displaying additional data from a back-end service via AJAX.
In this post I'm going to walk through the installation steps necessary to get React working in a Laravel project that uses Gulp.
Recently I was tasked with the seemingly simple task of running an alter table to update the data type of a table. However, because the table had tens of millions of rows I soon discovered the task would not be so easy to solve. In this post, I'll explain the solution: creating an archive version of the table.
When building an application that develops a heavy dependency on database interaction, it's easy to start with some basic queries that eventually require refactoring due to performance reasons. In this post, I'll walk through an example query which leverages a SQL left join to improve database response time.
Recently, I was working on a Laravel website that is powered by a Wordpress CMS with a lot of static content. While developing the site, performance was never really an issue but once we started getting a lot of users the page speed got much worse. In order to solve this problem, we implemented Laravel’s caching facade. In this post, I’ll explain how to did so.
In this post, I’m going to dive into the weird and wacky world of Regular Expressions to breakdown how to replace the contents of an HTML string using PHP.
Over the course of the last year and a half, I've been implementing unit tests on an API which is responsible for sending and receiving data to a web and mobile application. Let this blog post serve as a healthy reminder of how not to write unit tests, based on the potholes I've dug for myself.
This week I attended LaraconEU 2017 along with the other members of Team Automotive from Gaspedaal.nl. It was our second year attending the conference, and we found it to be an informative look at the growing state of the Laravel ecosystem. Here are five things I took away from the event.
One of the most powerful functionalities in Laravel is the event. This feature enables all the triggers of various tangentially related functionality to occur throughout the life cycle of a model instance. Plus, events are always listening – meaning you don’t have to explicitly call them in the code to harness their powers. In this post, we’ll implement a sample Laravel model event listener.
Whenever working with data using Laravel, it can be easy to write a few small Eloquent queries within your blade files to access the database. However, this practice can quickly spiral out of control if you're not careful, increasing query load time and destroying the performance of your application. In this post, I'll explain how to extract commonly used queries to a view composer so that they can be shared across multiple views that use different blade files.
Often times when developing using Laravel, I end up stuck on an error that seems to obfuscate the real problem with my code. Luckily, there is a simple way to tail logs in Laravel that can help you get back on track!
In this post, I'm going to walk through a small code sample that automates unit testing for a sort functionality. We will call a JSON API URL, and then test that the information received is properly sorted. We'll also make the tests completely dynamic, enabling us to test multiple parameters to sort on.
Check out My Projects for more
Writing is a way of clarifying my thinking and putting my curiosity on steroids. I spent a year and a half traveling in Asia and South America. This is where I went, what I saw and how it felt, raw and unfiltered:
After spending three months in the wonderful landscapes of Patagonia spending a paltry average of $30 a day, I decided to write a book about how I made this a reality, in hopes that I would open up such an adventure to other like-minded travelers. Patagonia On A Budget is available to purchase on Amazon.
Traveling in Patagonia doesn't have to be as expensive as packaged tour operators, TripAdvisor and Lonely Planet might make you believe. With Patagonia On A Budget, you'll learn:
The best value on the craziest adventures
Prices and details for accommodation, transportation and activities in every destination
Detailed maps and itineraries of the most popular backpacking routes
Recommended campgrounds with the best rates and facilities
Instructions and safety advice for hitchhiking
The electronics, websites, and applications to depend on during your expedition
Special instructions for surviving and thriving during long hikes through national parks.
Learn more at PatagoniaOnABudget.com