Clean Code & Clean Architecture Flashcards

1
Q

What are the key principles of Clean Code? Can you give examples of how they apply in real-world Java projects?

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How would you recognize “code smells” in a codebase, and what steps would you take to address them?

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Can you describe the difference between cohesion and coupling, and why they matter in a clean architecture?

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is Clean Architecture according to Uncle Bob? How does it differ from traditional layered architecture?

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

How do you structure a maintainable Java application using Clean Architecture? What roles do interfaces and dependency inversion play?

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What are some common anti-patterns in Clean Code or Architecture, and how would you avoid them?

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

How do you ensure your codebase remains clean and architecturally sound as your team grows?

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly