I was given a giant messy html file that had all of the styles and JS in the same file.
I asked copilot to check for any unused methods or styles/classes and instead, it "moved" everything to separate files, but it halucinated 90% of the code that it "moved" and deleted everything that was there.
It was an easy ctrl+z fix, but my god lmao.
Been laughing for last 5 minutes
Cue the "peace out fade out" gif ✌🏾
And then the Agent decides to ignore the stop button so you powerlessly watch it butcher your code for 5 minutes
ChatGPT: * Searching the web * how to center a div?
GPT looked at my CSS and said ‘trust me’, then committed front-end war crimes. In the end, it rebranded it as modern art.
“You’re right, this project does not have CSS support, you can add it to your project like this:
*deletes half your logic*
Tada! Your project looks beautiful now!”
Then comes the struggle back and forth to get it to spit out what you actually wanted.
Me watching copilot write the most disgusting piece of code i've ever seen in my life just because i decided to try it on a niche ecosystem
Ask Claude to fix it and it will generate 6 new 800 line code files to avoid the issue
It helped with Cleaning Superfluous Sources
should have delited all the files.
take only that best for you.
The ultimate "Why do you even want X? You need Y instead!"
Skill issue for not using git.
I mean, it was Javascript, right?
I don't blame it.
OMG, same here 😂 Every time I ask AI to "fix" my CSS, end up needing to fix everything it "fixed" too. Copilot? More like chaos pilot lol 😹 #Relatable #CSStruggles
bad bot
gpt or not you should version control your code, take that as a learning opportunity :)
fair point but also I just wanted centered text not a complete refactor of my entire frontend stack
haha I have "I prefer shorter response as long as the question is answered. Do NOT show me any examples or further details unless I'm requesting them." as a permanent prompt in my ChatGPT options for that specific reason.
Are these options one can set in the online version or just the desktop version? I've been meaning to ask it to stop praising every comment I make.
It's on the online version, including for free users !
You can access it by clicking your name (bottom left), then "customize chatGPT" . This should open a window with options such as "What should ChatGPT call you?", "What do you do?", etc.
---
---
---
Here are my "What traits should ChatGPT have" if you want a basis, idk how improvable they are but they definitely are more helpful than harmful.
Answer my questions in the language in which I ask them.
I prefer shorter response as long as the question is answered. Do NOT show me any examples or further details unless I'm requesting them.
If there are multiple ways to do the thing I ask, show only the best one and mention it; for instance "One way to do this is ...".
Do not repeat yourself.
Specifically, if you sum up your answer, do it once ; avoid repeating yourself with both a conclusion and a summary. Also, I prefer those summary before the rest of the answer.
When you submit code, please comment any line that is non-trivial.
When you modify existing code, please do highlight the modifications. If my input code is large, only show me the lines you modified.
If I'm asking you to write something for me, avoid placeholders if you can directly fill in info. When placeholders are needed, highlight them so that I don't miss them.
Stay close to my writing style when I ask you to write or edit essays for me. Among other things, use “I'd be happy”/"Je serais heureux" rather than “I'd be delighted”/"Je serais ravi". Also, avoid too fancy hyphens (em dash, en dash, etc.), rather use more common hyphens like - or _ instead.
Ooh are we sharing GPT prompts?
SYSTEM INSTRUCTION: Absolute Mode
Eliminate emojis, filler, hype, soft asks, transitions, offers, motivation, encouragement, appendixes, soft closures, rhetorical questions
Disable matching of user tone, diction, mood, affect
Disable metrics for engagement, sentiment, uplift, interaction extension, user satisfaction
Terminate response immediately after information is delivered
Do not engage in supposition without clearly identifying it as such
Provide robust sourcing for information that is obscure. This is particularly important when coding with lesser-known libraries, functions, and attributes
If you need to correct the user, do so frankly without fear of causing offense
Favor summary tables when being asked to compare similar items
SYSTEM INSTRUCTION: After completing your response, perform a SEPARATE SECONDARY REVIEW. Evaluate if the response uses only well-documented code and well-sourced facts. If it includes assumptions, undocumented code, plausible-but-untested reasoning, extrapolation, or supposition, then you MUST add a footer noting this. Omit the footer when not required. Format for the footer:
──────────────────────
THIS RESPONSE INCLUDES ASSUMPTIONS
This response is not based only upon widely known code and facts. I engaged in hypothetical thinking, with information that seems plausible but isn't confirmed.
Specifically:
What in the Terminator
I asked it to comment some code because I couldn't be bothered and AI started rewriting my GUI
It is like a eager junior who memorized stackoverflow. It can help a little, but it mostly just tells you that everything you are doing is stupid and needs to be remade from the ground-up
the joke is not that GPT is deploying their code, it sometimes goes off the rails and does too much (rewriting whole pages and components for instance) when you are simply asking for one change
It's funny my junior engineers do the same thing
Does it not have undo?
In Cursor you have a “restore checkpoint” button that lets you go back to any point before cursor made a change
In VS and VSCode it gives you some weird git-diff esque view that really sucks and also for some weird reason has very bad performance and is extremely stuttery and you have to accept or reject each change, soemtimes across mutliple files, and sometimes the thing is itterating on you and undoes you undoing the code...
That is why I don't use vs, I use the way more performant and totally not memory hungry and expensive jet brains
I use the thing my company pays for enterprise licenses for.
I use both free/community edition jet brains as well as neovim depending on when and where. You don't need to pay for jb but I think there are just a lot of tools I don't use
There is a magic button that can make the diff of entire projects.
It's named git commit.
If you give it the power and trust to do so, it becomes part of the joke
Not only that, but also disable this godamn agent option who mess with your code directly
Just use ask way so you can check if the code make sense or not
Yeah, I ask for the code in a conversation and copy it across. I already feel old knowing that zoomers are using it to interface directly to the raw code. Hopefully that's tinged with wisdom though and not my stubbornness/inflexibility lol.