Skip Navigation

InitialsDiceBearhttps://github.com/dicebear/dicebearhttps://creativecommons.org/publicdomain/zero/1.0/„Initials” (https://github.com/dicebear/dicebear) by „DiceBear”, licensed under „CC0 1.0” (https://creativecommons.org/publicdomain/zero/1.0/)MP
Posts
2
Comments
580
Joined
2 yr. ago

  • I think “15 hours ago” is fine. That one is quite precise. Showing date as “1 year ago” is not helpful. It could be anything between 2021-10-06 and 2022-10-05. It’s a huge span. In that time Ukraine got invaded and the Queen died.

  • I think comments should be a last resort when all other methods are inadequate. Proper git commit logs have helped me many times to understand why a certain thing is needed.

    Git logs don’t need maintenance either. They always tell what was true when the code was written. Comments need maintenance, and are often difficult to keep updated.

    You can write a detailed comment about the whys of a particular function, only for it to become outdated in weeks when the functionality has changed.

  • Often you can find the “why” in the file’s Git history. If done properly, you should be able to find which commit introduced this change, and which issue is attached to this commit.