pub.titas
Home Series Blog
Portfolio
← All Tags

Dataclasses

1 items

Series Posts

Conceptual Python for Java Developers: From Streams to Tensors

Part 4: "Objects Without the Ceremony" — Classes, Dunders, Dataclasses and Protocols

Arjun writes a Java-style Transaction class with getters and setters and gets gently mocked. Properties, the Python data model (__repr__, __eq__, __hash__, __len__, __getitem__), @dataclass, class methods, inheritance, enums, and duck typing formalised with Protocol.

© 2026 Titas Biswas

RSS · Portfolio · GitHub
100%