mglaman.dev – March 8th, 2024
Hey there!
Here's your weekly newsletter from me, Matt Glaman!
My latest blog post
I spent my time at Florida DrupalCamp enhancing the generate-theme
command, which will help unblock Olivero as a starterkit theme! Check out the improvements.
Improving the Drupal theme starterkit and theme generation experience
Wanting to follow up on our work at MidCamp 2023 with the Development Settings form, Mike Herchel wanted to jam on another issue to improve the life of frontend developers. Drupal provides a way to generate themes from starterkit themes. Drupal core provides the Starterkit theme, and contributed themes can also mark themselves as a starterkit theme.
Tips & tricks
Regarding semantic versioning for non-public releases, I have always followed a format that used dates to help identify when a release tag was made. These are for a client or personal projects that no external party will be using, and I have no API guarantees to. It looks something like this:
- Major: The major version of the framework used (10 if Drupal 10, 11 if Laravel 11, etc.)
- Minor: A date-time string of
YYYYMMDD
to identify the date the tag was created. - Patch:: An increment based on how many releases were made that day.
For example, I had a Laravel project that was on Laravel 8. For March 20, 2022 the version would be something like: 8.20220330.0
. The next release which was to Laravel 9 would look like 9.20220415.0
.
If we had a Drupal 10 site with multiple releases in one day, it would look like:
10.20240306.0
10.20240306.1
10.20240306.2
It turns out there is a thing called CalVer that actually describes this. I think it is a much more suitable way of handling versions for end-user projects that do not promise an API guarantee. It makes it easier to determine the current release state and history.
Hat tip to Bálint Kléri for the link.
Interesting links
- Extreme brainstorming questions to trigger new, better ideas
- I can easily get stuck in a rut and need some kind of catalyst to create a burst of inspiration. I've enjoyed these prompts.
- Hypermedia Systems
- I have been meaning to try out htmx and haven't had the time. I have been reading this book (free online) about htmx for hypermedia systems. I love the idea of hypermedia – using links to connect data. They describe Hypermedia-Driven Applications and the ideas of RESTful beyond just JSON APIs.
Have a problem you want help with?
I'm available for one-on-one consulting calls - click here to book a meeting with me 🗓️.
If you enjoyed this, could you forward it to a friend? Was this forwarded to you? You can subscribe here!