Have you ever wondered how IFs impact your code? Avoid dangerous IFs and use Object Oriented Principles to build a code that is flexible, changeable and easily testable, and will get rid of a lot of headaches and weekends spent debugging!

Learn how to write effective code the easy way!

What Is the Anti-IF Campaign?

The objective of the Anti-IF Campaign is to raise awareness of effective use of the Object-Oriented paradigm.

The primary purpose of our campaign is to become aware of the design consequences of using IFs and of control structures in general, applied by following the path of the procedural paradigm in Object Oriented contexts. This greater awareness will enable you to understand how to achieve more effective results in terms of flexibility, comprehensibility, testability, and ability to evolve.

Why Was It Started?

The campaign was Francesco Cirillo’s idea: “Lots of teams want to be agile, but they don’t know the basics for cutting down on code complexity.” Knowing how to use objects lets developers eliminate IFs based on type, those that most often compromise software's flexibility and ability to evolve. Let’s start with these!” 

Who Is It For?

  • Developers (Junior and Senior)
  • Business Analysts
  • Project Leaders
  • Software Quality Assurance Team Members

Articles and Tips

08/04/2009
Francesco Cirillo XPLabs

The Simplest Anti-IF Code

The basic problem is that IFs create dependencies, coupling between modules (methods, objects, components, etc.) and increases possible paths inside our code (which reduces legibility).An IF seems l [...]

Agile Methods.eu

Follow the Campaign

See entire list of events

Latest Supporters

Read the complete list and join the campaign!

code recruitment campaign