David Peach

Page 112 of 211

Posts by David Peach

31st October 2015

Scooping the brains

Scalping the pumpkin

30th October 2015

Bowl me over milkshake

Arrived at Tinseltown. May have to partake in a giant milkshake.

29th October 2015

Worship the Satsuma

So this was happening on my desk this morning

For the first time in a long time I’m driving to work. Here goes.

28th October 2015

Watching American Horror Story series 4 episode 11: Magical Thinking.

Thank you Google for breaking the images on google play music. src=”” indeed.

Loving this song by Grimes (featuring Blood Diamonds) – Go

27th October 2015

On rethinking my database structure

I’ve been using Laravel for my personal website for about eight months now and haven’t looked back since.

This huge advantage to my rebuilding it in that way — from its original WordPress foundations — was that I had a crash course in using Laravel as well as learning some best practices as well.

Now that I have been using my site daily for all this time, I have found places where it has got messy — unavoidable through the learning experience — as well as places where I want to refine how I publish.

At the moment I am using what are called explicit post types. Meaning that I manually choose which post type a particular post belongs to before publishing — picking the appropriate create form to publish from.

However I have been thinking more and more about implicit post types — post types whose contents define what sort of post it is. Going the way of implicit may also see me abolishing the need for post-type-specific areas of my site.

I could still do this to some degree I suppose. e.g. If a post doesn’t have a title, it’s a note; If it has a location, it’s a checkin; etc.

The only way to see how this is going to go is to build it and actually publish with it for a while, I guess.

Update 8th February 2021: I now use WordPress for my website and have done for a few years now.

Rewriting my database structure is proving more work than first thought. Still – I’ve learnt some new Laravel stuff which is always good. So even if it never ends up being used, it’s not been a wasted exercise.

Adele’s voice just blows me away.