Field Notes from Shipping Real Code with Claude

(diwank.space)

52 points | by diwank 7 hours ago

3 comments

  • diwank 22 minutes ago
    Author here: To be honest, I know there are like a bajillion Claude code posts out there these days.

    But, there are a few nuggets we figured are worth sharing, like Anchor Comments [1], which have really made a difference:

    ——

      # CLAUDE.md
    
      ### Anchor comments
    
      Add specially formatted comments throughout the codebase, where appropriate, for yourself as inline knowledge that can be easily `grep`ped for.
    
      - Use `AIDEV-NOTE:`, `AIDEV-TODO:`, or `AIDEV-QUESTION:` as prefix as appropriate.
    
      - *Important:* Before scanning files, always first try to grep for existing `AIDEV-…`.
    
      - Update relevant anchors, after finishing any task.
    
      - Make sure to add relevant anchor comments, whenever a file or piece of code is:
    
      * too complex, or  
      * very important, or  
      * could have a bug 
    
    ——

    [1]: https://diwank.space/field-notes-from-shipping-real-code-wit...

    • meeech 0 minutes ago
      Q: How do you ensure tests are only written by humans? Basically just the honor system?
    • meeech 10 minutes ago
      Honest question: approx what percent of the post was human vs machine written?
      • diwank 1 minute ago
        I’d say around ~40% me, the ideating, editing, citations, and images are all mine; rest Opus 4 :)
  • kasey_junk 2 hours ago
    One of the exciting things to me about the ai agents is how they push and allow you to build processes that we’ve always known were important but were frequently not prioritized in the face of shipping the system.

    You can use how uncomfortable you are with the ai doing something as a signal that you need to invest in systematic verification of that something. As a for instance in the link, the team could build a system for verifying and validating their data migrations. That would move a whole class of changes into the ai relm.

    This is usually much easier to quantify and explain externally than nebulous talk about tech debt in that system.

  • bitwize 1 hour ago
    Coming up next on Hackernews: Field Notes from Eating Real Pizza Made with Claude:

    "The glue adds a flavor and texture profile that traditionalists may not be used to on their cheese pizza. But I've had Michelin-star quality pizzas without glue in them that weren't half as delicious as this one was with. AI-mediated glue-za is the future of pizza, no doubt about it."

    • sdorf 36 minutes ago
      The whole point seems to be how to get the most out of today's tooling without "glue getting in your pizza". It's a little flag-wavy (probably because of the author's company) but overall seemed like a pretty candid peek into how it's being used. Did you have a specific critique?
      • diwank 10 minutes ago
        Feedback appreciated! Will tone it down; did not intend it to be too much about our company, just that it is the codebase I mostly hack on. :)