Aleksi Kauppila

Aleksi Kauppila @aleksikauppila

About: If it ain't broken, break it

Location:
Finland
Joined:
Aug 8, 2017

Aleksi Kauppila
articles - 8 total

Save time and money by collaborating

Save time and money by collaborating

Learn More 8 0Jan 4 '20

Composition over encapsulation

Choosing composition over inheritance may weaken encapsulation

Learn More 6 7Aug 8 '19

Using isset() and empty() hurts your code

These functions tap really well in to the weakly typed and procedural side of PHP. If you've already been riding the wave of modern PHP for a while, you've learned to hate that side of PHP.

Learn More 88 33Jun 8 '19

Dependency injection: PHP edition

Make your code more testable, maintainable and configurable

Learn More 67 4Mar 3 '19

Protect your system from changes in 3rd party dependencies

There's always risks when using third party code.

Learn More 23 0Feb 4 '19

How you can reduce usage of getter methods in your code

Make interaction with your objects explicit

Learn More 29 16Sep 24 '18

Discarding setters

Writing setter methods is a sure way to invite confusion and instability to the codebase. Read on how to get rid of them!

Learn More 17 4Sep 8 '18

Don't return associative arrays!

Demand clear answers from your objects, don't accept mumbling

Learn More 83 31Aug 15 '18