Skip to content

Instantly share code, notes, and snippets.

@duke13137
duke13137 / python_debug_cheatsheet.md
Last active December 6, 2025 06:18
Python Debug Cheatsheet

Python Debug Cheatsheet

Print Object Representations

# Basic print (calls __str__)
print(obj)
print(f"result: {obj}")

# Debug representation (calls __repr__)
@duke13137
duke13137 / JavaDeveloper.md
Last active December 6, 2025 05:36
Interview questions

Coding

Java

  • Java is an OOP language: class/object with lambda (functional programmig Java 8+).
  • Encapslation: private, protected, public, final (Immutability) -object identity vs. state, == vs. equals()/hash()
  • Inherience: abstract class vs. final class
    • Template pattern
  • Polymorphism: program to interface
  • Decorator pattern (composition)