DPC2019: Hello my name is "if" - Sebastian Feldmann

"Unlock the power of simple code with Sebastian Feldmann's talk on eliminating intermediate complexity, refactoring, and improving maintainability through unit testing and TDD."

Key takeaways
  • Complex conditionals can be reduced to eliminate intermediate complexity
  • Implementing guard clauses can simplify code and reduce cyclomatic complexity
  • Avoid using conditionals for control flow and instead use function calls
  • Small, focused tests can help reduce complexity and improve testability
  • Keep cyclomatic complexity low by avoiding conditionals and using functions
  • Writing unit tests can help identify and eliminate intermediate complexity
  • Code should be readable and maintainable, even for new developers
  • Refactoring is important for maintaining code quality
  • Intermediate complexity is often a sign of a larger problem that needs to be addressed
  • Testing and refactoring can help reduce the complexity of conditionals and improve maintainability
  • Avoid duplication by using functions and interfaces for common behaviors
  • Code should be simplified and refactored to remove unnecessary complexity
  • Test-driven development (TDD) can help identify and eliminate intermediate complexity
  • Low cyclomatic complexity is important for maintainable code
  • Complex conditionals can be related to unnecessary complexity and should be refactored
  • TDD can help ensure that code is simple and easy to maintain
  • Refactoring can help improve code quality and reduce complexity.