News for hackers. Stuff that matters.
Re:Dependency Injection is a Virtue by praptak on Monday January 07, 2013 @08:40AM (#5020869)
> structured programming

Actually this one is alive and well, although it might be hard to see as we have built huge complex structures over it.

We still follow its basic principles - one entry point per subroutine, no jumps into middle of loop body, no jumps into branches of "if", only the subroutines are sometimes called procedures, methods or functions.

Even those who program directly in machine code seldom break the above commandments.

Nope, SP is definitely not a fashion.

Re:Dependency Injection is a Virtue by barrkel on Monday January 07, 2013 @09:52AM (#5021183)
I sometimes even use goto, as well as break, continue, and return before the end of the function.

Bite me.

;)

(SP adherents used to advocate using flags instead of breaking out of loops explicitly, amongst other things. It's this kind of virtuous action for the sake of the virtue, rather than anything that necessarily makes sense, that I'm talking about.)