Posted 01 April 2011 - 07:54 PM
Do any of you guys have any really tall curly bracket pyramids in your code? I have a 14 high one as my record :lol:
Any of you have similar ones?
Posted 01 April 2011 - 09:58 PM
Posted 01 April 2011 - 10:10 PM
But you are also correct about me posting a jpg as opposed to a png. I am ashamed of myself. Allow me to fix it.
Posted 02 April 2011 - 03:00 AM
I've never kept count or anything, but I know it's at least 2.
Posted 02 April 2011 - 04:04 AM
As for myself, I think the longest I ever went was a triple loop, so 3. More than that and I'm doing something wrong :blink:
Posted 02 April 2011 - 07:36 PM
It could be a combination of how you approach your tests (test for the exceptional, not the normal) and/or a method that can be refactored into more focused code.
Posted 02 April 2011 - 09:31 PM
@TheNut: Dang it! Well the quality was pretty low ha. I am known as "Sheldon" by some of my friends :)
@alphadog: I probably should fix it, but it seems to be working right now and I just need it for a little while.
Posted 04 April 2011 - 09:15 AM
I have 5 levels of nested if:s right now. I don't like it, but it's at least pretty clean. Error handling in php... I'll not discuss code smell and elegance any further, or I'll depress myself.
Posted 04 April 2011 - 11:21 AM
I found out just now that php actually has exceptions since version 5.0. Now I feel stupid.
Posted 04 April 2011 - 11:27 AM
Posted 04 April 2011 - 08:07 PM
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users