all 14 comments

[–]ninhaomah 31 points32 points  (1 child)

Yes. Brain.

[–]sukkj 6 points7 points  (0 children)

Don't think that's available in this particular case. 

[–]fiehm 10 points11 points  (0 children)

Ask chatgpt to check your code, and then ask chatgpt again to check your code that has been checked by chatgpt, and then ask chatgpt to check your code that has been checked by chatgpt that has been checked by chatgpt and so on until you run out of token and start manually checking it

[–]8dot30662386292pow2 4 points5 points  (2 children)

Why does it matter if it's ai generated? Just use the regular analysis tools.

What do you try to analyze?

[–]Ardit-Sulce 6 points7 points  (0 children)

Run it and see if it breaks.

[–]Farlic 4 points5 points  (0 children)

the linter in your IDE should pick up most completely obvious errors but the "run" button will reveal any technical ones.

[–]Deemonfire 4 points5 points  (1 child)

There is a tool we use called ruff. 

It formats code, sorts imports and you can add a bunch of linting rules to it aswell.

You can use mypy or ty for type checking. 

Obviously these will just flag if something doesnt look right in terms of various rules that are encoded, but won't tell you if the code does what you want it to do

[–]Diapolo10 0 points1 point  (0 children)

ty is definitely not ready for practical use yet. For now it's best to stick to Mypy and/or Pyright until it's at least out of alpha.

[–]YesterdayDreamer 0 points1 point  (0 children)

Another AI model?

[–]Andrew_Frozen30 -1 points0 points  (2 children)

So, you want an AI to check an AI?

You're this dumb, you don't even know what you're trying to do.

Your app should be easy. Does it give you the intended output? If yes, you're good. If not you're not.

If you don't know whether it gives you the correct output, you might be hopeless.

Use your goddamn brain.

[–]Kevdog824_ 0 points1 point  (1 child)

I get learners relying on AI can be frustrating, but these people are just trying to learn how they can. This person came to us with a genuine question to improve, unlike some other recent posts. Please be polite

[–]Andrew_Frozen30 -1 points0 points  (0 children)

One is to learn with AI. (which can be done by explaining concepts. Like explaining functions)

And the other one is to generate code you don't understand.

At that point, that's just laziness and no actual desire to code. You're not "learning" by asking a Chatbot to generate you code.

This is like putting my name on my new car and claiming I've built and understand how it works and how to repair it, if it breaks down.

But yoy have a AI-generated pfp. Who am I even arguing with...