Polyglot CheatSheet - Overview

Updated: 2021-10-06

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

Package Managers and Registries

  • Java/Scala: Maven Central
  • Python: Python Package Index
  • Node.js: npm(Node Package Manager)
  • Ruby: RubyGems.
  • Perl: Comprehensive Perl Archive Network (CPAN)
  • R: Comprehensive R Archive Network (CRAN).
Language Package Manager config Registry / Repository
Javascript npm json https://www.npmjs.com/
Rust cargo toml https://crates.io/
Java maven xml https://search.maven.org/

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