logoalt Hacker News

CrimsonRain04/25/20250 repliesview on HN

Unfortunately, I'm at a stage of personal life where I do not have time to blog. I'd love to but :(

The stuff I work on for company is confidential and even getting authorization to use AI was such a hassle.

Based on some of your replies, I think you have an impression of current generation AIs that is 100% wrong. I can not blame you as the impression you have, is what the AI companies want you to have, that's what they are hyping.

In another comment, you mentioned someone should demo how AI can add a non-leaf feature to a non-trivial LOC codebase. This is what AI companies say AI can do. But the truth is, (current gen) AIs can not do this except a few rare cases. I can not demo this to you as I can't do this and do not attempt to do it either on day to day tasks.

The issue is context. What you are asking requires AI to have a huge amount of context that it simply is not equipped to handle (at least not right now).

What AIs are really good at is to do small fragment of a task given enough clear requirements.

When I want AI to write a Handler in my Controller, I don't just ask it to "write a function to handle POST call for entity E."

I write the javadoc /* */ comment that defines the signature and explains a little about how the core process of this handling works. I can even copy/paste similar handler from another controller if I think that will help.

Ultimately, my brain already knows the input, output and key transformations that needs to happen in this function. I just write minimal amount (esp comments) and get AI to complete the rest.

So if I need to write a non-leaf feature, I will break it down to several leaf features and then pass it on to AI and if needed, manually assemble them.

I had to write 500LOC bash script to handle a software deployment. This is not the way to do it but I was forced by circumstances created by someone else. Anyways, if I had to write the whole thing by hand, it'd take multiple days as bash syntax is not forgiving and the stuff I needed to do in the script were quite complex/crazy (and stupid).

I think I wrote about 50+ lines of text describing the whole process, which you can think of as a requirement document.

With a few tries, I was able to get the whole script with near accuracy. My reading revealed some issues. Pointed them to AI. It fixed them. Tests revealed some other issues. Again, AI fixed them after pointing out. I was able to get the whole thing done in just an hour or so.