Languages

7 Best Resources for Learning a Second Programming Language

By CultCodes Editorial Team · · 8 min read

Key takeaways

  • A second language is learned differently from a first: you already know loops and functions, so the goal is idioms, conventions and the mental model.
  • Exercism and Advent of Code give practice problems in any language, and Exercism adds feedback from mentors.
  • Rustlings, A Tour of Go and Kotlin Koans are short, language-specific courses built by or close to the language teams.
  • Programming-Idioms and Compiler Explorer help you compare languages directly, side by side or down to the generated machine code.

What second-language resources are for

Most beginner courses spend their time on ideas an experienced developer already knows. The hard part of a second language is different. It is learning what the community considers normal: how errors are handled, how code is organised into modules, which naming conventions apply, what the standard library already provides.

The resources below suit developers who can already program and want to become productive and idiomatic in a new language quickly. A good approach is to combine one guided course for the basics with an open-ended practice source for repetition, then read real code in the new language to absorb its conventions.

Quick comparison

ToolBest forStarting priceFree plan
ExercismPractice with optional mentor feedback in many languagesNot includedYes
RustlingsLearning Rust by fixing small programsFree (open source)Yes (open source)
A Tour of GoA fast introduction to GoFree (open source)Yes (open source)
Kotlin KoansLearning Kotlin syntax through testsFree (open source)Yes (open source)
Advent of CodeYearly puzzles in any languageNot includedYes
Programming-IdiomsComparing the same task across languagesNot includedYes
Compiler ExplorerSeeing what code compiles toFree (open source)Yes (open source)

The best resources for learning a second programming language

1. Exercism

  • Official site: https://exercism.org/
  • Best for: Practice with optional mentor feedback in many languages
  • Starting price: Not included
  • Free plan: Yes
  • Pros: Tracks for dozens of languages with graded exercises; Free mentoring from volunteers
  • Cons: Mentor response times vary; Some tracks have fewer exercises than others

Exercism offers coding practice and mentorship for a long list of programming languages, from Python, Go and Rust to Elixir, Haskell and Zig. Each language has a track of exercises with tests, and many tracks include a learning mode that introduces concepts one at a time.

What sets it apart for second-language learners is mentoring. After passing the tests, you can request feedback from a volunteer who knows the language, which is the fastest way to find out that your solution is correct but not idiomatic. The limit is that mentors are volunteers, so waiting times and depth of feedback vary.

2. Rustlings

  • Official site: https://github.com/rust-lang/rustlings
  • Best for: Learning Rust by fixing small programs
  • Starting price: Free (open source)
  • Free plan: Yes (open source)
  • Pros: Maintained under the rust-lang organisation; Teaches you to read compiler errors
  • Cons: Rust only; Best used alongside The Rust Programming Language book

Rustlings is a set of small exercises that get you used to reading and writing Rust code. Each exercise is a program that does not compile or fails its tests, and you fix it.

The format fits Rust especially well, because much of learning Rust is learning to read what the borrow checker and the compiler are telling you. Exercises follow the order of topics in the official Rust book, so working through both together is the recommended path. The limit is that the exercises are small, so you will still need a project of your own to practise larger design decisions.

3. A Tour of Go

  • Official site: https://go.dev/tour/
  • Best for: A fast introduction to Go
  • Starting price: Free (open source)
  • Free plan: Yes (open source)
  • Pros: Runs in the browser with editable examples; Covers basics through concurrency in one sitting
  • Cons: Short exercises with little feedback; Does not teach project layout or modules

A Tour of Go is the Go project's interactive introduction to the language. It walks through basics, flow control, structs, slices and maps, methods and interfaces, generics and concurrency, with each page holding a runnable, editable example.

For developers coming from another language, it is the quickest way to see how Go thinks: few keywords, explicit error values, interfaces satisfied implicitly and goroutines for concurrency. After the tour, read Effective Go and write a small command line tool, since the tour does not cover modules, testing practice or project structure.

4. Kotlin Koans

  • Official site: https://kotlinlang.org/docs/koans.html
  • Best for: Learning Kotlin syntax through tests
  • Starting price: Free (open source)
  • Free plan: Yes (open source)
  • Pros: Each exercise is a failing test you make pass; Runs in the browser or in an IDE
  • Cons: Focused on syntax more than application design; Short overall

