https://coddytech.net/blog/javascript-vs-python-which-to-learn
JavaScript vs Python in 2026: Which Language Should You Actually Learn First?
Stuck choosing between JavaScript and Python? This honest 2026 comparison helps you pick the right first programming language based on your actual goals - not hype.
JavaScript vs Python in 2026: Which Language Should You Actually Learn First?
Stuck choosing between JavaScript and Python? This honest 2026 comparison helps you pick the right first programming language based on your actual goals - not hype.
https://coddytech.net/blog/python-learning-roadmap
A clear, step-by-step Python learning path for beginners β syntax, libraries, projects, and how to stay consistent in 2026.
A clear, step-by-step Python learning path for beginners β syntax, libraries, projects, and how to stay consistent in 2026.
Coddytech
Python Learning Roadmap 2026 β Beginner to Pro Path
A realistic step-by-step Python roadmap for 2026: syntax, libraries, projects, and tracks for web, data, AI, and automation.
https://coddytech.net/blog/how-to-use-claude-ai-for-learning-programming
Lena was stuck learning Python until she discovered how to use Claude AI as a personal tutor. Learn the exact prompts and workflows to learn coding faster.
Lena was stuck learning Python until she discovered how to use Claude AI as a personal tutor. Learn the exact prompts and workflows to learn coding faster.
Coddy
How to Use Claude AI for Learning Programming (2026 Guide)
A beginner's guide on how to use Claude AI for learning programming. Get practical prompts, workflows, and expert tips to build projects faster. Start today!
π I've been quiet for almost a year.
No excuse. I got busy with client work, told myself I'd post "next week," and next week turned into eleven months. If you unsubscribe today, I get it.
But here's what changed.
I stopped trying to make this a news channel. There are a hundred places to get news. What I actually have after 10 years of writing code - and what almost nobody gives beginners - is the small practical stuff. The snippet that saves an hour. The prompt that finally makes a concept click. The tool that's worth installing and the one that isn't.
So from today, this channel is one thing:
π One practical lesson, every weekday.
Mon - a code snippet you'll actually reuse
Tue - an AI prompt for learning and debugging
Wed - one concept, explained properly
Thu - a tool or repo worth your time
Fri - a poll or an open question (at least I'll try) :)
Same time every day. No 40-minute tutorials, no hype, no "10 AI tools that will replace developers."
Give me two weeks. If it's not useful by then, unsubscribe, and you've lost nothing.
React π₯ if you're staying - I want to see who's still here.
No excuse. I got busy with client work, told myself I'd post "next week," and next week turned into eleven months. If you unsubscribe today, I get it.
But here's what changed.
I stopped trying to make this a news channel. There are a hundred places to get news. What I actually have after 10 years of writing code - and what almost nobody gives beginners - is the small practical stuff. The snippet that saves an hour. The prompt that finally makes a concept click. The tool that's worth installing and the one that isn't.
So from today, this channel is one thing:
π One practical lesson, every weekday.
Mon - a code snippet you'll actually reuse
Tue - an AI prompt for learning and debugging
Wed - one concept, explained properly
Thu - a tool or repo worth your time
Fri - a poll or an open question (at least I'll try) :)
Same time every day. No 40-minute tutorials, no hype, no "10 AI tools that will replace developers."
Give me two weeks. If it's not useful by then, unsubscribe, and you've lost nothing.
React π₯ if you're staying - I want to see who's still here.
I'm learning recursion. Don't explain the theory yet.
1. Show me one real problem from web development where recursion is genuinely the right tool, and a loop would be painful.
2. Write the solution in JavaScript.
3. Now trace the execution line by line, showing me the call stack at every step - what's in memory, what returns what.
4. Then break the code by changing one thing, and ask me what happens. Wait for my answer before telling me.
Three things make this work:
βͺοΈ "Don't explain the theory yet" - kills the generic textbook answer
βͺοΈ "Trace the call stack" - recursion only clicks when you see the stack
βͺοΈ "Wait for my answer" - turns the AI from a lecturer into a tutor
That last line is the whole trick. Add it to any learning prompt and the conversation changes completely. Try it and tell me in the comments what problem it gave you.
#prompt @codingforweb
Please open Telegram to view this post
VIEW IN TELEGRAM
π JavaScript or Python? Wrong question.
This is the #1 thing beginners ask me, and almost every answer online is bad - because it compares the languages instead of asking what you want.
Here's the honest version.
πΉ Pick JavaScript if you want to see things.
You want a website, a button that does something, an app people can open in a browser. JS is the only language that runs natively in the browser - that isn't an opinion, it's just how the web works. Feedback is instant, and for a beginner, instant feedback is worth more than clean syntax.
πΉ Pick Python if you want to process things.
Data, automation, scripts, AI, scraping, anything where the result is a number or a file rather than a screen. The syntax stays out of your way, which matters a lot in your first three months.
What actually decides it:
βͺοΈ Want a job in web dev? β JavaScript. Non-negotiable.
βͺοΈ Want data / AI / automation? β Python.
βͺοΈ Want to automate boring parts of your current job? β Python.
βͺοΈ Genuinely no idea? β JavaScript. You'll see results faster, and seeing results is what keeps beginners from quitting.
And the part nobody says out loud: after the first one, the second takes about three weeks. You're not choosing a career. You're choosing which syntax you'll be confused by first.
The real risk isn't picking wrong. It's spending four months picking. Full comparison, with the job-market side and where AI fits in π
https://coddytech.net/blog/javascript-vs-python-which-to-learn
#learn @codingforweb
This is the #1 thing beginners ask me, and almost every answer online is bad - because it compares the languages instead of asking what you want.
Here's the honest version.
πΉ Pick JavaScript if you want to see things.
You want a website, a button that does something, an app people can open in a browser. JS is the only language that runs natively in the browser - that isn't an opinion, it's just how the web works. Feedback is instant, and for a beginner, instant feedback is worth more than clean syntax.
πΉ Pick Python if you want to process things.
Data, automation, scripts, AI, scraping, anything where the result is a number or a file rather than a screen. The syntax stays out of your way, which matters a lot in your first three months.
What actually decides it:
βͺοΈ Want a job in web dev? β JavaScript. Non-negotiable.
βͺοΈ Want data / AI / automation? β Python.
βͺοΈ Want to automate boring parts of your current job? β Python.
βͺοΈ Genuinely no idea? β JavaScript. You'll see results faster, and seeing results is what keeps beginners from quitting.
And the part nobody says out loud: after the first one, the second takes about three weeks. You're not choosing a career. You're choosing which syntax you'll be confused by first.
The real risk isn't picking wrong. It's spending four months picking. Full comparison, with the job-market side and where AI fits in π
https://coddytech.net/blog/javascript-vs-python-which-to-learn
#learn @codingforweb
π1
π 5 VS Code extensions I still use after 10 years
Not "top 20 extensions." Twenty extensions make your editor slow and your brain tired. These five earn their place.
1οΈβ£ Error Lens
Shows the error inline, on the line, in red - instead of hiding it in the Problems panel. Sounds trivial. Cuts your debugging time more than anything else on this list. Install this one first.
2οΈβ£ GitLens
Hover any line and see who wrote it, when, and in which commit. When you join a real codebase, this is the difference between "why is this here?" and knowing the answer in two seconds.
3οΈβ£ Prettier + ESLint
Prettier formats, ESLint catches mistakes. Set "format on save" and never think about spacing again. Together they end 90% of the arguments a junior has with their own code.
4οΈβ£ Path Intellisense
Autocompletes file paths in imports. Small. You'll notice it every single day.
5οΈβ£ Quokka.js
Runs JavaScript as you type and shows the value of every variable next to it. For learning, this is the closest thing to seeing the code think.
β What I don't install anymore:
theme packs, icon packs, bracket colorizers (built into VS Code now), and any extension that adds a sidebar icon I'll never click. Every extension costs startup time and attention. Five good ones beat twenty.
What's the one extension you'd defend? π
#tools @codingforweb
Not "top 20 extensions." Twenty extensions make your editor slow and your brain tired. These five earn their place.
1οΈβ£ Error Lens
Shows the error inline, on the line, in red - instead of hiding it in the Problems panel. Sounds trivial. Cuts your debugging time more than anything else on this list. Install this one first.
2οΈβ£ GitLens
Hover any line and see who wrote it, when, and in which commit. When you join a real codebase, this is the difference between "why is this here?" and knowing the answer in two seconds.
3οΈβ£ Prettier + ESLint
Prettier formats, ESLint catches mistakes. Set "format on save" and never think about spacing again. Together they end 90% of the arguments a junior has with their own code.
4οΈβ£ Path Intellisense
Autocompletes file paths in imports. Small. You'll notice it every single day.
5οΈβ£ Quokka.js
Runs JavaScript as you type and shows the value of every variable next to it. For learning, this is the closest thing to seeing the code think.
β What I don't install anymore:
theme packs, icon packs, bracket colorizers (built into VS Code now), and any extension that adds a sidebar icon I'll never click. Every extension costs startup time and attention. Five good ones beat twenty.
What's the one extension you'd defend? π
#tools @codingforweb
How many extensions do you use in VS Code?
Anonymous Poll
17%
Less than 5
67%
5 - 10
0%
I am Extension's God (more than 10)
17%
I don't use them at all
π 84% of developers use AI. 3% trust it.
Stack Overflow just published the 2026 Developer Survey - 49,000+ developers, 177 countries. The numbers are the strangest I've seen in years.
βͺοΈ 84% use AI tools in their workflow
βͺοΈ 29% trust the accuracy of what it produces - down from 40% in 2024
βͺοΈ 46% actively distrust it
βͺοΈ 3% say they "highly trust" AI-generated code
βͺοΈ Among experienced developers: 2.6%
Read that again. Adoption went up. Trust went down. At the same time. That's not a contradiction - it's what expertise looks like. The more you use
a tool, the better you know where it breaks.
And here's the number that explains everything:
πΈ 66% say their biggest frustration is code that is "almost right"
πΈ 45% say debugging AI output takes longer than writing it themselves
Not wrong code. Almost right code. Wrong code fails loudly and you fix it in a minute. Almost-right code passes review, ships, and breaks in production three weeks later.
So the skill that matters in 2026 isn't prompting. It's the ability to look at working code and know it's wrong. That skill only comes from writing code yourself first. There's no shortcut, and the survey is 49,000 developers agreeing with that.
π Source: survey.stackoverflow.co
Forward this to someone who thinks learning the basics is optional now.
#learn @codingforweb
Stack Overflow just published the 2026 Developer Survey - 49,000+ developers, 177 countries. The numbers are the strangest I've seen in years.
βͺοΈ 84% use AI tools in their workflow
βͺοΈ 29% trust the accuracy of what it produces - down from 40% in 2024
βͺοΈ 46% actively distrust it
βͺοΈ 3% say they "highly trust" AI-generated code
βͺοΈ Among experienced developers: 2.6%
Read that again. Adoption went up. Trust went down. At the same time. That's not a contradiction - it's what expertise looks like. The more you use
a tool, the better you know where it breaks.
And here's the number that explains everything:
πΈ 66% say their biggest frustration is code that is "almost right"
πΈ 45% say debugging AI output takes longer than writing it themselves
Not wrong code. Almost right code. Wrong code fails loudly and you fix it in a minute. Almost-right code passes review, ships, and breaks in production three weeks later.
So the skill that matters in 2026 isn't prompting. It's the ability to look at working code and know it's wrong. That skill only comes from writing code yourself first. There's no shortcut, and the survey is 49,000 developers agreeing with that.
π Source: survey.stackoverflow.co
Forward this to someone who thinks learning the basics is optional now.
#learn @codingforweb
π€― Developers felt 20% faster with AI. They were 19% slower.
This is my favourite study of the last two years, and almost nobody in my feed has seen it.
METR ran a proper randomized controlled trial. Not a survey - an actual RCT:
βͺοΈ 16 experienced open-source developers
βͺοΈ Real repos: 22,000+ stars, 1M+ lines of code
βͺοΈ 246 real issues - bugs, features, refactors
βͺοΈ Each task randomly assigned: AI allowed or AI not allowed
βͺοΈ Tools: Cursor Pro with Claude Sonnet
Before starting, developers predicted AI would make them 24% faster.
After finishing, they believed AI had made them 20% faster.
Measured result: they took 19% longer.
A ~40-point gap between what they felt and what actually happened. The researchers called it "a substantial and persistent gap between perceived and actual performance."
Why it happens - and this is the useful part:
AI removes the feeling of effort, not the effort. You stop staring at a blank file, so the work feels lighter. But you replace writing with reading, reviewing, correcting, re-prompting. That's slower, and it doesn't feel slower, because reading feels easier than writing.
β οΈ This is not an anti-AI post.
The same study notes: these were experts in codebases they knew by heart - the exact scenario where AI helps least. Elsewhere, the picture flips: teams that use AI agents properly cut PR turnaround from 9.6 days to 2.4 days.
The lesson isn't "don't use AI." It's this:
π Your sense of your own speed is not evidence. Time yourself once. Do it this week on one real task. The result will surprise you in one direction or the other - and either way you'll know something about your workflow that 99% of developers only guess at.
π Source: metr.org - "Measuring the Impact of Early-2025 AI on Experienced Open-Source Developer Productivity"
Forward this to the person on your team who's most sure AI made them faster.
#learn @codingforweb
This is my favourite study of the last two years, and almost nobody in my feed has seen it.
METR ran a proper randomized controlled trial. Not a survey - an actual RCT:
βͺοΈ 16 experienced open-source developers
βͺοΈ Real repos: 22,000+ stars, 1M+ lines of code
βͺοΈ 246 real issues - bugs, features, refactors
βͺοΈ Each task randomly assigned: AI allowed or AI not allowed
βͺοΈ Tools: Cursor Pro with Claude Sonnet
Before starting, developers predicted AI would make them 24% faster.
After finishing, they believed AI had made them 20% faster.
Measured result: they took 19% longer.
A ~40-point gap between what they felt and what actually happened. The researchers called it "a substantial and persistent gap between perceived and actual performance."
Why it happens - and this is the useful part:
AI removes the feeling of effort, not the effort. You stop staring at a blank file, so the work feels lighter. But you replace writing with reading, reviewing, correcting, re-prompting. That's slower, and it doesn't feel slower, because reading feels easier than writing.
β οΈ This is not an anti-AI post.
The same study notes: these were experts in codebases they knew by heart - the exact scenario where AI helps least. Elsewhere, the picture flips: teams that use AI agents properly cut PR turnaround from 9.6 days to 2.4 days.
The lesson isn't "don't use AI." It's this:
π Your sense of your own speed is not evidence. Time yourself once. Do it this week on one real task. The result will surprise you in one direction or the other - and either way you'll know something about your workflow that 99% of developers only guess at.
π Source: metr.org - "Measuring the Impact of Early-2025 AI on Experienced Open-Source Developer Productivity"
Forward this to the person on your team who's most sure AI made them faster.
#learn @codingforweb
π 45% of AI-generated code contains a security vulnerability.
Veracode tested this properly: 80 curated coding tasks, run across 100+ large language models. Not vibes β a benchmark.
Results:
βͺοΈ 45% of generated code introduced an OWASP Top 10 vulnerability
βͺοΈ Java: 70%+ failure rate - the worst by far
βͺοΈ Python, C#, JavaScript: 38 - 45%
βͺοΈ Cross-site scripting (CWE - 80): 86% failure rate
βͺοΈ Log injection (CWE - 117): 88% failure rate
And the line that should worry you most:
"Despite advances in LLMs' ability to generate syntactically correct code, security performance has not kept up, remaining unchanged over time." Models got dramatically better at writing code that works. They did not get better at writing code that's safe. Those two things improved on completely different curves, and almost nobody noticed. Because here's the thing about a security bug: it passes your tests. It passes code review. It works perfectly - right up until it doesn't.
π Save this. Six things to check in every piece of AI code you ship:
1οΈβ£ Any user input rendered to a page β is it escaped? (XSS)
2οΈβ£ Any user input reaching the database β parameterized query, never string concatenation (SQL injection)
3οΈβ£ Any user input written to logs β stripped of newlines (log injection)
4οΈβ£ Any file path built from user input β validated against traversal (../)
5οΈβ£ Any secret, key, or token β in env vars, never in the code it just wrote
6οΈβ£ Any dependency it imported β does that package actually exist? (AI invents package names, and attackers register them)
Number 6 is the one nobody checks. It has a name now: slopsquatting.
π Source: Veracode 2025 GenAI Code Security Report
Please send this to the person on your team who ships AI code the fastest.
#tools @codingforweb
Veracode tested this properly: 80 curated coding tasks, run across 100+ large language models. Not vibes β a benchmark.
Results:
βͺοΈ 45% of generated code introduced an OWASP Top 10 vulnerability
βͺοΈ Java: 70%+ failure rate - the worst by far
βͺοΈ Python, C#, JavaScript: 38 - 45%
βͺοΈ Cross-site scripting (CWE - 80): 86% failure rate
βͺοΈ Log injection (CWE - 117): 88% failure rate
And the line that should worry you most:
"Despite advances in LLMs' ability to generate syntactically correct code, security performance has not kept up, remaining unchanged over time." Models got dramatically better at writing code that works. They did not get better at writing code that's safe. Those two things improved on completely different curves, and almost nobody noticed. Because here's the thing about a security bug: it passes your tests. It passes code review. It works perfectly - right up until it doesn't.
π Save this. Six things to check in every piece of AI code you ship:
1οΈβ£ Any user input rendered to a page β is it escaped? (XSS)
2οΈβ£ Any user input reaching the database β parameterized query, never string concatenation (SQL injection)
3οΈβ£ Any user input written to logs β stripped of newlines (log injection)
4οΈβ£ Any file path built from user input β validated against traversal (../)
5οΈβ£ Any secret, key, or token β in env vars, never in the code it just wrote
6οΈβ£ Any dependency it imported β does that package actually exist? (AI invents package names, and attackers register them)
Number 6 is the one nobody checks. It has a name now: slopsquatting.
π Source: Veracode 2025 GenAI Code Security Report
Please send this to the person on your team who ships AI code the fastest.
#tools @codingforweb
β‘οΈ Only 31% of developers use AI agents. That gap is about to decide a lot.
Buried in the Stack Overflow 2026 survey is a split almost nobody is talking about - and it's much bigger than the "do you use AI" question. Autocomplete is universal now. 84% use it. It's table stakes.
Agents - tools that run tasks, edit multiple files, execute commands - are not:
βͺοΈ 31% of developers use agents
βͺοΈ 38% have no plans to start
βͺοΈ 69% of agent users report increased productivity
βͺοΈ PR turnaround among them: 9.6 days β 2.4 days
That last number is a 4x change in how fast work moves through a team. Not a tweak. A different operating speed.
Also from the same survey, on tooling:
βͺοΈ VS Code: 75.9%
βͺοΈ Cursor: 17.9% - the fastest first-year debut the survey has ever recorded
βͺοΈ Claude Code: 9.7%
The pattern is clear: developers aren't replacing their editor. They're adding an agent next to it. Here's why this matters more than the productivity number. When 69% of one group ships four times faster, that group isn't just more productive. Within a year, it's the group that sets what "normal output" means - for teams, for hiring, for what a job posting expects you to know. The gap isn't between people who use AI and people who don't. That question is settled. It's between people who let AI complete a line and people who let it complete a task.
π― Do this week:
Take one boring task you've been avoiding - a test suite nobody wrote, a migration, a refactor across five files. Give it to an agent end-to-end. Don't help it. Watch where it fails.
You'll learn more in one afternoon than from fifty tutorials, and you'll know exactly which half of that 31/69 split you belong in.
π Source: Stack Overflow Developer Survey 2026
Forward to someone still using AI only for autocomplete.
#tools @codingforweb
Buried in the Stack Overflow 2026 survey is a split almost nobody is talking about - and it's much bigger than the "do you use AI" question. Autocomplete is universal now. 84% use it. It's table stakes.
Agents - tools that run tasks, edit multiple files, execute commands - are not:
βͺοΈ 31% of developers use agents
βͺοΈ 38% have no plans to start
βͺοΈ 69% of agent users report increased productivity
βͺοΈ PR turnaround among them: 9.6 days β 2.4 days
That last number is a 4x change in how fast work moves through a team. Not a tweak. A different operating speed.
Also from the same survey, on tooling:
βͺοΈ VS Code: 75.9%
βͺοΈ Cursor: 17.9% - the fastest first-year debut the survey has ever recorded
βͺοΈ Claude Code: 9.7%
The pattern is clear: developers aren't replacing their editor. They're adding an agent next to it. Here's why this matters more than the productivity number. When 69% of one group ships four times faster, that group isn't just more productive. Within a year, it's the group that sets what "normal output" means - for teams, for hiring, for what a job posting expects you to know. The gap isn't between people who use AI and people who don't. That question is settled. It's between people who let AI complete a line and people who let it complete a task.
π― Do this week:
Take one boring task you've been avoiding - a test suite nobody wrote, a migration, a refactor across five files. Give it to an agent end-to-end. Don't help it. Watch where it fails.
You'll learn more in one afternoon than from fifty tutorials, and you'll know exactly which half of that 31/69 split you belong in.
π Source: Stack Overflow Developer Survey 2026
Forward to someone still using AI only for autocomplete.
#tools @codingforweb
This media is not supported in your browser
VIEW IN TELEGRAM
π― After 13 years of writing code, here's the only skill I'd optimise for now...
Every week someone asks me the same question: what's the point of learning to code if AI writes it? I used to give a long answer. I'll share a short one, and the 2026 data supports every part of it.
Look at what we know:
βͺοΈ 84% of developers use AI - but only 3% highly trust its output
βͺοΈ 66% say their #1 frustration is code that's "almost right"
βͺοΈ 45% say debugging AI output takes longer than writing it themselves
βͺοΈ 45% of AI-generated code ships with a security vulnerability
βͺοΈ In a controlled trial, experts felt 20% faster and were 19% slower
Every single one of those numbers points to the same place. The bottleneck is no longer writing code. It's judging code. Producing a function is now free. Knowing whether that function is correct, safe, maintainable, and actually solving the right problem - that is the entire job now. It's what 97% of developers don't trust AI to do, and it's what nobody can outsource. So if I were starting today, I'd optimise for one thing:
π Read more code than you write.
Concretely, and this costs nothing:
1οΈβ£ Open a repo you use and read one file properly. Not skim - read it until you could explain every line to someone else.
2οΈβ£ Every time AI gives you code that works, ask it: "what's wrong with this?"
Then verify its answer yourself. It will be wrong sometimes. Catching that is the skill.
3οΈβ£ Break working code on purpose. Change one thing, predict the failure, check if you were right. Being right consistently is what expertise actually is.
4οΈβ£ Review a pull request in an open-source project. Badly, at first. Do it twenty times.
None of that is glamorous, none of it makes a good screenshot, and all of it compounds. The developers who'll be valuable in 2030 aren't the ones who prompt best. They're the ones who can look at code that runs perfectly and say, "This is wrong, and here's why." That was always the job. AI just deleted everything else.
π¬ What do you think - is judgement really the bottleneck, or am I wrong here?
Forward this to someone who's wondering if it's still worth learning.
#learn @codingforweb
Every week someone asks me the same question: what's the point of learning to code if AI writes it? I used to give a long answer. I'll share a short one, and the 2026 data supports every part of it.
Look at what we know:
βͺοΈ 84% of developers use AI - but only 3% highly trust its output
βͺοΈ 66% say their #1 frustration is code that's "almost right"
βͺοΈ 45% say debugging AI output takes longer than writing it themselves
βͺοΈ 45% of AI-generated code ships with a security vulnerability
βͺοΈ In a controlled trial, experts felt 20% faster and were 19% slower
Every single one of those numbers points to the same place. The bottleneck is no longer writing code. It's judging code. Producing a function is now free. Knowing whether that function is correct, safe, maintainable, and actually solving the right problem - that is the entire job now. It's what 97% of developers don't trust AI to do, and it's what nobody can outsource. So if I were starting today, I'd optimise for one thing:
π Read more code than you write.
Concretely, and this costs nothing:
1οΈβ£ Open a repo you use and read one file properly. Not skim - read it until you could explain every line to someone else.
2οΈβ£ Every time AI gives you code that works, ask it: "what's wrong with this?"
Then verify its answer yourself. It will be wrong sometimes. Catching that is the skill.
3οΈβ£ Break working code on purpose. Change one thing, predict the failure, check if you were right. Being right consistently is what expertise actually is.
4οΈβ£ Review a pull request in an open-source project. Badly, at first. Do it twenty times.
None of that is glamorous, none of it makes a good screenshot, and all of it compounds. The developers who'll be valuable in 2030 aren't the ones who prompt best. They're the ones who can look at code that runs perfectly and say, "This is wrong, and here's why." That was always the job. AI just deleted everything else.
π¬ What do you think - is judgement really the bottleneck, or am I wrong here?
Forward this to someone who's wondering if it's still worth learning.
#learn @codingforweb
π1
This media is not supported in your browser
VIEW IN TELEGRAM
π 45% of AI-generated code contains a security vulnerability.
Veracode tested this properly: 80 curated coding tasks, run across 100+ large language models. Not vibes β a benchmark.
Results:
βͺοΈ 45% of generated code introduced an OWASP Top 10 vulnerability
βͺοΈ Java: 70%+ failure rate - the worst by far
βͺοΈ Python, C#, JavaScript: 38 - 45%
βͺοΈ Cross-site scripting (CWE - 80): 86% failure rate
βͺοΈ Log injection (CWE - 117): 88% failure rate
And the line that should worry you most:
"Despite advances in LLMs' ability to generate syntactically correct code, security performance has not kept up, remaining unchanged over time." Models got dramatically better at writing code that works. They did not get better at writing code that's safe. Those two things improved on completely different curves, and almost nobody noticed. Because here's the thing about a security bug: it passes your tests. It passes code review. It works perfectly - right up until it doesn't.
π Save this. Six things to check in every piece of AI code you ship:
1οΈβ£ Any user input rendered to a page β is it escaped? (XSS)
2οΈβ£ Any user input reaching the database β parameterized query, never string concatenation (SQL injection)
3οΈβ£ Any user input written to logs β stripped of newlines (log injection)
4οΈβ£ Any file path built from user input β validated against traversal (../)
5οΈβ£ Any secret, key, or token β in env vars, never in the code it just wrote
6οΈβ£ Any dependency it imported β does that package actually exist? (AI invents package names, and attackers register them)
Number 6 is the one nobody checks. It has a name now: slopsquatting.
π Source: Veracode 2025 GenAI Code Security Report
Please send this to the person on your team who ships AI code the fastest.
#tools @codingforweb
Veracode tested this properly: 80 curated coding tasks, run across 100+ large language models. Not vibes β a benchmark.
Results:
βͺοΈ 45% of generated code introduced an OWASP Top 10 vulnerability
βͺοΈ Java: 70%+ failure rate - the worst by far
βͺοΈ Python, C#, JavaScript: 38 - 45%
βͺοΈ Cross-site scripting (CWE - 80): 86% failure rate
βͺοΈ Log injection (CWE - 117): 88% failure rate
And the line that should worry you most:
"Despite advances in LLMs' ability to generate syntactically correct code, security performance has not kept up, remaining unchanged over time." Models got dramatically better at writing code that works. They did not get better at writing code that's safe. Those two things improved on completely different curves, and almost nobody noticed. Because here's the thing about a security bug: it passes your tests. It passes code review. It works perfectly - right up until it doesn't.
π Save this. Six things to check in every piece of AI code you ship:
1οΈβ£ Any user input rendered to a page β is it escaped? (XSS)
2οΈβ£ Any user input reaching the database β parameterized query, never string concatenation (SQL injection)
3οΈβ£ Any user input written to logs β stripped of newlines (log injection)
4οΈβ£ Any file path built from user input β validated against traversal (../)
5οΈβ£ Any secret, key, or token β in env vars, never in the code it just wrote
6οΈβ£ Any dependency it imported β does that package actually exist? (AI invents package names, and attackers register them)
Number 6 is the one nobody checks. It has a name now: slopsquatting.
π Source: Veracode 2025 GenAI Code Security Report
Please send this to the person on your team who ships AI code the fastest.
#tools @codingforweb
β€1π₯1
π¬ 30-second experiment. Ask AI for npm packages β then check if they exist.
Do this right now, before reading further:
Open your AI of choice and ask:
"Give me 5 npm packages for validating and sanitising user input in Express."
Now take each name and run:
Count how many don't exist.
ββββββ
I'll tell you what the research says, but do it yourself first β the number means nothing until it's your number. A study across 16 models generated 576,000 code samples. Of every package name the models recommended:
βͺοΈ 19.7% did not exist
βͺοΈ Open-source models: 21.7% hallucinated
βͺοΈ Commercial models: 5.2%
βͺοΈ Total unique fake package names produced: over 205,000
And the models are consistent about it. Ask the same question twice and you often get the same invented name β which is precisely what makes this exploitable.
Here's the part that turns a curiosity into a threat. A researcher noticed models kept recommending a package called
The attack has a name now: slopsquatting.
Register the package the AI invents, wait for people to install it.
π― Three seconds of defence:
Before you install anything an AI suggested, check the package page. Look at weekly downloads and the publish date. A real utility library with 40 downloads and a first release from last Tuesday is not a library. It's bait.
π¬ Run the test and post your score in the comments. Which model, how many fake out of 5. I'm genuinely curious whether it's got better or worse.
π Source: "We Have a Package for You!" β USENIX Security
Forward this to someone who installs whatever the AI says.
#tools @codingforweb
Do this right now, before reading further:
Open your AI of choice and ask:
"Give me 5 npm packages for validating and sanitising user input in Express."
Now take each name and run:
npm view \<package-name>Count how many don't exist.
ββββββ
I'll tell you what the research says, but do it yourself first β the number means nothing until it's your number. A study across 16 models generated 576,000 code samples. Of every package name the models recommended:
βͺοΈ 19.7% did not exist
βͺοΈ Open-source models: 21.7% hallucinated
βͺοΈ Commercial models: 5.2%
βͺοΈ Total unique fake package names produced: over 205,000
And the models are consistent about it. Ask the same question twice and you often get the same invented name β which is precisely what makes this exploitable.
Here's the part that turns a curiosity into a threat. A researcher noticed models kept recommending a package called
huggingface-cli. It didn't exist. So he registered it β empty, harmless, as a test. It got over 30,000 downloads in three months. Nobody attacked anyone. He just put a name where the hallucination pointed, and thousands of developers installed it because their AI told them to.The attack has a name now: slopsquatting.
Register the package the AI invents, wait for people to install it.
π― Three seconds of defence:
Before you install anything an AI suggested, check the package page. Look at weekly downloads and the publish date. A real utility library with 40 downloads and a first release from last Tuesday is not a library. It's bait.
π¬ Run the test and post your score in the comments. Which model, how many fake out of 5. I'm genuinely curious whether it's got better or worse.
π Source: "We Have a Package for You!" β USENIX Security
Forward this to someone who installs whatever the AI says.
#tools @codingforweb
π Tutorial hell is dead. Welcome to prompt hell π΅βπ«
You remember tutorial hell. You watch a 12-hour course, you follow along, everything works, you feel like you're learning. Then you open an empty file to build something yourself, and you have no idea what to type. That's mostly gone now. AI killed it. Nobody's stuck watching tutorials - you just describe what you want, and something appears.
So we invented a worse version π
Prompt hell is this: you ship things. Real things. A working app, a dashboard, an API that people use. From the outside, you look like a developer who's doing fine. And you cannot build anything without AI. Not "it's slower without it." Cannot π£
The difference from tutorial hell is what makes it dangerous. In tutorial hell, you knew you were stuck - the blank file told you every day. In prompt hell, everything works, so there's no signal, no discomfort, nothing telling you something's wrong. You can stay there for two years.
Here's the test. Three questions, answer honestly:
1οΈβ£ Can you read a function you shipped last month and explain every line - not what it does, but why it's written that way?
2οΈβ£ When something breaks, is your first move to think, or to paste the error?
3οΈβ£ Could you build a small version of your last project with no AI at all - badly, slowly, but finish it? If it's no, no, no - that's prompt hell. It's not a character flaw. It's what happens when the tool removes the struggle, and the struggle was the part that taught you.
I'm not going to tell you to stop using AI. That advice is useless, and nobody follows it.
What actually works is narrower:
πΉ Write first, then ask. Attempt it yourself for ten minutes. Badly is fine. Then bring the AI in. The ten minutes is where the learning happens - everything after is editing.
πΉ Never accept code you can't explain. Not "I trust it." Explain it. If you can't, ask the AI to explain it, then check the explanation against the docs. It's wrong more often than you'd like.
πΉ Break things on purpose. Take working code, change one thing, predict what fails, check. Being right consistently is expertise. There's no other definition.
πΉ Once a week, build something small with nothing. No AI, no Stack Overflow. Thirty minutes. It'll be humbling the first few times. That humbling is the measurement you no longer get anywhere else. The developers who'll matter in five years aren't the ones who refused to use
AI, and they're not the ones who used it most. They're the ones who kept the struggle on purpose, after it stopped being mandatory.
Nobody's going to make you do that. That's the whole problem - and the whole opportunity.
π¬ Honest answers only: how did you score on the three questions?
Forward this to someone who's shipping fast and quietly worried about it.
#learn @codingforweb
You remember tutorial hell. You watch a 12-hour course, you follow along, everything works, you feel like you're learning. Then you open an empty file to build something yourself, and you have no idea what to type. That's mostly gone now. AI killed it. Nobody's stuck watching tutorials - you just describe what you want, and something appears.
So we invented a worse version π
Prompt hell is this: you ship things. Real things. A working app, a dashboard, an API that people use. From the outside, you look like a developer who's doing fine. And you cannot build anything without AI. Not "it's slower without it." Cannot π£
The difference from tutorial hell is what makes it dangerous. In tutorial hell, you knew you were stuck - the blank file told you every day. In prompt hell, everything works, so there's no signal, no discomfort, nothing telling you something's wrong. You can stay there for two years.
Here's the test. Three questions, answer honestly:
1οΈβ£ Can you read a function you shipped last month and explain every line - not what it does, but why it's written that way?
2οΈβ£ When something breaks, is your first move to think, or to paste the error?
3οΈβ£ Could you build a small version of your last project with no AI at all - badly, slowly, but finish it? If it's no, no, no - that's prompt hell. It's not a character flaw. It's what happens when the tool removes the struggle, and the struggle was the part that taught you.
I'm not going to tell you to stop using AI. That advice is useless, and nobody follows it.
What actually works is narrower:
πΉ Write first, then ask. Attempt it yourself for ten minutes. Badly is fine. Then bring the AI in. The ten minutes is where the learning happens - everything after is editing.
πΉ Never accept code you can't explain. Not "I trust it." Explain it. If you can't, ask the AI to explain it, then check the explanation against the docs. It's wrong more often than you'd like.
πΉ Break things on purpose. Take working code, change one thing, predict what fails, check. Being right consistently is expertise. There's no other definition.
πΉ Once a week, build something small with nothing. No AI, no Stack Overflow. Thirty minutes. It'll be humbling the first few times. That humbling is the measurement you no longer get anywhere else. The developers who'll matter in five years aren't the ones who refused to use
AI, and they're not the ones who used it most. They're the ones who kept the struggle on purpose, after it stopped being mandatory.
Nobody's going to make you do that. That's the whole problem - and the whole opportunity.
π¬ Honest answers only: how did you score on the three questions?
Forward this to someone who's shipping fast and quietly worried about it.
#learn @codingforweb
Media is too big
VIEW IN TELEGRAM
More interesting facts about the coding on my YT channel :)
https://www.youtube.com/@codingforweb-official
Videos are generated with AI, but I wrote the stories. This is my first time producing video content with AI, so don't judge me too harshly. Need your support, guys π
https://www.youtube.com/@codingforweb-official
Videos are generated with AI, but I wrote the stories. This is my first time producing video content with AI, so don't judge me too harshly. Need your support, guys π
Please open Telegram to view this post
VIEW IN TELEGRAM