Ben Barden

Products - Projects - Process

Tech

All the posts in a category.

Ben Barden

Always be shipping

Building software is fun. It’s great to develop something from nothing, or extend something to do more than it did before. I think coders want to build things the best way they can. But in practice, that doesn’t always happen. Shortcuts can be taken, perhaps due to time pressures, or major requirements popping up late into a piece of work. Read More

Ben Barden

How to minimise CRUD front-end code duplication in Laravel 5.4 / Twig

CRUD (Create/Read/Update/Delete) is something that developers do quite a bit of. Frameworks can help with this, but there's still a fair amount of code you'll need to write for every CRUD screen you put together. One particular area is the difference between Create and Update. For many of the projects I've worked on, Create and Update are often very similar. They aren't identical, but if there's enough overlap between them, you can minimise duplicate code with the following setup. Read More

Ben Barden

Why I custom code my personal sites

The static route When I built my first website, I wrote all of the HTML by hand. At that point, it was just HTML. It was annoying to replicate the navigation bar across every page, even though I only had a few pages to update. I tried a few different methods, such as using frames, and adding the common code via Javascript. I also tried reducing the number of pages on the site that I needed to update, by adding a dropdown and opening some of the pages in a new window, sans navbar. The Javascript method stayed on the site for quite a while. Read More

Copyright © 2021 benbarden.com.