Kotlin Koans are a series of exercises that make you familiar with Kotlin syntax and idioms. Each koan is a small task checked by a unit test, and you edit the code until the test passes. They cover introductory language features, conventions, collections, properties, builders and generics.

The koans can be completed in the online Kotlin Playground or inside IntelliJ IDEA or Android Studio through the JetBrains educational plugin. They suit Java developers in particular, since many tasks show the Kotlin way to do something that is verbose in Java. The limit is scope: koans teach the language surface, not how to structure an Android or server application.

5. Advent of Code

  • Official site: https://adventofcode.com/
  • Best for: Yearly puzzles in any language
  • Starting price: Not included
  • Free plan: Yes
  • Pros: Puzzles work with any language; Archive of past events for year-round practice
  • Cons: Later puzzles lean heavily on algorithms; Seasonal schedule

Advent of Code is an Advent calendar of small programming puzzles published each December. Each puzzle comes with your own input and has two parts, where the second part usually changes the problem in a way that tests how well your first solution was structured. Previous years stay online, so the archive works as a large practice set.

It suits second-language learners because the problems are language neutral and you can compare your solution with others written in the same language. The limit is that later puzzles often need algorithm knowledge more than language knowledge, which can turn a language exercise into a puzzle exercise.

6. Programming-Idioms

  • Official site: https://www.programming-idioms.org/
  • Best for: Comparing the same task across languages
  • Starting price: Not included
  • Free plan: Yes
  • Pros: Standard tasks shown in many popular languages; Cheatsheets for quick idiom lookups
  • Cons: Implementation quality varies by contributor; Focuses on small snippets, not whole programs

Programming-Idioms is a site where you can browse standard ways of coding standard things in several popular programming languages, such as reading a file, reversing a list or formatting a date. Each idiom collects implementations in languages like C, Go, Java, JavaScript, Python, Ruby and Rust, and cheatsheet pages show many idioms for chosen languages together.

For a second language, its value is direct comparison. Find the idiom in a language you know, read the version in the language you are learning, and the differences in standard library and style become clear. The content is contributed by the community and offered without guarantees of quality, so check answers against the language's own documentation.

7. Compiler Explorer

  • Official site: https://godbolt.org/
  • Best for: Seeing what code compiles to
  • Starting price: Free (open source)
  • Free plan: Yes (open source)
  • Pros: Supports many languages and compilers side by side; Shareable links for every snippet
  • Cons: Most useful for compiled languages; Reading assembly takes practice

Compiler Explorer is an interactive website that shows the output of compilers as you type. It supports a wide range of languages and compilers, including C, C++, Rust, Go, Zig and many more, and can show assembly, intermediate representations and program output. Every editor state can be shared as a link.

It suits developers moving into systems languages who want to understand what their abstractions cost, for example how a Rust iterator or a C++ template compiles. The limit is that it helps most with compiled languages, and reading assembly is a skill of its own.

How they differ

Exercism and Advent of Code are open-ended practice sources for any language. Rustlings, A Tour of Go and Kotlin Koans are short guided courses for a single language, built close to the language team. Programming-Idioms and Compiler Explorer are reference and exploration tools that let you compare languages rather than teach one in sequence.

How to choose

Begin with the official guided course if your target language has one: A Tour of Go for Go, Rustlings for Rust, Kotlin Koans for Kotlin. Then move to Exercism for steady practice and request mentor feedback on a few solutions, since that is where idioms stick. Use Advent of Code if you enjoy puzzles and want a reason to write a lot of code. Keep Programming-Idioms and Compiler Explorer open as references when you want to compare how two languages handle the same idea.

How we chose

We reviewed official project pages, vendor docs and public documentation, and chose free resources that suit developers who already know at least one language. We looked at language coverage, feedback style and how closely each resource teaches community conventions. We did not run our own comparisons.

FAQ

How long does it take to learn a second programming language?

It depends on how close the new language is to the one you know. Expect the syntax to come quickly and the idioms to take months of real use.

Should I learn a language similar to my first one or a very different one?

A similar language makes you productive faster. A very different one, such as moving from Python to Rust, teaches more new ideas.

Are these resources really free?

All of them can be used without paying. Exercism and Advent of Code accept voluntary support, but the learning material is open to everyone.

What should I build after finishing a course?

Rewrite a small tool you already wrote in your first language. Comparing the two versions shows you where the new language's conventions differ.

Sources

Related reading