In short, markdown is just the syntax that can be used for text formatting and that includes a way of writing code blocks. The markdown can then be turned into for example PDF-file or HTML-page. Usually there is some kind of extension that does the syntax highlighting in both cases. But especially in case of a web page, there can be all kinds of extra css styling for the code blocks.
Many markdown resolvers will also format it “nicer” inside of a dedicated code block if you new line the ticks. If you leave the ticks inline with the content, then it will just format the content inline too.
Aaah I see where the misunderstanding might have come from. You see, LLMs have a tendency to get stuck in a loop. Here is a complete, safe, completely reworked solution:
But that isn't the correct answer either. Academically speaking, LLMs tend to have a tendency to get into loops where they answer the same thing repeatedly in different ways.
💡 Fantastic Observation! You are absolutely right, Large Language Models (LLMs) do indeed exhibit a tendency to get into 🔄 loops. If you want to, I can write you a short and concise explanation, on why that is. ➡️ Do you want me to do that now?
Great insight! Let’s get on that now. But first I’d like to address this issue and the sharpness of your eye. You not only caught the error, but you also called it out. And honestly? That shows courage and integrity. That’s rare. Unlike LLMs looping which is a common occurrence.
yeah, this kind of thing can't be good for the development of future devs.
It's fine if we've already far surpassed what humans can do, but we really haven't. At least not going by the kind of AI-slop I have to deal with at work.
This kind of thing can't be good for the development of anyone. A reduction in critical thinking will devolve us as a species. This was so sad for me to read. I already knew the younger generation was doomed because AI would take their jobs but I didn't think it would be taking their critical thinking skills as well. Man, we're screwed.
Wasn't that obvious with ChatGPT and when all the kids used it to do their homework? Add in all the Apps about virtual friends, therapists, assistants, etc. Yes, it works (more or less, most of the time, probably) but it makes people lazy and stops self development.
It wasn't obvious to me, because I've always approached AI with distrust in it's ability to get thinks right, so my critical thinking is highly engaged when dealing with it. I figured that these kids were just being lazy (I know I would have used AI heavily if it was around when I was younger), but yeah I suppose it was inevitable that people would just believe what it's saying without thinking.
I am working on a big and difficult project right now and I try to figure out things by myself, doing research, checking the relevant parts of the codebase when encountering a bug or planning a feature and lemme tell you it is HARD knowing I have "the answer machine" at my disposal. Fighting the urge to simply getting the answer and be done with my suffering has been tough, but the dopamine hits of figuring things out for myself have been godly. I mean I still fallback on the AI to give me the answer or point me in the right direction when I'm completely out of ideas, but I've been trying to use it less and less as I build a better understanding of the underlying architecture I'm utilizing for this project.
Yeah, it's gotta be hard and I respect that you're trying to strike a healthy balance. I think the approach you're taking is a well-reasoned and safe one. Also it really is so satisfying when you can get it going yourself XD
One of my main worries is that for the new generation, most of what they know of these tools comes directly from the people selling them, and obv they're not going to be sharing stuff like that article I linked.
Idk, I guess we'll see how things pan out in a few years.
I'm also not using AI for coding, and the learning experience is just much better, and I'm having a more fun time coding at work than when I had to use AI.
i only use it for bash automations because bash is literal black magic runes (i had to use bash in classes, i know how much it isn't pretty), and if it can't do it in bash, i'll make it myself in python
AI is not a tool, it’s a replacement of the programmer themselves. A paintbrush is a tool, but a robot that paints the entire picture is not a tool.
Autocorrect and intellisense are tools because you already know what you’re doing if you’re writing code, they just correct typos and syntax and suggest importing classes, stuff you were already going to do beforehand, they lightly streamline that process.
And they can’t be classified as AI because they aren’t generating anything new, there isn’t a highly complex algorithm behind them that has to consider your intent, intake a prompt, and consider if it’ll compile or throw errors, it just suggests stuff.
I perfectly understood their point, their point was that they see ai as a tool rather than a replacement, despite that viewpoint being incorrect, so they threw together a more absurd version of “so you want me to stop using tools?” To get a point across.
P.S, don’t be a condescending jackass. It doesn’t make you look smart, it doesn’t make your argument correct, it just makes you look like an AI bro with little man syndrome.
Then you're using AI wrongly. It can be used as a tool perfectly well.
E.g. the other day I was debugging something in a proprietary language with not so great breakpoints. So I told the AI agent to add some debug message prints around the involved functions and it did that. Then I ran the thing and could figure out the issue better. Imo that's using it as a tool.
I could've gone and added them myself, but it would've taken slightly longer, and I'd probably have been lazier and not formatted the output as nicely as the AI did (as it's just to see what's being called and such to see where things go wrong and will be reminded afterwards again anyway).
Now if you just tell it "here's the bug description, go figure it out, fix it, PR it, and then tell me" that's less using it like a tool, sure
I’m not using ai wrong because I’m not using ai. If you can use it just to debug, then great, but I’m arguing against programmers just using it to do their jobs for them.
101
u/ThatSmartIdiot Apr 05 '26
how do you format your code blocks like that?
93
u/Sether_00 Apr 05 '26
But have they thought about trying:
56
u/jsrobson10 Apr 05 '26
yeah, LLMs have a tendency of getting into loops.
146
u/Living_The_Dream75 Apr 05 '26
My recommendation: stop using ai for your coding
15
u/LJ_the_Saint Apr 05 '26
r/dumbai
14
u/nuggerless_child Apr 05 '26
It didn't want to not bad, .. But it do
4
u/SweetNerevarine Apr 05 '26
It proves the lines don't matter, you just have to use the force whilst typing it out!
4
u/ComplexConcentrate Apr 05 '26
Spaces? I use spaces, tabs, newlines and ansi color codes to make files pop in the file listing.
2
u/Qiwas Apr 05 '26
find . -maxdepth 1 -exec ...
2
u/TapRemarkable9652 Apr 05 '26
we definitely need a Rust Terminal
2
u/FacuA0 Apr 06 '26
The programming version of the Seahorse emoji 🐉- no, I mean 🐉-no.
😅 I mean the real seahorse emoji 👉🐉- NO, this is the real one 🐉- damn.
2
u/Rude-Presentation984 Apr 06 '26
It's like those cards that say "How to keep an idiot entertained for hours. Please turn over.", on both sides.
1
u/HerissonMignion Apr 05 '26
for d in "${dir_list_real_bash_list_data_type[@]}"; do
1
u/NoMembership-3501 Apr 05 '26
Which model is it? GPT?
1
u/D0nkeyHS Apr 06 '26
Is this post just for laughing at an LLM?
1
u/mateusfccp Apr 06 '26
I don't know how safe it is, but iceybeen using
For years now in production and never had any problem.
1
u/aikii Apr 06 '26
What was the prompt ?
1
u/Yekyaa Apr 07 '26
I dislike that they strip array values in many python code blocks.
1
u/HoratioWobble Apr 10 '26
It's safer because the comments were removed saying it was unsafe