On this page
- The best programming language to learn for each goal
- Which programming language should you learn first?
- What do the 2026 rankings say?
- Stack Overflow Developer Survey 2026: what developers use
- GitHub Octoverse 2026: what people build with
- TIOBE Index, November 2026: what search engines find
- RedMonk, January 2026: code plus discussion
- Why do the rankings disagree?
- The main languages, one by one
- Python
- JavaScript and TypeScript
- SQL
- Java and C#
- Go
- Rust
- Kotlin, Swift and Dart
- C and C++
- Does AI change which programming language you should learn?
- How do you start learning a programming language?
- Frequently asked questions
For most beginners, the best programming language to learn in 2026 is Python. If you already know you want to build websites, start with JavaScript and move to TypeScript soon after.
Those two starting points hold up whichever ranking you trust. Python and JavaScript are the only languages in the top six of all four rankings covered here: Stack Overflow's survey, GitHub's Octoverse, the TIOBE Index and RedMonk. After that, your goal matters more than any chart. Phone apps, games, cloud services and operating systems each have their own usual languages.
The best programming language to learn for each goal
| Your goal | Learn first | Add next | Why |
|---|---|---|---|
| Not sure yet | Python | SQL or JavaScript | No. 1 on TIOBE, and the top language among learners in Stack Overflow's 2025 survey |
| Websites and web apps | JavaScript | TypeScript | Most-used language in Stack Overflow's survey 12 years running |
| Data, AI and machine learning | Python | SQL | PyTorch, a major deep learning library, is documented mainly as Python modules |
| Android apps | Kotlin | SQL | Google has been Kotlin-first on Android since 2019 |
| iPhone, iPad and Mac apps | Swift | SwiftUI, Apple's interface framework | Apple's own language for all its platforms |
| One app for iOS and Android | Dart, with Flutter | Kotlin or Swift | Flutter apps are written in Dart |
| Games | C# for Unity | C++ for Unreal Engine | Unity scripts are written in C#; Unreal Engine 5 is programmed in C++ or with its visual Blueprints |
| Cloud services | Go | Bash | Kubernetes, which runs containerized apps at scale, is written in Go |
| Big-company back ends | Java or C# | SQL | 78% of Java developers JetBrains surveyed in 2025 do back-end work |
| Operating systems and low-level code | C | Rust | The Linux kernel is mostly C, with optional Rust support |
The "learn first" column is our judgment, based on the sources at the end. It isn't a ranking published by any of them.
Which programming language should you learn first?
Pick Python if you don't have a project in mind. You can use it for scripts, data work, automation and AI, and Python's official tutorial describes it as easy to learn. Learners seem to agree. In Stack Overflow's 2025 survey, 71.8% of people learning to code reported working with Python, up from 66.4% in 2024. HTML/CSS came second at 66.6% and JavaScript third at 62.8%. The 2026 language results can be filtered by years of work experience but have no learner tab, so 2025 is the latest figure we have for that group.
Pick JavaScript if you want to see your work in a browser on day one. It's the scripting language of web pages, and it also runs outside the browser through tools such as Node.js. You'll need some HTML and CSS alongside it.
There's a third route. Harvard's CS50x, which you can follow for free, begins with the block-based language Scratch, then spends several weeks in C before reaching Python, SQL and JavaScript. It's slower to produce anything flashy, but you learn how memory and data structures work. Choose it if you want computer science rather than just coding.
Don't agonize over the choice. Variables, loops, functions and debugging carry over to your second language, so a first pick isn't a lifelong commitment. Switching every two weeks does more harm than picking the "wrong" one.
What do the 2026 rankings say?
Stack Overflow Developer Survey 2026: what developers use
The survey ran from 23 June to 5 August 2026 and collected 30,903 valid responses from 169 countries. The language question had 14,099 respondents, who could pick more than one.
| 2026 rank | Language | 2026 | 2025 |
|---|---|---|---|
| 1 | JavaScript | 62.0% | 66.0% |
| 2 | SQL | 58.4% | 58.6% |
| 3 | HTML/CSS | 58.2% | 61.9% |
| 4 | Python | 58.0% | 57.9% |
| 5 | Bash/Shell | 51.3% | 48.7% |
| 6 | TypeScript | 43.8% | 43.6% |
| 7 | Java | 27.6% | 29.4% |
| 8 | C# | 27.1% | 27.8% |
| 9 | PowerShell | 24.6% | 23.2% |
| 10 | C++ | 24.3% | 23.5% |
| 11 | C | 21.8% | 22.0% |
| 12 | Rust | 18.0% | 14.8% |
| 13 | PHP | 17.7% | 18.9% |
| 14 | Go | 16.5% | 16.4% |
| 15 | Kotlin | 10.8% | 10.8% |
The Japanese outlet @IT puts HTML/CSS and Python a tenth of a point higher; the table uses Stack Overflow's own data page.
Two other numbers help a learner. Python is the language most respondents want to use (33.4%). Rust has the highest "admired" score of any widely used language, at 67.4%, meaning people who've used it want to keep going. Elm and Odin scored higher, but only 17 and 34 respondents reported using them.
Stack Overflow recruited through its own site, blog and email list, so this is a picture of its community, not of every programmer.
GitHub Octoverse 2026: what people build with
Octoverse 2026 covers 1 October 2025 to 30 September 2026. By contributors, TypeScript is first, Python second and JavaScript third, the same order as 2025. GitHub goes by each repository's main language, so one person can count under several.
| Language | Monthly contributors added, September 2025 to September 2026 | Growth in GitHub's chart |
|---|---|---|
| TypeScript | 3.62 million | 134% |
| Python | 3.23 million | 118% |
| JavaScript | 1.82 million | Not stated in the text |
| Rust | Not stated | 162% |
| Java | Not stated | 30% |
Rust grew fastest in percentage terms among the top languages. GitHub's text calls that a doubling, while its chart shows 162%, which is more than double. Rust still isn't among the 10 languages in GitHub's forecast chart.
TIOBE Index, November 2026: what search engines find
| Rank | Language | Rating | Change in a year (points) |
|---|---|---|---|
| 1 | Python | 20.86% | -2.51 |
| 2 | C | 11.48% | +1.80 |
| 3 | Java | 8.89% | +0.34 |
| 4 | C++ | 8.35% | -0.60 |
| 5 | C# | 3.39% | -4.26 |
| 6 | JavaScript | 2.42% | -1.00 |
| 7 | R | 2.27% | +0.60 |
| 8 | SQL | 1.91% | +0.11 |
| 9 | Visual Basic | 1.88% | -1.43 |
| 10 | Go | 1.69% | -0.03 |
Go pushed Rust down to 11th (1.63%) in November, and Dart entered the top 20 for the first time. TIOBE counts how many results a query such as "Python programming" returns on sites such as Google, Bing, Amazon and Wikipedia. That measures how much is written about a language, not how many people search for it or use it. TIOBE says plainly that the index isn't about which language is best.
RedMonk, January 2026: code plus discussion
RedMonk combines GitHub pull requests with Stack Overflow activity. Its top six are JavaScript, Python, Java, PHP and C# (tied for fourth) and TypeScript. Go is 12th, Kotlin shares 14th and Rust is 20th. RedMonk cautions that Stack Overflow's declining relevance, partly due to coding assistants, makes that half of its data less representative.
Why do the rankings disagree?
They count different things. TypeScript is No. 1 by GitHub contributors and missing from TIOBE's top 20. C is second on TIOBE and 11th in Stack Overflow's survey. Treat a language that scores well everywhere as a safe bet, and treat a one-place move in any single chart as noise.
Even two developer surveys can disagree. JetBrains' 2026 survey of 28,945 developers, published on 10 November, put Python ahead of JavaScript for the first time, 65% to 59%. Stack Overflow still has JavaScript four points in front.
None of these rankings counts job openings. Before you commit to a language for work, search the listings in your own city or target industry and note which names keep coming up.
The main languages, one by one
Python
Best for: beginners, data, AI, scripting and automation.
Python is also the language developers most often work on with AI tools. In Stack Overflow's 2026 survey 39.0% had used AI tools or agents with it, just ahead of JavaScript at 38.4%. PyTorch, the deep learning library, organizes its main documentation around Python modules. The current series is Python 3.15, first released on 9 October 2026.
The catch: it isn't the native language of browsers, iPhones or Android, so plan on a second language for those.
JavaScript and TypeScript
Best for: websites, web apps and anything that runs in a browser.
TypeScript is JavaScript plus syntax for types. It gets converted to JavaScript, so it runs wherever JavaScript does. TypeScript 7.0 arrived on 8 July 2026 with a compiler ported to Go, and Microsoft says full builds are typically 8 to 12 times faster.
The catch: learn JavaScript's basics first. TypeScript adds checks on top of JavaScript, so its error messages make more sense once you know what's underneath.
SQL
Best for: almost anyone who works with data.
SQL is how you query databases, not how you build a whole app. It's the second most-used language in Stack Overflow's 2026 survey, so it makes a strong second choice next to Python, Java or C#.
The catch: you won't get far with SQL alone unless your job is mostly reports and analysis.
Java and C#
Best for: back-end work in larger companies, plus Unity games for C#.
In a 2025 Azul survey of more than 2,000 Java professionals, nearly 70% said over half of their applications were built with Java or ran on a Java virtual machine. Azul sells a Java platform, so read that with its interest in mind. C# covers web, desktop, mobile, cloud and games, according to Microsoft, and Unity uses it for scripting.
The catch: Java had one of the lower admired scores among big languages, 38.5% against 50.0% for C#. C# also had the steepest yearly fall in TIOBE's top 20.
Go
Best for: cloud services, network tools and back ends.
Kubernetes' own developer guide says the project is written in Go. The Go team highlights built-in concurrency, quick builds and low memory use. Stack Overflow puts it at 16.5% usage, almost unchanged from 2025.
The catch: it's a specialist's choice. If you're not interested in servers, start elsewhere.
Rust
Best for: low-level and performance-sensitive code where memory safety matters.
Rust's usage in the Stack Overflow survey rose from 14.8% to 18.0% in a year. Stack Overflow wonders whether a White House report from February 2024, which urged programmers to adopt memory-safe languages, made a difference.
The catch: we wouldn't start here. RedMonk notes that coding assistants should in theory lower Rust's barriers to entry, but it sees no evidence of that yet.
Kotlin, Swift and Dart
Best for: phone apps.
- Kotlin: Android Studio creates new projects in Kotlin by default, and Jetpack Compose, Google's recommended interface toolkit, doesn't support Java.
- Swift: Apple's language for iOS, iPadOS, macOS, watchOS, tvOS and visionOS. It can also be used on servers.
- Dart: the language of Flutter, which targets iOS, Android, the web and desktop from one framework.
The catch: Swift and Dart have small shares in the Stack Overflow survey (5.9% and 4.9%). Learn them because you want to make apps, not as a general-purpose first language.
C and C++
Best for: operating systems, embedded devices, game engines and understanding how computers work.
The Linux kernel is written mainly in C. Epic's documentation has a whole section on programming Unreal Engine in C++, though it assumes you already have some C++ experience.
If Unreal is your goal, watch Epic's plans. In November 2026 it said Unreal Engine 6 won't include Blueprints, and gameplay there will be built in Verse, Epic's own language. C++ stays underneath. Epic's June 2026 target for early access was the end of 2027, so C++ is still the one to learn for Unreal Engine 5.
The catch: you manage more of the machine yourself, so early progress is slower than in Python.
Does AI change which programming language you should learn?
Somewhat. GitHub says agents were starting more than 40% of pull requests by September 2026, up from 17% in March. Detected AI involvement in merged pull requests was highest for TypeScript (44.1%), Python (41.1%) and Rust (40.4%), and lowest, among the languages GitHub charted, for Java (21.2%). GitHub's reading is that people who work with agents lean toward languages where the output is easier to check. It also says agents tend to favor TypeScript when nobody specifies a language.
RedMonk is more cautious. In April 2026 it said it had seen no clear AI-driven shift in language use yet.
Our view is that this strengthens the case for Python and TypeScript, but it doesn't replace learning. Somebody still has to read the code, spot the bug and decide whether it's safe to ship. Our explainer on what vibe coding is and when it goes wrong covers what happens when nobody does. Once you can follow the code yourself, our comparison of the best AI coding agents shows what the tools offer.
A useful rule while you're learning: write the first version yourself, then ask an assistant to explain or critique it.
How do you start learning a programming language?
- Choose one project you'd use. A budget script, a personal site or a small phone app all work.
- Follow one official course or tutorial. The table below lists starting points.
- Set up an editor. Our guide to the best code editors compares the main options. If you need a computer too, see the best laptops for programming.
- Build the project in small pieces, and keep each piece working before you add the next.
- Stay with one language until you finish something, then add the second one from the goal table.
| Language | Where to start | Good to know |
|---|---|---|
| Python | Official Python tutorial, or Harvard's CS50x | The tutorial is for people new to Python, not new to programming, so complete beginners should take CS50x first |
| JavaScript | MDN's Learn web development modules | Includes a first-website lesson for complete newcomers; MDN's JavaScript reference is for looking things up |
| TypeScript | typescriptlang.org | You can add types to an existing JavaScript project bit by bit |
| Kotlin | Google's Android Basics with Compose | Self-paced, and asks only for basic computer and math skills |
| Swift | Apple's Swift Pathway and Swift Playground | Aimed at new learners |
| C# | Microsoft's beginner tutorials | Linked from its tour of C# |
| Go | A Tour of Go | Interactive, with exercises |
| Rust | The Rust Programming Language, or Rustlings | Rustlings is a command-line course |
Picked Python? Follow our step-by-step plan to learn Python.
Frequently asked questions
What is the best programming language to learn first?
Python for most people, because it suits many kinds of work and is the most-used language among learners in Stack Overflow's 2025 survey. Choose JavaScript instead if your goal is websites.
What is the most popular programming language in 2026?
It depends on the measure. JavaScript leads Stack Overflow's 2026 survey at 62.0%, TypeScript has the most contributors on GitHub, and Python tops both the November 2026 TIOBE Index (20.86%) and JetBrains' 2026 survey (65%).
Should I learn JavaScript or TypeScript first?
Start with JavaScript basics, then move to TypeScript. TypeScript is JavaScript with types added, so everything you learn first still applies.
Is it still worth learning to code now that AI writes code?
Yes, in our view. GitHub says agents start more than 40% of pull requests, but people still have to judge whether the code is right. Stack Overflow's 2026 write-up says 52% are still learning new coding skills.
Which programming language is growing fastest?
Rust, in percentage terms, among the top languages in GitHub's Octoverse 2026 (162% in its chart). TypeScript added the most monthly contributors, 3.62 million.
Is Rust a good first programming language?
It's a better second or third one for most people. Developers who use it like it, with a 67.4% admired score in Stack Overflow's 2026 survey, but Python or JavaScript will get you to a working project with less friction.
Sources
- 2026 Developer Survey, Stack Overflow
- 2026 Developer Survey: Technology, Stack Overflow
- 2026 Developer Survey: Technology data, Stack Overflow
- 2026 Developer Survey: Methodology, Stack Overflow
- The results of the 2026 Developer Survey are here, Stack Overflow Blog
- Report on the 2026 Stack Overflow survey (Japanese), @IT
- 2025 Developer Survey: Technology, Stack Overflow
- 2024 Developer Survey: Technology, Stack Overflow
- Python, Redis and VS Code gaining users according to Stack Overflow survey, i-programmer.info
- In Rust we trust? White House office urges memory safety, Stack Overflow Blog
- Octoverse: Commits, pushes, reach new highs in 2026 as developers build with agents, GitHub Blog
- Report on Octoverse 2026 (Japanese), @IT
- TIOBE Index for November 2026, TIOBE
- TIOBE Programming Community Index definition, TIOBE
- TIOBE November 2026: Rust exits, Java climbs, Dart debuts, byteiota
- The RedMonk Programming Language Rankings: January 2026, RedMonk
- State of Developer Ecosystem 2026, JetBrains
- JetBrains 2026: Python tops JavaScript, Rust leads plans, TechRepublic
- Report on JetBrains' 2026 developer survey (Russian), Tproger
- The Python Tutorial, Python documentation
- Download Python, Python Software Foundation
- PEP 790: Python 3.15 release schedule, Python Enhancement Proposals
- PyTorch documentation, PyTorch
- CS50x 2026, Harvard University
- JavaScript, MDN Web Docs
- Learn web development, MDN Web Docs
- TypeScript, Microsoft
- Announcing TypeScript 7.0, Microsoft TypeScript Blog
- Go-based TypeScript 7.0 arrives, InfoWorld
- Android's Kotlin-first approach, Android Developers
- Android Basics with Compose, Android Developers
- Swift, Apple Developer
- FAQ, Flutter documentation
- Scripting, Unity 6.6 Manual
- Programming with C++ in Unreal Engine, Epic Games
- Blueprints visual scripting in Unreal Engine, Epic Games
- Epic Games to drop Blueprints from Unreal Engine 6, PocketGamer.biz
- Unreal Engine 6 drops Blueprints, Wccftech
- Unreal Engine 6 will combine UE5 and UEFN into a unified engine, GamesBeat
- A tour of C#, Microsoft Learn
- What you can build with C#, Microsoft Learn
- The State of Java 2025, JetBrains
- 2025 State of Java Survey, Azul
- Go for cloud and network services, The Go Project
- Kubernetes development guide, Kubernetes community
- Learn Go, The Go Project
- Learn Rust, Rust project
- Programming language, The Linux Kernel documentation
Was this helpful?
Thanks, noted. It helps decide what gets updated first.


