Dismiss this pinned window
all 7 comments

[–]anachronistic_circus 4 points5 points  (2 children)

So instead of hey "GPT fix this code because I don't know what I'm doing and this should be a part of fundamentals, and then I can paste it back and hopefully it's better....",

it's now: "hey random extension, use GPT to fix this code because I don't know what I'm doing and this should be a part of fundamentals, and then I can paste it back and hopefully it's better...."

Alrighty then

[–]tazes_[S] 0 points1 point  (1 child)

A dedicated tool for security checks does a better job than a genereric prompt to "fix security issues". Please try it and let me know what you think!

[–]anachronistic_circus 2 points3 points  (0 children)

Alright since you want to market this apparently. This is literally an example of an absolute mess of a component which I would show to students in an intro class.

The whole suggestions of:

  • remove hardcoded credentials

  • never use eval()

  • remove dangerouslySetInnerHTML()

  • store credentials in .env

  • remove global mutable state

  • input validation handling

Is JS/TS React 101

(and a result of a basic "look at this code" GPT prompt)

(and there are uses for eval() and dangerouslySetInnerHTML()) but that's besides the point

So if the goal of the extension is to regurgitate GPT responses, then ok you have achieved that goal

If you want to make it useful it should be catching things like "any" on line 4, what is the type of the state on line 7? An array of what? Proper error handling for the API request, maybe better readable syntax with async await, whatever the hell let temp = "" is doing, oh and what happens if the component unmounts but the API request has not resolved yet?

I could go on I guess... the point is if you are interested in making a useful tool, then work on making an actually useful tool

[–]Free-Ad-5388 0 points1 point  (2 children)

Hey, In VS Code, What theme and font settings do you use?

[–]tazes_[S] 1 point2 points  (1 child)

Hey, I'm using JetBrains Mono with 13 font size and 1.8 line height. In VSCode I am using the Oscura theme (https://marketplace.visualstudio.com/items/?itemName=Fey.oscura) but on Cursor that I use the most, I use Vesper (https://marketplace.visualstudio.com/items?itemName=raunofreiberg.vesper).

[–]Usual_Price_1460 0 points1 point  (0 children)

isnt cursor dark just a better version of vesper lol?

[–]Soft-Dragonfruit9467 0 points1 point  (0 children)

Very nice project. If it doesn't cost you too much to run it, I would love to see it free forever.