Development tips: Difference between revisions

From miki
Jump to navigation Jump to search
No edit summary
Line 12: Line 12:
:* At the very least, this means in the same repository. Ideally code and tests are updated together in the same commit.
:* At the very least, this means in the same repository. Ideally code and tests are updated together in the same commit.
* Make your startup / boot / init sequence independent of system configuration. Avoid early optimization.
* Make your startup / boot / init sequence independent of system configuration. Avoid early optimization.

== Calendars ==
Use [https://unicode-org.github.io/icu/userguide/datetime/ ICU] libraries that deal with all [https://yourcalendricalfallacyis.com/ subtleties!]

Revision as of 08:20, 9 February 2022

Summary of things I do frequently or that I learned the hard way

Console tips

  • Search for whole words occurence:
ag "\bWHOLEWORD\b"

Advices

  • Always keep your tests in sync with your source code.
  • At the very least, this means in the same repository. Ideally code and tests are updated together in the same commit.
  • Make your startup / boot / init sequence independent of system configuration. Avoid early optimization.

Calendars

Use ICU libraries that deal with all subtleties!