Warning: preg_replace(): Compilation failed: invalid range in character class at offset 4 in /home/customer/www/programmerscuriosity.com/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340
Uncategorized – Programmer's curiosity
Skip to content

Programmer's curiosity

Programmer's curiosity Blog

Programmer's curiosity

Category: Uncategorized

Single Responsibility Principle

Just because you can doesn’t mean you should.

  • A class should have only one reason to change.
  • There should never be more than one reason for a class to
    change.
  • Your classes should be small. No more than a screen full of
    code.
  • Avoid ‘god’ classes.
  • Split big classes into smaller classes.

Author MaroMPosted on January 8, 2019January 8, 2019Categories UncategorizedTags java basics, SOLIDLeave a comment on Single Responsibility Principle

Recent Posts

  • Stream filter() in Java with examples
  • Spring Boot Security and H2 console
  • Docker install on Linux Mint 19 Tara
  • Project Lombok
  • Spring Boot Run Dashboard

Recent Comments

  • JUnit – assertThat (Hamcrest) – part 3 – Programmer's curiosity on JUnit – assertThat (Hamcrest) – part 1
  • JUnit – assertThat (Hamcrest) – part 2 – Programmer's curiosity on JUnit – assertThat (Hamcrest) – part 1
  • DI – let’s try to understand it – part 2 – Programmer's curiosity on DI – let’s try to understand it – part 1

Archives

  • May 2019
  • April 2019
  • March 2019
  • February 2019
  • January 2019
  • August 2017
  • November 2016
  • September 2016
  • August 2016
  • July 2016
  • May 2016
  • April 2016
  • March 2016

Categories

  • java
  • java basics
  • linux
  • Spring
  • Tools
  • tricky java
  • Uncategorized
  • web development

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
Programmer's curiosity Proudly powered by WordPress