This wiki is being moved to a new server and cannot be edited. Please sit tight. Thank you.

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

From semantic-mediawiki.org

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 );

    // ...
}