• 0 Posts
  • 6 Comments
Joined 2 years ago
cake
Cake day: July 1st, 2023

help-circle
  • The number of new devs who complain about having to write a unit test is too damn high

    • Or writing integration tests
    • Or passing CI
    • Or following repo conventions
    • Or following standards
    • Or adhering to domain guardrails
    • Or in adding monitoring
    • Or in not logging everything as info
    • Or in actually documenting features
    • Or in receiving critical PR review
    • Or in addition input validation
    • Or in not trusting the client

    …etc

    Honestly most devs… Kinda suck at their job. This is becoming more evident to me every year



  • Why would it be on each dev to setup?

    Your repo can, and should, include workspace settings for major editors that provide a uniform experience for anyone onboarded to the platform.

    I agree that precommit hooks are good for uniformity. But slow pre commit hooks are frustrating, they are also often turned off. Your CI will always be the last gatekeeper for linting/formatting rules regardless.

    Making precommit hooks slower means more devs disable them, which is the opposite of what you want. Save them for simple, read, checks and validations that can run in < 1s for even huge changesets.