Category: dependency injection

AngularJS and Angular 2+: a Detailed Comparison

This article compares the major differences between the the original AngularJS and Angular 2+. If you’re currently stuck with an AngularJS project and not sure whether you should make the jump, this article should help you get started. In recent years, we’ve seen Angular grow tremendously as a framework and as a pl...

Disco with Design Patterns: A Fresh Look at Dependency Injection

Dependency Injection is all about code reusability. It’s a design pattern aiming to make high-level code reusable, by separating the object creation / configuration from usage.Consider the following code: <?phpclass Test {protected $dbh;public function __construct(PDO $dbh) { ...

How to Build Your Own Dependency Injection Container

A search for “dependency injection container” on packagist currently provides over 95 pages of results. It is safe to say that this particular “wheel” has been invented.However, no chef ever learned to cook using only ready meals. Likewise, no developer ever learned programming using only “ready code”. In...

React for Angular Developers

This article is for developers who are familiar with Angular 1.x and would like to learn more about React. We’ll look at the different approaches they take to building rich web applications, the overlapping functionality and the gaps that React doesn’t attempt to fill. After reading, you’ll have an un...