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.

Back to the seminar

  • How did your solutions look like?
  • What if we wanted JSON or XML instead?

Open-Closed Principle

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

New stuff in Employee Evidence

  • We have added only few commits after week 05
  • Let's explore them in greater details

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