Skip to content

Today's Card

Software engineering and other thoughts.

Tag Archives: clean code

Avoid excessive switches and flags.

Sometimes it’s better to have something else handle those cases.

Posted byfooyayNovember 3, 2022October 26, 2022Posted inUncategorizedTags:API, clean codeLeave a comment on Avoid excessive switches and flags.

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.

Don’t repeat code logic in the comments.

Logic should appear in only one place.

Posted byfooyayFebruary 11, 2021February 9, 2021Posted inUncategorizedTags:clean code, commentsLeave a comment on Don’t repeat code logic in the comments.

Follow the campsite rule.

Leave it better than when you found it.

Posted byfooyayJanuary 14, 2021November 30, 2020Posted inUncategorizedTags:clean code, refactoring, technical debtLeave a comment on Follow the campsite rule.

Business words make better names.

Use domain-specific types.

Posted byfooyayDecember 29, 2020November 23, 2020Posted inUncategorizedTags:clean code, domain objectLeave a comment on Business words make better names.

Practice the SOLID principles for cleaner code.

Write software that is loosely couple with high cohesion.

Posted byfooyayDecember 15, 2020November 16, 2020Posted inUncategorizedTags:clean code, quality, SOLID principlesLeave a comment on Practice the SOLID principles for cleaner code.

Build to last.

Will your code stand the test of time?

Posted byfooyayDecember 2, 2020November 12, 2020Posted inUncategorizedTags:clean code, simplicityLeave a comment on Build to last.

Use less magic.

The code should communicate the intent of the developers.

Posted byfooyayNovember 17, 2020October 28, 2020Posted inUncategorizedTags:clarity, clean code, frameworksLeave a comment on Use less magic.

Write code in English.

You don’t speak in code, but you can make the code speak to others.

Posted byfooyayNovember 13, 2020October 28, 2020Posted inUncategorizedTags:clarity, clean codeLeave a comment on Write code in English.

Use polymorphism.

This is a technique that can replace your if/else and case statements.

Posted byfooyayOctober 2, 2020September 22, 2020Posted inUncategorizedTags:clean code, polymorphismLeave a comment on Use polymorphism.

Posts navigation

1 2 3 Older posts
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