Skip to content

gardusi/unconditional-code-practicing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Unconditional Code Practicing

This is a code snippet to practice not using any sort of explicit branch conditions, such as if statements.

Some strategies to achieve it are by class inheritance, method overload and mapping structures. Unconditional code demands the creation of more methods and better naming, which are good design choices and make the code more understanble. On the other hand, these structures are less perfomatic - at least at the moment of writing of this description - since it's not a widespread concept and compilers are not ready to optimize for it.

This exercise is inspired in Michael Feather's presentation about Unconditional Code.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors