Skip to content

Today's Card

Software engineering and other thoughts.

Monthly Archives: February 2021

Testing can find bugs, but it can’t prove the absence of bugs.

It can certainly find bugs, but it is not proof that all is well.

Posted byfooyayFebruary 26, 2021February 23, 2021Posted inUncategorizedTags:testingLeave a comment on Testing can find bugs, but it can’t prove the absence of bugs.

Never ignore an error.

You can’t simply pretend it didn’t happen.

Posted byfooyayFebruary 25, 2021February 23, 2021Posted inUncategorizedTags:errorsLeave a comment on Never ignore an error.

Comments should discuss the current functionality.

Don’t let your comments ramble on about the past or future.

Posted byfooyayFebruary 24, 2021February 23, 2021Posted inUncategorizedTags:commentsLeave a comment on Comments should discuss the current functionality.

Don’t use comments as version control.

Instead, use version control software, like git.

Posted byfooyayFebruary 19, 2021February 11, 2021Posted inUncategorizedTags:comments, gitLeave a comment on Don’t use comments as version control.

Avoid comments at the end of a code block.

Your block is probably too big.

Posted byfooyayFebruary 18, 2021February 11, 2021Posted inUncategorizedTags:comments, simplicityLeave a comment on Avoid comments at the end of a code block.

Use the right data types.

Don’t use a datetime data type if the job calls for a date data type.

Posted byfooyayFebruary 17, 2021February 11, 2021Posted inUncategorizedTags:data types, timeLeave a comment on Use the right data types.

Comments cannot enforce types or usage.

Use code for this.

Posted byfooyayFebruary 16, 2021February 11, 2021Posted inUncategorizedTags:commentsLeave a comment on Comments cannot enforce types or usage.

Don’t make local versions.

Avoid making local versions of third party or open source tools and libraries.

Posted byfooyayFebruary 12, 2021February 9, 2021Posted inUncategorizedTags:dry, solidLeave a comment on Don’t make local versions.

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.

Code with fewer comments will have fewer bad comments.

Yes, and less is more.

Posted byfooyayFebruary 10, 2021February 9, 2021Posted inUncategorizedLeave a comment on Code with fewer comments will have fewer bad comments.

Posts navigation

1 2 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