UIAlertView *alert = [[UIAlertView alloc] initWithTitle:nil message:nil delegate:self cancelButtonTitle:nil otherButtonTitles: nil];
UIAlertView *alert = new(UIAlertView);
alert = tell(alert)__to(initWithTitle:nil)_with(message:nil)_with(delegate:self)_with(cancelButtonTitle:nil)_andWith(otherButtonTitles: nil);
--
The only way to go fast is to go well.
---
You received this message because you are subscribed to the Google Groups "Clean Code Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to clean-code-discu...@googlegroups.com.
To post to this group, send email to clean-code...@googlegroups.com.
Visit this group at http://groups.google.com/group/clean-code-discussion.
In my opinion, my updated version reads more like well written prose. But before I get too attached to this idea, I'm curious if I've taken things too far. In effect, I've used the preprocessor to avoid the syntax of the language. This might be a bad idea.
UIAlertView *alert = [UIAlertView new];
[alert setTitle: @"My Title"];
[alert setMessage: @"My message"];
--
The only way to go fast is to go well.
---
You received this message because you are subscribed to a topic in the Google Groups "Clean Code Discussion" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/clean-code-discussion/d96RXE-QYTs/unsubscribe.
To unsubscribe from this group and all its topics, send an email to clean-code-discu...@googlegroups.com.
To post to this group, send email to clean-code...@googlegroups.com.
Visit this group at http://groups.google.com/group/clean-code-discussion.