logoalt Hacker News

AbbeFaria • today at 6:47 AM • 2 replies • view on HN

I have some anecdata that I can share. I have been auditing the MIT distributed systems course (6.5840). I have always been interested in learning about the nitty gritty of Distributed systems. They have labs that walk you through building a Linearizable KV store by building on top of Raft (consensus algorithm).

Obviously, I have been using GPT to ask questions. I also have this Agents.md from Stanford CS336 that prohibits the agent from giving direct answers.

Some rules I follow so that I can be confident I understand the syllabus deeply and therefore not cognitively surrender.

1. Always ask probing questions. I learn the best when I ask questions that further my understanding. Instead of “TestSnapshot4C is failing, pls fix it”. My Q is “I see that LastIncludedIdx is less than args.PrevLogIdx. What are possible scenarios that could result in that ? Share a simple example”. GPT does construct a simple example that does indeed help me debug what’s wrong.

2. Don’t delegate the patch to the Agent unless it’s trivial. Unless I have a clear idea of how, say the InstallSnapshot RPC will work, I don’t delegate to the agent. It’s ok to use it for trivial renaming, refactoring etc.

3. Write your own commit messages. Anyone who has used agents will know your Agent is a chatty Cathy who will always use a hundred words when only five would do. My own commit messages which happen to be verbose are easier for me to follow and help me trace my understanding. If I had to look at my own commit messages 6 months down the line and understand it again it won’t be a Herculean task whereas if you let the agent write your commit messages, fare thee well to that.

This is what I have found helpful for myself. Sure, I haven’t 100x my productivity but it has helped me understand what I build and kept me in the driver’s seat.

I would love to know if someone else has other pointers.


Replies

jraph • today at 6:55 AM

> My Q is “I see that LastIncludedIdx is less than args.PrevLogIdx. What are possible scenarios that could result in that ? Share a simple example”

I feel like this is already too much. Going through the pain and taking the time to debug why last < prev is what might anchor whatever insight might need to be anchored. And train you to be better and faster at debugging. And eventually, not be dependant on LLMs.

> Don’t delegate the patch to the Agent unless it’s trivial

For trivial stuff, why not do it yourself?

> It’s ok to use it for trivial renaming, refactoring etc.

These are standard IDE features that don't require a costly LLM.

Given these observations, I question the usefulness of using an LLM to learn stuff at all, let alone an agent. Training exercises are not supposed to be fast-forwarded. Take all you can from the journey :-)

margalabargala • today at 6:57 AM

These rules are down to your employer.

Some of us are being to write new software systems in languages we do not know and are utterly reliant on the LLM to do 100% of the writing of patches etc.

Development moves very fast. Surprisingly, it has not resulted in a particularly fragile system so far. But if it breaks, the best I can do is ask Claude.