Skip to content

Instantly share code, notes, and snippets.

@zaunere
Last active September 29, 2024 07:50
Show Gist options
  • Save zaunere/6c4466f4ed0bf7e2dac609494179c2e6 to your computer and use it in GitHub Desktop.
Save zaunere/6c4466f4ed0bf7e2dac609494179c2e6 to your computer and use it in GitHub Desktop.
  1. Enforced Indentation (Python): Python Documentation - Indentation

  2. Type Hints (Python): Typing - Type Hints in Python 3

  3. Static Typing:   - Java: The Java™ Tutorials - Primitive Data Types   - TypeScript: TypeScript Handbook - Basic Types   - PHP: PHP Manual - Type Declarations

  4. Checked Exceptions (Java): The Java™ Tutorials - Exceptions

  5. Const Keyword:   - C++: C++ Reference - const Keyword   - JavaScript: MDN Web Docs - const Declaration

  6. RAII (C++): C++ FAQ - What is RAII?

  7. Ownership and Borrowing Rules (Rust): The Rust Programming Language - Ownership

  8. Match Exhaustiveness:   - Rust: The Rust Programming Language - Patterns and Matching   - Haskell: Learn You a Haskell - Pattern Matching

  9. Access Modifiers (private, protected, public):   - Java: The Java™ Tutorials - Controlling Access to Members of a Class   - TypeScript: TypeScript Handbook - Classes   - PHP: PHP Manual - Visibility

  10. Immutable Variables:   - Haskell: Haskell Wiki - Variables and Immutability   - Rust: The Rust Programming Language - Variables and Mutability

  11. Pattern Matching Completeness:   - Haskell: Haskell Wiki - Pattern Matching   - Rust: The Rust Programming Language - Match Expressions

  12. Optionals (Swift): Swift Programming Language Guide - Optionals

  13. Guard Statement (Swift): Swift Programming Language Guide - Control Flow

  14. use strict and use warnings (Perl):   - strict Pragma   - warnings Pragma

  15. Lexical Scope with my (Perl): Perl Documentation - Variable Scoping

  16. use autodie (Perl): Perl Documentation - autodie Pragma

  17. declare(strict_types=1); (PHP): PHP Manual - Strict Types Declaration

  18. Type Declarations:   - PHP: PHP Manual - Type Declarations   - TypeScript: TypeScript Handbook - Type Declarations   - Swift: Swift Programming Language Guide - Type Annotations

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment