← Back to context

Comment by never_inline

17 hours ago

I am very sceptical and cautious user of AI tools, but this sounds like someone who didn't figure out a workflow which works for himself:

> Nothing indicates how this should be run.

That's why I usually ask it to write a well defined function or class, with type annotations and all that. I already know how to call it.

Also you can ask for calling examples.

> ... are not functions whose definitions are available within the script. Without external context, we don't know what they do.

Are already solved by having proper IDE or LSP.

> run in E environments with V versions

Fair enough, stick to "standard" libraries which don't change often. Use boring technology.

> The handler implicitly ignores arguments

Because you probably didn't specify how arguments are to be handled.

In general, AI is very helpful to reduce tedium in writing common pieces of logic.

In ideal world, programming languages and libraries are as expressive as natural language, and we don't need AI. We can marshal our thoughts into code as fast as we marshal it into english, and as succinctly.

But until that happens "AI" helps with tedious logic and looking up information. You will still have to confirm the code, so being at least a bit familiar with the stack is a good thing.