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 that leverages a SQL join to improve database response time.
How To Make a Dynamic Dropdown With React and Fetch
A Sticky Navigation Bar on Scroll Using Javascript
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.
Understand and Implement Laravel Model Events
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.
RubyGem acts_as_votable Tutorial
Reddit. Quora. ProductHunt. What do all of these websites have in common? Besides their rabid fan bases, they enable a community to interact with content via simple voting buttons that users can click on to promote or demote content. Luckily for Ruby developers, there's an awesome gem I came across this week that quickly builds the same functionality. Here's a tutorial on how to get started with acts_as_votable.