Category: Tutorials
-
Writing Music with ABCjs
Reading Time: 6 minutes Recently, I’ve gotten back into composing music, and my ancient iMac (from early 2009) just can’t keep up with MIDI software and music notation software anymore. So, I began to search for a replacement. I found Musescore, which I have quickly grown to love, but it’s not quite enough. I have always wanted a way […]
-
Stacks, Queues, and Deques – Data Structures in PHP
Reading Time: 7 minutes In my first post of this series on Singly Linked Lists, I mentioned that a list with the ability to add, get, or remove data from more than just the end of the list starts to behave more like a Deque. Then, I said I would cover those details in a later post. Well, later is now, and it’s time to talk about specific types of lists as Stacks, Queues, and Deques. Let’s get started.
-
Doubly Linked Lists – Data Structures in PHP
Reading Time: 10 minutes Read the previous article on Singly Linked Lists in PHP here! Read the starting post of the series here! All code in this series can be found on Github Doubly Linked List Principles Available Methods I took a decent amount of time to read through various array and list methods available to other languages like […]
-
Singly Linked Lists – Data Structures in PHP
Reading Time: 5 minutes All code in this series can be found on GitHub Linked Lists are where we start our journey in PHP Data Structures. Simply put, a linked list is data that is sequentially organized in which the start of the list (head) contains a reference to the next item (node) in the list. A one-way link […]
-
Data Structures in PHP
Reading Time: 2 minutes Data Structures are a hallmark of every computer science program at the university level, and it is unthinkable that throughout the course of study you will never encounter a specific data structure that you are unfamiliar with. As I return to school to pursue a degree in computer science I decided it would be a […]
-
5 Tips to Simplify Laravel Code
Reading Time: 3 minutes 1. Simplify if/else statements When writing methods or functions that use if/else statements to check for a condition, we can clean up the function or method by using the shorthand version of a simple if/else like so: 2. Use Laravel’s exists() instead of count() to verify a model instance exists. When querying the database and […]
-
Single Responsibility Principle and Laravel
Reading Time: 9 minutes Developers across the industry are familiar with the Single Responsibility Principle, the idea that our classes, or our functions should have one and only one job to do. This idea helps us better document, understand, write, and update our own code as well as the code of a team member or open source project. The […]