161 reputation
7
bio website magentocommerce.com/…
location United Kingdom
age
visits member for 3 years, 8 months
seen Aug 17 '11 at 19:59

Freelance developer specialising in Magento.


Sep
6
awarded  Popular Question
Dec
9
awarded  Nice Question
Dec
9
awarded  Editor
Dec
9
revised What do you use string reversal for?
added 361 characters in body; added 15 characters in body
Dec
9
awarded  Scholar
Dec
9
accepted What do you use string reversal for?
Dec
9
comment What do you use string reversal for?
Do you really, desert mouse? I use flippancy for being flippant. :-p
Dec
8
awarded  Commentator
Dec
8
comment What do you use string reversal for?
Interesting topic, just how would you reverse a bit field?
Dec
8
comment What do you use string reversal for?
Thank you. A very handy trick for finding the last of something. Duly noted.
Dec
8
comment What do you use string reversal for?
@justkt - I just wanted an excuse to show off my XOR trick.
Dec
8
comment What do you use string reversal for?
@justkt - If I had to write an iterative loop to do it I would start at opposite ends swapping chars until the middle is reached. But then how do you swap two values? Here is simply the best answer I've ever been given: a ^= b; b ^= a; a ^= b;
Dec
8
comment What do you use string reversal for?
@justkt - That is a whole other question waiting to happen but might be a topic for TopCoder instead.
Dec
8
awarded  Student
Dec
8
comment What do you use string reversal for?
I suppose while a "palindrome checker" isn't notably useful, "write a palindrome checker" at least has a purpose.
Dec
8
comment What do you use string reversal for?
And the most popular obfuscation in use was only given a single sentence in that whole article... Encoding as an image.
Dec
8
comment What do you use string reversal for?
+1 for this answer. It is at least a practical example although I too would have done it another way, perhaps by choosing primitive types that are differently enddian.
Dec
8
comment What do you use string reversal for?
The follow up question to that would be, when have you ever needed to check a palindrome in the real world? Again, I've only ever seen anyone care in algorithm lessons.
Dec
8
asked What do you use string reversal for?
Dec
8
awarded  Supporter