Remix.run Logo
esafak 9 hours ago

It lets you understand the code base at reduced granularity when you want. Or zoom in beyond the written lines to explain _why_ some code is the way it is.

chris_st 9 hours ago | parent | next [-]

I asked Claude to tell me why something was implemented the way it was, and got an excellent response. One data point, would love to hear more examples.

rectang 8 hours ago | parent [-]

I agree, Claude has been pretty great at explaining code. It even does well at explaining to me old code that I wrote by hand — including both non-intuitive quirks and flaws.

Claude in its default configuration has untapped potential for explaining and documenting code because it defaults to writing no comments. I added this to my global CLAUDE.md and so far so good:

    # Comments

    Keep existing comments unless they're wrong
    or stale. Err slightly toward adding short
    explanatory comments for non-obvious code.
ai_fry_ur_brain 9 hours ago | parent | prev [-]

Why not just read the code.. Ya'll are literally letting your brain atrophy by using llms this way.

andybak 8 hours ago | parent | next [-]

Despite you using "literally" purely for emphasis, I would dispute this based on both the literal and popular meaning of "literally".

casper14 9 hours ago | parent | prev | next [-]

How do I know this comment isn't just AI?

aspenmartin 8 hours ago | parent | prev [-]

Why not just read the assembly?