Aug 25

Break my code, please

There’s a number of things we can should take into account when writing code — boundary cases, etc., that can make or break a programme.  Yes, testing is important, but I think that developing good defensive programming practices is even more important.  That said; I present the following, fragile, code.  Just about every line has a case where it can fail.  Can you break my code?  I’ll post some test cases which cause it to fail later.

And for those looking for the next installment of O_RLY?, it’s coming soon; I’ve been embroiled in a hideous move.

Edit: caesar_salad should have had @name instead of name

1 ping

  1. Ramblings » Blog Archive » Why my code is broken….. (break my code redux)

    […] I posted an article entitled Break my code, please, wherein I posted a very fragile piece of code, with the challenge to find ways in which to break […]

Leave a Reply

%d bloggers like this: