PV168

Layered Architecture

Layered Architecture

Each layer of the layered architecture pattern has a specific role and responsibility within the application.[1]

[1]: Richards, Mark (February 2015). Software Architecture Patterns O'Reilly Media, Inc. ISBN 9781491924242.

Open-Closed Principle

  • Definition
    • Software entities should be open for extension, but closed for modification
  • What does it mean?
  • How to achieve that?

N-tier architecture

Separation of concerns

Layers of isolation

Architecture sinkhole anti-pattern

Error Handling

  • What is and Why we need error handling?
  • Best practices
  • Checked vs Unchecked exceptions
  • Demo

Work with files

  • Existing API
  • Resource leaks
  • try-with-resources

Comments in Java

  • Documentation vs Implementation
  • Best practices
  • Demo