Chronicle Will Make You Question the Need for Blockchain Technology
"Blockchain" is one of the hottest technology industry buzz-words of 2017. A lot of time, money, and engineering talent is being invested into building blockchain technologies. Despite the name, blockchain has nothing to do with the Cipher Block Chaining mode of encrypting large messages with a block cipher; instead, it's used to refer to a specific type of ledger, and more specifically to crypto-currencies like Bitcoin and Zcash.
"Blockchain" is one of the hottest technology industry buzz-words of 2017. A lot of time, money, and engineering talent is being invested into building blockchain technologies. Despite the name, blockchain has nothing to do with the Cipher Block Chaining mode of encrypting large messages with a block cipher; instead, it's used to refer to a specific type of ledger, and more specifically to crypto-currencies like Bitcoin and Zcash.
Building Video Streaming Server with ReactPHP
In this article, we will build a simple asynchronous video streaming server with ReactPHP. ReactPHP is a set of independent components which allows you to create an asynchronous application in PHP. ReactPHP Http is a high-level component which provides a simple asynchronous interface for handling incoming connections and processing HTTP requests.
In this article, we will build a simple asynchronous video streaming server with ReactPHP. ReactPHP is a set of independent components which allows you to create an asynchronous application in PHP. ReactPHP Http is a high-level component which provides a simple asynchronous interface for handling incoming connections and processing HTTP requests.
Poka Yoke β Saving Projects with Hyper-Defensive Programming
When working in a medium to large team on the same codebase, it can sometimes become hard to understand each otherβs code and how to use it. Various solutions exist to help with this. For example, you can agree to follow a set of coding standards to make the code more readable for each other, or use a framework thatβs known to all.
When working in a medium to large team on the same codebase, it can sometimes become hard to understand each otherβs code and how to use it. Various solutions exist to help with this. For example, you can agree to follow a set of coding standards to make the code more readable for each other, or use a framework thatβs known to all.
Don't call instance methods statically
There are quite a few things in PHP 4 that were a bit strange. One example is that PHP 4 allowed static calling of instance methods
There are quite a few things in PHP 4 that were a bit strange. One example is that PHP 4 allowed static calling of instance methods
TheCodingMachine Best Practices
At TheCodingMachine we write code. We read code too... a lot. This is because we use GIT and "pull-requests". For each project, the code has to be reviewed by someone before being pushed to the main branch. Very often, code reviewers are making the same comments, over and over. Hence the idea to create a website about our best practices.
At TheCodingMachine we write code. We read code too... a lot. This is because we use GIT and "pull-requests". For each project, the code has to be reviewed by someone before being pushed to the main branch. Very often, code reviewers are making the same comments, over and over. Hence the idea to create a website about our best practices.
5 Benefits of Immutable Objects Worth Considering for Your Next Project
When first learning object oriented programming (OOP), you typically create a very basic object and implement getters and setters. From that point forward, objects are this magical world of malleable data. However, youβd be surprised to find that sometimes removing the ability to alter the data in an object can lead to more straightforward and easier to understand code. This is the case with immutable objects.
When first learning object oriented programming (OOP), you typically create a very basic object and implement getters and setters. From that point forward, objects are this magical world of malleable data. However, youβd be surprised to find that sometimes removing the ability to alter the data in an object can lead to more straightforward and easier to understand code. This is the case with immutable objects.
How to Build a Class Booking System with Acuity Scheduling
I recently wrote an article about building an online class booking system to book lessons with a driving instructor. Teaching someone to drive is relatively unique, in that itβs guaranteed to be a one-to-one class β or at least, if you did find yourself sharing an instructorβs time, then youβd have every right to feel short-changed.
I recently wrote an article about building an online class booking system to book lessons with a driving instructor. Teaching someone to drive is relatively unique, in that itβs guaranteed to be a one-to-one class β or at least, if you did find yourself sharing an instructorβs time, then youβd have every right to feel short-changed.
Re-Introducing PHPUnit β Getting Started with TDD in PHP
This article aims to re-introduce the tool in a modern way, to a modern audience, in a modern PHP environment β if youβre unfamiliar with PHPUnit or testing, this post is for you.
This article aims to re-introduce the tool in a modern way, to a modern audience, in a modern PHP environment β if youβre unfamiliar with PHPUnit or testing, this post is for you.
Good code is its own best documentation
If your code is self-explanatory, thereβs no need for comments and documentations, most of the time.
If your code is self-explanatory, thereβs no need for comments and documentations, most of the time.
Writing Better Tests: Riding The Command Bus
Before writing any line of test code we should think of how meaningful this test would be. The best code is the code you never write, you know. So if you ever begin to think of which parts of the application you should cover with tests.
Before writing any line of test code we should think of how meaningful this test would be. The best code is the code you never write, you know. So if you ever begin to think of which parts of the application you should cover with tests.
Application logic done right
Typically small http applications does only have to manage HTTP communication on top of a tiny MVC-Framework. A client performs a request, which is handled by a controller. The controller invoke the model and assigens the result data to a view. The controller converts the view into a response and delivers the response back to the client.
Typically small http applications does only have to manage HTTP communication on top of a tiny MVC-Framework. A client performs a request, which is handled by a controller. The controller invoke the model and assigens the result data to a view. The controller converts the view into a response and delivers the response back to the client.
Refactoring.Guru
Refactoring.Guru is a shiny website where you can find tons of information on refactoring, design patterns, SOLID principles and other smart programming topics.
Refactoring.Guru is a shiny website where you can find tons of information on refactoring, design patterns, SOLID principles and other smart programming topics.
How to Master Your API Workflow with Postman
Building good APIs is hard, and anyone who had the chance to do so can relate to this. A project can easily grow to become a mess. One can keep trying to adopt an approach to make it more enjoyable, like trying a documentation-first workflow, but something always feels clumsy.
Building good APIs is hard, and anyone who had the chance to do so can relate to this. A project can easily grow to become a mess. One can keep trying to adopt an approach to make it more enjoyable, like trying a documentation-first workflow, but something always feels clumsy.
How PHP Frameworks Build Better Enterprise Software
Thereβs an unwritten rule for talking about enterprise software. One must always tiptoe around the topic and weigh oneβs words carefully. Otherwise, the status quo is broken, risking the integrity of the whole idea.
Why has this been the reality of corporate software for so long?
Thereβs an unwritten rule for talking about enterprise software. One must always tiptoe around the topic and weigh oneβs words carefully. Otherwise, the status quo is broken, risking the integrity of the whole idea.
Why has this been the reality of corporate software for so long?
Are Bitwise Operators Still Relevant in Modern PHP?
Many of you probably scratched your heads reading this title. βBitwhat?β
In this article, weβll look at what bitwise operators are, and whether or not their use is still relevant in this modern age of computing.
Many of you probably scratched your heads reading this title. βBitwhat?β
In this article, weβll look at what bitwise operators are, and whether or not their use is still relevant in this modern age of computing.
Slim and Action-Domain-Responder
Iβve had a warm place in my heart for Slim for a long time, and especially so since recognizing the Action-Domain-Responder pattern. In this post, Iβll show how to refactor the Slim tutorial application to ADR.
Iβve had a warm place in my heart for Slim for a long time, and especially so since recognizing the Action-Domain-Responder pattern. In this post, Iβll show how to refactor the Slim tutorial application to ADR.
Clean Code concepts adapted for PHP
Software engineering principles, from Robert C. Martin's book Clean Code, adapted for PHP. This is not a style guide. It's a guide to producing readable, reusable, and refactorable software in PHP.
Not every principle herein has to be strictly followed, and even fewer will be universally agreed upon. These are guidelines and nothing more, but they are ones codified over many years of collective experience by the authors of Clean Code.
Software engineering principles, from Robert C. Martin's book Clean Code, adapted for PHP. This is not a style guide. It's a guide to producing readable, reusable, and refactorable software in PHP.
Not every principle herein has to be strictly followed, and even fewer will be universally agreed upon. These are guidelines and nothing more, but they are ones codified over many years of collective experience by the authors of Clean Code.
Finite-State Machine as a Type System illustrated with a store product
In this article, I would like to talk about how to implement a Finite-State Machine (FSM) with the PHP type system. The example is a store product (in an e-commerce solution for instance), something we are likely to meet once in our lifetime. Our goal is to simply avoid impossible states and transitions.
In this article, I would like to talk about how to implement a Finite-State Machine (FSM) with the PHP type system. The example is a store product (in an e-commerce solution for instance), something we are likely to meet once in our lifetime. Our goal is to simply avoid impossible states and transitions.