Skip to content

Today's Card

Software engineering and other thoughts.

Monthly Archives: June 2020

Don’t put cusswords in your code.

They’ll come out at the wrong time and appear to the wrong people.

Posted byfooyayJune 30, 2020July 14, 2020Posted inUncategorizedTags:clean code, professionalismLeave a comment on Don’t put cusswords in your code.

Have a strong work ethic.

There are a few simple keys to success, and many of them come from improving the right personal behaviors.

Posted byfooyayJune 29, 2020June 14, 2020Posted inUncategorizedTags:professionalismLeave a comment on Have a strong work ethic.

Method names should resemble the domain.

It’s always best to use business words to describe what a method is doing.

Posted byfooyayJune 26, 2020June 14, 2020Posted inUncategorizedTags:clean codeLeave a comment on Method names should resemble the domain.

Methods shouldn’t depend on prior method calls.

You want your code to be more loosely coupled, so it doesn’t break later.

Posted byfooyayJune 25, 2020June 14, 2020Posted inUncategorizedTags:clean code, loosely coupledLeave a comment on Methods shouldn’t depend on prior method calls.

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.

DeMorgan’s Laws

These can come in handy when refactoring boolean logic.

Posted byfooyayJune 22, 2020June 7, 2020Posted inUncategorizedTags:logic, refactoringLeave a comment on DeMorgan’s Laws

Name booleans carefully.

Give them names that suggest a binary outcome.

Posted byfooyayJune 19, 2020May 16, 2020Posted inUncategorizedTags:boolean, clean code, variablesLeave a comment on Name booleans carefully.

Variable names should describe what, not how.

Leave the how to the implementation.

Posted byfooyayJune 18, 2020May 16, 2020Posted inUncategorizedTags:clean code, naming, variablesLeave a comment on Variable names should describe what, not how.

A variable should have one purpose.

Don’t overload variables into multiple meanings.

Posted byfooyayJune 17, 2020May 16, 2020Posted inUncategorizedTags:clean code, refactoring, scopes, variablesLeave a comment on A variable should have one purpose.

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