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.
Understanding Join Queries in Laravel By Example
7 Important Concepts About Solidity Programming
As part of learning more about programming applications for the blockchain, I have been using Solidity to build sample contracts on the Ethereum blockchain. In the process, I've discovered a number of interesting aspects of this programming language that would be of interest to any beginner. In this post, I'll explain 7 of them.
Dynamic Increment Buttons In Javascript
4 Things I Learned Coding My First Blockchain Application
As a software developer, I thought it would be interesting to spend some time getting my hands dirty with creating blockchain applications in order to better understand the implications of this new technology. Here are 4 things I learned during my first experience, 2 tools to get started and 2 learning resources to help developers and non-techies alike learn more about Decentralized Applications (DApps).
Improve Laravel Performance using Caching
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.
Use preg_match_all and str_replace to replace HTML content in PHP
How Not To Write Unit Tests
Adding Type Validation To Props in React
Dynamic Pagination With Ajax
How To Make a Dynamic Dropdown With React and Fetch
How To Install React With Laravel and Gulp
How I Created A Personalised Discovery Playlist Using The Spotify API
A Sticky Navigation Bar on Scroll Using Javascript
How To Draw with Javascript & HTML Canvas
5 Things I Learned at LaraconEU 2017
Javascript: Update NodeList Elements Based on an HTML Range Input
In this post, I'm going to walk through how to update a Javascript node list based on the input values of an HTML range. Every time a user to our website moves the input slider, we will take the value of the slider and multiply it by an array of constants to produce a new value. Finally, we will output this new value to the page.
Javascript: Sort An Array Using The Compare Function
Javascript: Calculate Characters Remaining In A TextArea
In this post, we'll create a Javascript event listener that calculates the number of characters that have been entered in a TextArea. The purpose here is not to demonstrate the quick and dirty solution, but rather to fully understand how the code actually works. This functionality is helpful for inline form validation and preventing users from hitting the server-side with invalid data.
Javascript: Add & Remove HTML Elements
In this post, I'm going to walk through the simplest possible example of how Javascript enables the creation and deletion of HTML elements. Using a list, we will access elements based on their tag name, add a new item to the list, and delete an item from the list. This tutorial is designed to be beginner friendly.