Skip to content

Today's Card

Software engineering and other thoughts.

Tag Archives: single responsibility principle

Don’t be afraid to add more classes.

You won’t run out of paper.

Posted byfooyayOctober 18, 2022October 11, 2022Posted inUncategorizedTags:single responsibility principleLeave a comment on Don’t be afraid to add more classes.

Code that changes together should reside close together.

Finding code shouldn’t require a search party.

Posted byfooyayOctober 12, 2022October 11, 2022Posted inUncategorizedTags:changes, clarity, clean code, single responsibility principleLeave a comment on Code that changes together should reside close together.

Create simpler triggers.

Keep your logic outside of the trigger.

Posted byfooyayJanuary 22, 2021December 1, 2020Posted inUncategorizedTags:refactoring, simplicity, single responsibility principle, SRP, triggerLeave a comment on Create simpler triggers.

Learn the Single Responsibility Principle.

That thing should have one job.

Posted byfooyayDecember 8, 2020November 16, 2020Posted inUncategorizedTags:responsibility, single responsibility principle, SOLID principles, SRPLeave a comment on Learn the Single Responsibility Principle.

The Law of Demeter

Chaining a series of methods together can increase dependencies on distant objects.

Posted byfooyayJune 24, 2020June 14, 2020Posted inUncategorizedTags:Law of Demeter, refactoring, single responsibility principleLeave a comment on The Law of Demeter

Don’t use conjunctions in method names.

Two great ideas taste great together, but not in a method.

Posted byfooyayJune 23, 2020June 8, 2020Posted inUncategorizedTags:refactoring, simplicity, single responsibility principle, solidLeave a comment on Don’t use conjunctions in method names.

Don’t create God classes.

These monsters try to do too much.

Posted byfooyayMay 26, 2020May 10, 2020Posted inUncategorizedTags:god class, simplicity, single responsibility principleLeave a comment on Don’t create God classes.

An object should not have more than one trigger.

The trigger should have one job.

Posted byfooyayMay 15, 2020April 26, 2020Posted inUncategorizedTags:single responsibility principle, triggerLeave a comment on An object should not have more than one trigger.
Today's Card, Create a website or blog at WordPress.com
  • Follow Following
    • Today's Card
    • Join 40 other followers
    • Already have a WordPress.com account? Log in now.
    • Today's Card
    • Customize
    • Follow Following
    • Sign up
    • Log in
    • Report this content
    • View site in Reader
    • Manage subscriptions
    • Collapse this bar