[codecraft] Anti-IF Campaign

Michael Bar-Sinai mich.barsinai at icloud.com
Fri Jul 31 15:51:50 EDT 2015

Nice find! I forgot about this campaign, even though I linked to its original page once [1]. It's interesting to note that you can always replace control flow with inheritance, as long as you allow conditional expressions (e.g. Java's treaty operator). This is how SmallTalk's Boolean class worked.

[1] https://today.java.net/pub/a/today/2008/08/21/complex-table-cell-rendering.html <https://today.java.net/pub/a/today/2008/08/21/complex-table-cell-rendering.html>
> On Jul 29, 2015, at 06:15, Philip Durbin <philipdurbin at gmail.com> wrote:
> http://antiifcampaign.com <http://antiifcampaign.com/>
> "The goal of the Anti-IF Campaign is to raise awareness of the effective use of software design principles and practices, by first of all removing bad, dangerous IFs."
> _______________________________________________
> codecraft mailing list
> codecraft at or8.net
> http://or8.net/mailman/listinfo/codecraft

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://or8.net/pipermail/codecraft/attachments/20150731/b87f046f/attachment.html>

More information about the codecraft mailing list