IWETHEY v. 0.3.0 | TODO
1,095 registered users | 0 active users | 0 LpH | Statistics
Login | Create New User
IWETHEY Banner

Welcome to IWETHEY!

New Got a funny compliment at work today.
You will probably be aware that I've been spending my days programming in PHP. Amongst other things, PHP has nice things like arrays as first-class types. And to help work with them, there is a language construct that loops through a populated array.

The canonical use for PHP's foreach is to do something simple - i.e. 1 or 2 lines of code - over an array. But they are so much more useful than that. If you have some near-identical code that only has a few parameters different each time, you can build a small array to run the code a few different ways. My boss/colleague said he thought some of my foreach's got a bit scary. Nah - I'm just making full use of the language's capabilities.

Wade.

"All around me are nothing but fakes
Come with me on the biggest fake of all!"

New Are you sure it *was* a compliment in the first place..? :-)
New Hah. You're funny, you are.
He actually said "I've never seen someone use foreach loops like that before. But it works, so it's cool.".

Wade.

"All around me are nothing but fakes
Come with me on the biggest fake of all!"

New Sounds almost like primative T.O.P.
________________
oop.ismad.com
New Isn't it all? :p


Peter
Shill For Hire
[link|http://www.kuro5hin.org|There is no K5 Cabal]
     Got a funny compliment at work today. - (static) - (4)
         Are you sure it *was* a compliment in the first place..? :-) -NT - (CRConrad) - (1)
             Hah. You're funny, you are. - (static)
         Sounds almost like primative T.O.P. -NT - (tablizer) - (1)
             Isn't it all? :p -NT - (pwhysall)

Globes ... or flutes?
54 ms