Tag

operator overloading

1 views collected around this technical thread.

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.

Context ManagerIterator ProtocolMagic Methods
0 likes · 19 min read
Understanding Python Magic (Dunder) Methods: Definitions, Examples, and Best Practices
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 RangesFunctional Programming
0 likes · 10 min read
Understanding C++ LINQ and Ranges Pipeline Implementation
Python Programming Learning Circle
Python Programming Learning Circle
Jun 7, 2021 · Fundamentals

Why Operators Are Useful in Python: Cognitive Benefits and Practical Readability

The article explains how using operators instead of function calls improves code readability, leverages visual processing in the brain, and aligns with mathematical laws such as commutativity, associativity, identity and distributivity, while also discussing performance trade‑offs in Python.

Pythonoperator overloadingoperators
0 likes · 7 min read
Why Operators Are Useful in Python: Cognitive Benefits and Practical Readability
FunTester
FunTester
Sep 19, 2020 · Backend Development

Custom Verify Class for JsonPath Validation with Groovy Operator Overloading

This article introduces a Groovy‑based Verify utility that overloads arithmetic and comparison operators to simplify JsonPath response validation, eliminating manual type conversions and enabling expressive syntax for front‑end test cases.

BackendGroovyJsonPath
0 likes · 9 min read
Custom Verify Class for JsonPath Validation with Groovy Operator Overloading
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.

DemoGroovyJava
0 likes · 7 min read
Demonstrating Operator Overloading in Groovy with Java-Compatible Code
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.

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