Skip to content
Bullshit Driven Development
  • Home

#php

<?=’Hello world!’;

Posted on 15 August 2026 by Hałas Piotr

Many people start learning a new programming language with a simple program. It is called “Hello world!”. But even this simple program can be written badly in PHP. In this post, I want to show you a good way to write “Hello world!”.

Continue reading<?=’Hello world!’;

PHP Traits: How to Use Them the Right Way

Posted on 15 August 2026 by Hałas Piotr

There are many ways to stop code duplication in classes. The simplest way is inheritance. But what if a class needs code from many different classes? PHP does not allow multiple inheritance. So the only way is to use traits. A good trait works well in any class. This post shows you how to write a good trait.

Continue readingPHP Traits: How to Use Them the Right Way

Build a Website with Nginx and SSI, Part 1 – Basics

Posted on 15 August 2026 by Hałas Piotr

It is not easy to split one big service into smaller services. A common way to do this is to load parts with extra requests. But some parts are important for SEO. If you load these parts with AJAX, your search ranking can go down. In this case, Server Side Include, or SSI for short, can help.

Continue readingBuild a Website with Nginx and SSI, Part 1 – Basics
© 2026 Writings Theme. Powered by WordPress.