PHPnews.io

SOLID Design Principles - Dependency Injection

Written by Sandi Metz / Original link on Mar. 21, 2009

Not as Painful as it sounds…Nothing is more pleasing than beautiful code. And nothing is more heart-breaking than watching beautiful code get destroyed. Lately, I’ve been paying particular attention to SOLID Object Oriented Design (OOD) principles and their interaction with TDD. I’m finding that,…




One Line Linux “Twitter From File” Command

Written by Cal Evans / Original link on Mar. 4, 2009

Sometime recently I was surfing around and came across a blog post where a user wrote a PHP script - fully OO, it was very pretty - that would pop the top line off of a file and tweet it, that struck me as odd. Actually, first it struck me as stupid since all twitter.com needs is another mindless…