Dion Moult In honour of the late Dion Moult, 1992 - 2017In honour of the late Dion Moult, 1992 - 2017

Posts Tagged ‘PHP’

Clean code, and how to write it

Note: the article was originally circulated on #cleancode and #kohana on Freenode and is now recorded here as an archive. It seems very useful as something to link people to on IRC when they have questions, so feel free to share as well. At SevenStrokes, we practice Clean Code. Although code speaks louder than words, […]

Competitive weight loss with WeightRace.net

So last year (or perhaps even the year before, time flies!) two people close to me participated in a friendly weight-loss competition. To do this, they used WeightRace.net. WeightRace is a small web application I built a while ago for fun, which allows up to four contestants to compete towards a weight goal which they […]

Building REST APIs with auto-discoverable auto-tested code

For the past few months, one of the projects I’ve been working on with SevenStrokes involves building a REST API for a service. REST APIs are tricky things to get right: they’re deceptively simple to describe, yet play host to plenty of interesting topics to delve into. Such topics can be statelessness, resource scope, authentication, […]

In order to discuss BDD, as a blogger, I need to talk about Behat

If you’re developing a web application, especially one that uses PHP, you should know about Behat. Behat introduces itself as “a php framework for testing your business expectations”. And it does exactly that. You write down your business expectations of the application, and it automatically tests whether or not your application achieves them. You begin […]

VTemplate: a web project boilerplate which combines various industry standards

You’re about to start setting up the delivery mechanism for a web-based project. What do you do? First, let’s fetch ourselves a framework. Not just any framework, but one which supports PSR-0 and encourages freedom in our domain code architecture. Kohana fits the bill nicely. Let’s set up our infrastructure now: add Composer and Phing. […]

PHP CMSes done right: how to enable clients to edit content appropriately

In the previous post, I talked about how CMSes harm websites. I debunked the oft used selling points of faster, cheaper and client empowerment over websites and explained how CMSes butcher semantic markup, code decoupling, tasteful style, speed optimisations, maintenance ease and code freedom. Now I want to mention a few ways how a CMS […]

Content Management Systems harm websites

Yes, you read that right! Customers looking to build a web application are often wooed by the many ‘benefits’ of using a Content Management System. But before we begin: What is a content management system (abbreviated CMS)? When a web site is built, complicated code is written to allow it to function. Some of this […]

Separating the core application from the delivery framework with Kohana

This post is about developing web applications that don’t depend on the web. MVC is probably the most popular architecture for web applications. But what’s interesting about MVC is that it’s not actually an architecture meant for your core application. It is merely a delivery mechanism. With this in mind – a well developed application […]

A DCI architecture implementation in PHP

For those unfamiliar with DCI, DCI stands for Data, Context and Interactions. It’s a way to fill the gap in OOP between what an object is and what an object does. It also gives use-case enactment first class status to improve the readability of the code. It was proposed by Trygve Reenskaug (the man behind […]

Presenting the Nagger

Over Christmas one of my more humourous gifts to my parents was to allow them to remotely nag each other electronically. Since my dad is often overseas, this actually has some practical use. The idea was to create a remotely synchronised dynamic wallpaper with text that could be set by another person remotely. Person A […]

WIPUP 27.06.10a released!

It’s super, it’s amazing, and it’s released. It’s WIPUP 27.06.10a. For the uninitiated,¬†WIPUP is a flexible and easy way for people to share, critique, and track works-in-progresses. To quote some random person, this release truly brings out the “hey, it’s like a working site now“. This release sports super fancy upgrades courtesy of my schedule, […]

Plans for E2-Productions.com to turn into a personal cloud?

Alert! Alert! Buzzword! Yes, before we start, let’s clear up with what I mean when I say "personal cloud". A personal cloud is a web-accessable system which centralises the function of common web 2.0 services, which may or may not be social. For those that aren’t familiar with this jargon, web 2.0 services are those […]

Make a category not considered as a post in WordPress

In other words, how do you make posts that are in a certain category not count towards total page post count in WordPress? A while back I set up Asides on this blog. The problem was that previously I was displaying 5 posts per page. Now with asides it still displayed 5 posts per page, […]

FrogCMS: a simple, clean CMS.

The other day I was looking for a CMS to run E2-Productions on. People who exclaim “what? You’re not going to engineer your own solution?” clearly have their priorities in the wrong places. If there’s one thing I learned in programming, it’s never, ever to reinvent the wheel. (unless you don’t know how wheels work […]

How to use CodeIgniter’s OpenID library to integrate OpenID in your existing user system.

Apparently OpenID is all the rage nowadays in the coding world and those using the CodeIgniter framework are left all alone without a proper guide on how to get it working. So as a budding programmer I is be halping all of you. Yes, it IS a long post, but it should help if you […]

← Before