3 comments

  • halflife 14 minutes ago
    Finally.

    This is exactly what I need when I need it. The amount of pull requests I reviewed with a mess of codes that can be switched to 2 lines of modern features made me write such tools myself, only half assed since I have other things to do.

  • phyzix5761 29 minutes ago
    "Best Practices" are pretty much dead in the AI era. Pretty soon no one is going to read any of the code AI produces and that's a scary thought.
    • paulirish 14 minutes ago
      IMO maintainability is the next frontier. If we just allow coding agents to accrete 1k-LOC solutions to problems, the codebases run quick away from our ability to maintain _some_ level of understanding.

      So I'll take a 1-line CSS solution over 60 lines of ResizeObserver/setTimeout business. But.. best practices for frontend isn't just the code.. it's ensuring quality UX, that keyboard navigability works, that layout doesn't shift on users.

    • natorion 24 minutes ago
      Best practices are not dead if they result in better user experience. The focus is less on developer ergonomics though - true that.
    • brlewis 3 minutes ago
      >Pretty soon no one is going to read any of the code AI produces and that's a scary thought.

      This is a misconception. Have your favorite agent summarize this video for you: https://www.youtube.com/live/zcLPGC-tvgk?si=YR68aHlFESD053bh

  • cyanydeez 3 minutes ago
    I treat all my code as some kind of stochastic machinery. So atleast one stage, I'd just tell an agent to go through and follow the guide.

    But I'd not inject all this fluff into the wheels of the machine because it'd just take the "average" of these practices which would be just as useless.