Tag: web development
-
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 […]
-
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 […]
-
Where the hell are all the web apps?
Reading Time: 4 minutes Have you ever downloaded an app on your phone or tablet and then tried to access your account from that app on a browser, only to find out that a web-version of the app doesn’t exist? In the age of iOS and Android app development, it can be surprisingly easy to forget that the first […]