Events can provide a great away to build de-coupled applications and allows you to tap into the core of your application without modifying its code. To fire an event, just tell the Event class the name of the event you want to fire: $responses = Event::fire(‚user.updated‘); Notice that we assigned the result of the fire […]
Read MoreKategorie: PHP Tricks und Tipps
Hier schreibe ich über meine Erfahrungen und Inspirationen mit PHP und Co.
Why reactive application?
Application requirements have changed dramatically in recent years. Only a few years ago a large application had tens of servers, seconds of response time, hours of offline maintenance and gigabytes of data. Today applications are deployed on everything from mobile devices to cloud-based clusters running thousands of multi-core processors. Users expect millisecond response times and […]
Read MoreShould a function have only one return statement?
I would say that you can definitely have more than one return statement. Therefore I would like to suggest to: 1.) Minimize the number of returns in each routine. It’s harder to understand a routine if, reading it at the bottom, you’re unaware of the possibility that it returned somewhere above. 2.)Use a return when […]
Read MoreWann ist ein Unternehmen agil?
Agil bedeutet “aktiv und beweglich”. Aber was heißt das für ein Unternehmen? In diesem Artikel werde ich versuchen, diese Frage zu beantworten und zu erklären, wie man ganz einfach herausfinden kann, ob ein Unternehmen agil ist.
Read More