User:Jeroen De Dauw/Static: The S in STUPID/2

From semantic-mediawiki.org
Jump to: navigation, search
Jeroen De DauwJeroen De Dauw/Static: The S in STUPIDUser:Jeroen De Dauw/Static: The S in STUPID/2

The S in STUPID

Tight coupling!

Problem #1:

  • This class is now dependent on Logger and DataStore.
public function doStuff() {
    // ...

    Logger::log( 'doing stuff during caturday is madness' );

    // ...

    DataStore::saveObject( $object );

    // ...
}