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 Records

  • We have added a dozen commits since last week
  • 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