# Avoiding Dangerous IF Statements with Objects

DevFeed: [Avoiding Dangerous IF Statements with Objects](<https://devfeed.tech/articles/cool-stuff-26087.md>)

Original publisher: [Read original article](<https://blog.arkey.fr/cool-stuff/>)

Author: brice.dutheil@gmail.com (Brice Dutheil)

Published: 2016-06-24T00:00:00Z

Content type: opinion

Language: en

Sources: [The Coffee Workshop](<https://devfeed.tech/sources/the-coffee-workshop.md>)

Topics: [Code](<https://devfeed.tech/topics/code.md>), [clean-code](<https://devfeed.tech/topics/clean-code.md>), [Architecture & Design](<https://devfeed.tech/topics/architecture-design.md>), [Software Engineering](<https://devfeed.tech/topics/software-engineering.md>)

Tags: [clean-code](<https://devfeed.tech/tags/clean-code.md>), [code](<https://devfeed.tech/tags/code.md>), [design](<https://devfeed.tech/tags/design.md>), [effective](<https://devfeed.tech/tags/effective.md>), [software](<https://devfeed.tech/tags/software.md>), [software-design](<https://devfeed.tech/tags/software-design.md>)

## AI overview

The Anti-IF Campaign advocates reducing problematic conditional statements by using objects and software design principles to make code more flexible, maintainable, and testable.

## Source excerpt

A few book to posess Database Internals: A Deep Dive into How Distributed Data Systems Work by Alex Petrov BPF Performance Tools by Brendan Gregg Growing Object Oriented Software, Guided by Tests by Steve Freeman and Nat Pryce Reactive Design Patterns by Dr. Roland Kuhn, Brian Hanafee and Jamie Allen 97 Things Every Programmer Should Know Collective Wisdom Effective Java (3nd Edition) by Joshua Bloch Java Performance by Charlie Hunt Seven Concurrency Models in Seven Weeks: When Threads Unravel by Paul Butcher Clean Code by Rober C. Martin Domain Driven Design by Eric Evans Java Concurrency in Practice by Brian Goetz Real World Java EE Patterns by Adam Bien Pragmatic Thinking & Learning by Andy Hunt Enterprise Integration Patterns by Gregor Hohpe and Bobby Woolf Java EE 6 by Antonio Goncalves Patterns of Enterprise Application Architecture by Martin Fowler Business Model Generation by Alexander Osterwalter and Yves Pigneur Design Patterns by John Vlissides, Richard Helm, Ralph Johnson and Erich Gamma