Tagged articles
7 articles
Page 1 of 1
Data STUDIO
Data STUDIO
Aug 25, 2025 · Fundamentals

Why I Stopped Blindly Using Python Classes

The author reflects on years of overusing classes in Python, explains why simpler constructs like functions, dataclasses, dictionaries, and modules often yield clearer, more maintainable code, and outlines when class‑based design still makes sense.

Pythonbest practicesclasses
0 likes · 7 min read
Why I Stopped Blindly Using Python Classes
Code Mala Tang
Code Mala Tang
Jun 11, 2025 · Fundamentals

Master Python’s @dataclass: Simplify Class Creation and Management

Learn how Python’s @dataclass decorator, introduced in Python 3.7, streamlines class definition by automatically generating constructors, string representations, and more, while covering default values, mutable defaults handling, field exclusion, read‑only classes, and conversion to tuples and dictionaries for efficient data handling.

Default ValuesPythonasdict
0 likes · 8 min read
Master Python’s @dataclass: Simplify Class Creation and Management
FunTester
FunTester
Apr 26, 2024 · Fundamentals

Mastering Java 14 Records: Compact Constructors, Limitations, and Practical Examples

This article explains Java 14’s preview feature records, showing how they replace verbose classes with concise data carriers, detailing automatically generated members, compact constructors for validation, inherent limitations, and new reflection methods, all illustrated with clear code examples.

CompactConstructorJDK14dataclass
0 likes · 5 min read
Mastering Java 14 Records: Compact Constructors, Limitations, and Practical Examples
Python Programming Learning Circle
Python Programming Learning Circle
Mar 6, 2023 · Fundamentals

A Guide to Useful Python Decorators

This article introduces several practical Python decorators—including @lru_cache, @jit, @do_twice, @count_calls, @dataclass, @singleton, @use_unit, and @singledispatch—explaining their purposes, benefits, and providing code examples to demonstrate how they can improve performance, readability, and functionality in Python programs.

Singletondataclasslru_cache
0 likes · 9 min read
A Guide to Useful Python Decorators
Python Programming Learning Circle
Python Programming Learning Circle
Aug 16, 2022 · Fundamentals

Exploring Useful Python Decorators: @lru_cache, @jit, @do_twice, @count_calls, @dataclass, @singleton, @use_unit, @singledispatch

This article introduces Python decorators, explains how they can modify function behavior, and provides practical examples of eight useful decorators—including @lru_cache, @jit, @do_twice, @count_calls, @dataclass, @singleton, @use_unit, and @singledispatch—along with code snippets that demonstrate their implementation and benefits.

Code ExamplesJITSingleton
0 likes · 10 min read
Exploring Useful Python Decorators: @lru_cache, @jit, @do_twice, @count_calls, @dataclass, @singleton, @use_unit, @singledispatch