Tagged articles
16 articles
Page 1 of 1
Data STUDIO
Data STUDIO
Aug 26, 2025 · Fundamentals

How Python Dunder Methods Make Your Code Cleaner and More Powerful

This article explains Python's dunder (double‑underscore) magic methods, showing how overriding __str__, __repr__, __add__, __eq__, __iter__, and others lets custom classes behave like built‑in types, with concrete examples such as Book, Wallet, and TransactionHistory.

Pythoncustom classesdunder methods
0 likes · 6 min read
How Python Dunder Methods Make Your Code Cleaner and More Powerful
Open Source Tech Hub
Open Source Tech Hub
Aug 24, 2025 · Backend Development

How PHPX 2.0 Lets You Write C++ with PHP‑Like Syntax

PHPX 2.0 is a re‑engineered extension library that lets developers write C++ code using PHP‑style dynamic syntax, offering safe memory handling, operator overloading, var‑keyword typing, and seamless integration with Composer and CMake for building high‑performance PHP extensions.

PHP extensionPHPXc++
0 likes · 13 min read
How PHPX 2.0 Lets You Write C++ with PHP‑Like Syntax
Test Development Learning Exchange
Test Development Learning Exchange
Oct 30, 2024 · Fundamentals

Understanding Python Magic (Dunder) Methods: Definitions, Examples, and Best Practices

This article explains Python magic (dunder) methods, their purposes, common examples such as __init__, __str__, __repr__, __len__, __getitem__, __setitem__, __delitem__, __iter__, __call__, __add__, __eq__, __hash__, and shows how to implement operator overloading, iterator and context‑manager protocols while discussing naming rules, performance, inheritance, type checking, and limitations.

Iterator ProtocolPythonSpecial Methods
0 likes · 19 min read
Understanding Python Magic (Dunder) Methods: Definitions, Examples, and Best Practices
Liangxu Linux
Liangxu Linux
Nov 13, 2023 · Fundamentals

Mastering C++ Class Design: Best Practices and Common Pitfalls

This guide walks through essential C++ class design techniques—including header guards, private data encapsulation, const-correctness, initializer lists, reference parameters, operator overloading, static members, the Big Three, deep vs shallow copying, and singleton patterns—to help you write robust, maintainable code.

C++Singletonclass design
0 likes · 13 min read
Mastering C++ Class Design: Best Practices and Common Pitfalls
MaGe Linux Operations
MaGe Linux Operations
Dec 24, 2022 · Fundamentals

Unlock Python’s Magic Methods: A Practical Guide to Special Attributes

This article explains Python’s special attributes and magic methods—including __hash__, __eq__, __bool__, __repr__, __str__, and context management—showing how they affect object behavior, hashing, equality, truth testing, representation, and resource handling with clear code examples.

PythonReflectioncontext management
0 likes · 14 min read
Unlock Python’s Magic Methods: A Practical Guide to Special Attributes
Tencent Cloud Developer
Tencent Cloud Developer
Jun 20, 2022 · Fundamentals

Understanding C++ LINQ and Ranges Pipeline Implementation

The article explains how a C++ LINQ‑style pipeline, built on concepts like _Can_pipe and composable _Pipeline classes, provides lazy, type‑safe range operations using the pipe operator, serving as the foundation for the C++20 ranges library and future execution framework.

C++ LINQC++20 RangesLazy Evaluation
0 likes · 10 min read
Understanding C++ LINQ and Ranges Pipeline Implementation
FunTester
FunTester
Aug 19, 2020 · Backend Development

How to Overload Groovy Operators for JSONPath Validation

The article explains how to use Groovy's operator‑overloading features to create a JSONPath‑style verification DSL, detailing which operators are implemented, the challenges with sign‑conversion operators, and providing a full example class with logging for each overloaded operator.

API testingDSLGroovy
0 likes · 5 min read
How to Overload Groovy Operators for JSONPath Validation
FunTester
FunTester
Jan 8, 2020 · Fundamentals

Demonstrating Operator Overloading in Groovy with Java-Compatible Code

This article demonstrates Groovy's operator overloading capabilities through Java-compatible code examples, including arithmetic, shift, and increment operators, shows console output, integrates a performance‑testing thread multiplication demo, and highlights Groovy's ability to overload even the dot operator.

GroovyPerformance Testingdemo
0 likes · 7 min read
Demonstrating Operator Overloading in Groovy with Java-Compatible Code
AI Cyberspace
AI Cyberspace
Dec 28, 2017 · Fundamentals

What Happens When You Add True + True in Python?

This article explains how Python treats the Boolean type as a subclass of integer, demonstrates the results of arithmetic and augmented operations on True, and shows why assigning to True or False is allowed in Python 2 but prohibited in Python 3.

PythonPython 2 vs 3boolean
0 likes · 7 min read
What Happens When You Add True + True in Python?
Hujiang Technology
Hujiang Technology
Jul 27, 2017 · Fundamentals

Kotlin Functions, Closures, and Lambdas – Chapter 5

This article explains Kotlin's function syntax, special return types Unit and Nothing, nested functions, operator overloading, infix expressions, closures, self‑executing closures, lambda expressions, higher‑order functions, and inline functions, illustrating each concept with clear code examples.

KotlinLambdasclosures
0 likes · 11 min read
Kotlin Functions, Closures, and Lambdas – Chapter 5