Skip to content

Johno the Coder Posts

Understanding and Utilising the Expertise in your Project

So this is a topic I thought I would touch on, having worked in lots of environments, on lots of projects, with varying different sets of priorities; I have noticed a few different things; with some very common characteristics across almost all development teams. The first is that there is a two fold problem when it comes to expertise: Expertise is never a clear cut, black and white line, every professional, in every role, has a varied set of skills The second is often the expertise people hold is often overshadowed by personalities on projects The downside to the second…

Leave a Comment

PHP Interfaces, Traits, and Inheritance, how and when to use them

Hi all So this one is going to be fairly short and simple, I hope! What I am going to cover, and this does assume so prior knowledge, is what interfaces, traits, and inheritance are; and some different use cases for them. So the first one, and maybe the easiest one to cover, first: Inheritance In its simplest term, and I’m going to try and keep things simple in this article. In very brief terms, inheritance is about extending something which exists. Of course, you may well have created this base on which you’re extending. Simple use case: User class,…

Leave a Comment

Why I’ve Been Quiet

Hi everyone, As I’m about to write another blog post, I thought it was a good idea to drop a quick line up on here to explain my recent absence from my blog. I’d been trying to post every couple of weeks, to a 3 month absence is a bit noticeable. Firstly, in December, I participated in a white collar boxing match, for charity. This was through an organisation called Ultra White Collar Boxing (UWCB) and was in aide of Cancer Research UK. I know the question you’re going to ask, so I’ll answer it here, no, I didn’t win.…

Leave a Comment

Quick Life Hacks with the Eloquent Model

Hi folks, It’s no secret that I love Laravel, and especially love Eloquent. This post isn’t about why various people don’t like Eloquent, etc, etc. but just some “life hacks” of working with Eloquent. #1 – Naming Conventions I personally like to use the following naming convention on my databases (using a forum as an example) forums forums_topics forums_topics_replies Whereas Eloquent would expect the following: forums forum_topics forum_topic_replies I personally dislike this, for no other reason than I like to be able to see what’s being owned by what at a very quick glance. Additionally, namespacing; I like to namespace…

Leave a Comment

You are the worst programmer in the world

You, yes you, are the worst programmer or web developer in the world. Without a shadow of a doubt. In someone’s opinion. The thing about programming or building anything is that it’s almost entirely subjective. Of course there are certain things which are categorically bad like lazy developing, obvious bugs, security vulnerabilities and terrible performance (both server side and client side). The point of this article, really, is to ask the question:¬†Why are we, as a community, so judgemental? There are plenty of controversial topics, when you get into web development. Factory patterns vs dependency injection vs just using classes/objects.…