Need medical care? I'm Dr. César Méndez, surgeonI'm a patient →
How software works

Module 02 · 12 min

Programming Languages: When to Choose Which

There are hundreds of programming languages, and people on the internet fight with religious fervor over which one is 'the best.' Let me save you years of noise with a single sentence: it's a waste of time. There is no 'best' language. There is only the RIGHT language for what you're building. A language is just a tool. You wouldn't ask a carpenter if a hammer is 'better' than a screwdriver — it depends on whether you're driving a nail or a screw.

◇ Diagrama· Which language for what? (spoiler: it's almost all JS/TS)
🌐

JavaScript / TypeScriptSTART HERE

the whole web: frontend and backend (Next.js)

your main language — 90% of what you'll do

🐍

Python

AI/data, scripts, automation

when you train or dig deep into data

🗄️

SQL

asking questions of relational databases

when you go all in on Postgres/Supabase

⚙️

Others (Go, Rust…)

high-performance systems

almost never when starting out — ignore them for now

You don't have to learn five languages. To build web products with AI, JavaScript/TypeScript covers your frontend and backend. The others only come in when your project calls for them — and AI writes them with you when that moment arrives.

So instead of giving you dogma, I'm going to give you clear judgment. By the end of this lesson, you'll know exactly which language to start with and why, without falling into internet flame wars or the paralysis of 'I don't know which one to pick.'

First off: what is a language, really?

A programming language is simply how you give instructions to a computer. Computers don't understand English or Spanish; they understand extremely precise instructions. Each language is an 'idiom' with its own grammar for writing those instructions. Some are better for certain tasks, just like English, Spanish, or Japanese have different strengths. But all of them serve to 'talk to the machine.'

JavaScript / TypeScript: The language of the web

If you're going to build web or mobile apps — which is the most common path today and what this course teaches you — JavaScript is your primary bet. It is the ONLY language that runs natively in every web browser in the world, so it's impossible to build for the web without it. With JavaScript, you build the frontend, and with frameworks like Next.js, the backend too. One single language for your entire product.

TypeScript is JavaScript with added safety checks: it alerts you to errors BEFORE you break something, forcing you to be explicit about what kind of data everything is (a number, a piece of text, a date). It's JavaScript with a seatbelt on. I ALWAYS use TypeScript, and I recommend you do the same from day one: it saves you an entire category of silly mistakes.

💡 Why AI loves JavaScript/TypeScript

There's a huge, rarely mentioned benefit: since JavaScript is the most widely used language in the world, AI models have 'read' massive amounts of its code. That means AI is EXCELLENT at writing JavaScript/TypeScript — it makes fewer mistakes and understands what you're asking for much better. Picking the language AI knows inside out gives you a tangible advantage when building with an AI co-pilot.

Python: The king of AI, data, and automation

Python is the other language worth knowing. It shines in three areas: artificial intelligence and machine learning (almost the entire AI world is built on Python), data analysis (processing, cleaning, graphing information), and automation (scripts that do repetitive tasks for you). It's famous for being readable, almost like plain English. If your project revolves around data or low-level AI, Python is your spot.

SQL and the rest (the ones you'll hear about)

SQL isn't a general programming language: it's the language used to TALK to databases. You ask it things like 'give me all users who signed up this week.' You'll run into it even if you don't formally study it. Then there are Go, Rust, Java, C++, and company: each shines in specific scenarios (extreme performance, massive systems, video games), but you don't need ANY of them to start building web products. Be aware they exist, but only use them if a very specific project requires it.

Worked example: choosing the right language for 3 projects

Good judgment is best understood by applying it. Here's how I would decide for three different ideas:

  • 'A web app where people keep a journal and an AI gives them advice' → JavaScript/TypeScript. It's a web app with users; frontend and backend run on Next.js. The AI part is called as an external service, without switching languages.
  • 'An analysis of 50,000 patients to find disease patterns' → Python. It's pure data processing and statistics, Python's natural domain.
  • 'A machine learning model trained from scratch to classify images' → Python. The ML world lives in Python; that's where all its tools are.

See the pattern? You don't ask 'which one is better.' You ask 'what am I building?', and the right language almost chooses itself. For the vast majority of products you'll build — web apps with users — the answer will be JavaScript/TypeScript.

ℹ️ My honest, direct recommendation

Start with TypeScript/JavaScript. Period. With it, you build real, end-to-end web products, and it's what we use throughout the entire course. Learn Python LATER, and only if a specific project demands it (low-level AI, data analysis). Don't learn five languages 'just in case' — that's the classic beginner's trap. Learn ONE well, by actually building something real.

⚠️ The mistake holding thousands back

Spending weeks 'researching which language to learn' without writing a single line of code. It's procrastination disguised as productivity. No choice of language is going to ruin you, and switching from one to another is way easier than you think once you already know how to code in one. Choose TypeScript, and start building TODAY.

Why learning one language opens the door to the rest

Here's something reassuring: languages share the same core concepts. Variables, conditions, loops, functions — they exist in all of them; only the syntax changes. Once you truly master one (by building, not memorizing), learning a second is just a matter of translating ideas you already understand, not starting from scratch. That's why 'learning one well' doesn't lock you in: it gives you the foundation for any other language when you need it.

Key Takeaways

  • There is no 'best' language, only the RIGHT language for what you are building. Internet arguments are just noise.
  • JavaScript/TypeScript = the language of the web. For web and mobile apps (the most common), it's your main bet. Always use TypeScript.
  • AI excels at JavaScript/TypeScript because it's the most used language — a tangible advantage when building with AI.
  • Python = king of AI, data, and automation. Learn it only if your project asks for it.
  • SQL speaks to databases; the rest (Go, Rust, etc.) are niche cases you don't need to start out.
  • Learn ONE language well by building something real; concepts transfer over, and learning a second language will come naturally.
The best language is the one that lets you build what you want today. For most people, that's JavaScript/TypeScript. Stop researching and start building.

Comentarios

Inicia sesión (arriba) para leer y participar en la conversación de la comunidad.