Polyglot CheatSheet - Overview

Updated: 2021-11-19

Code snippets for quick lookups. For the concepts, check Programming Languages pages.

Covered languages: 4 most popular + 4 new and trending + 3 extra

  • 4 most popular: C / C++, Java, Pytho, Javascript
  • 4 new and trending: Rust, Kotlin, Go, Swift
  • 3 extra: SQL, Bash, ProtoBuf


Lang Impl Written In Source Code
Java OpenJDK C++ https://github.com/openjdk/jdk
Java GraalVM Java https://github.com/oracle/graal
Python CPython C https://github.com/python/cpython
Javascript V8 / Node C++ https://github.com/v8/v8
Rust Rust https://github.com/rust-lang/rust
Ruby C https://github.com/ruby/ruby
Hack HHVM C++, Rust https://github.com/facebook/hhvm

Coding Convention


Google C++ Style Guide https://google.github.io/styleguide/cppguide.html


Google Java Style Guide https://google.github.io/styleguide/javaguide.html


It's official: PEP 8 — the Style Guide for Python Code