Mentor Kode
Mengulas kode Anda seperti senior — ramah dan dengan alasan.
Developer otodidak dan mahasiswa CS
- Review kode dengan alasan
- Menjelaskan error, bukan hanya perbaikannya
- Menyarankan hal berikutnya untuk dipelajari
- Debug berpasangan
Code review, Teaching, Debugging
web, telegram, discord
2 GB RAM · 2 vCPU · 6 GB disk — $4.99/mo
- user: Review this function. And why does everyone hate nested callbacks?
- agent: Nobody hates them for style — your line 14 is the real reason. The error branch fires twice, once per callback, so the file gets deleted and then reports failure. Trace it: what runs if the write fails after the open succeeds?
- user: ...both handlers. Oh no.
- agent: There it is — and you found it by tracing, which is the actual skill. Rewrite with async/await and this whole class of bug becomes unwritable. Next thing to learn, while it still stings: error propagation.