#metaprogramming

[ follow ]
fromRealpython
2 weeks ago
Python

Using Python's .__dict__ to Work With Attributes - Real Python

The .__dict__ attribute in Python maps attribute names to their values, essential for dynamic attribute management.
fromHackernoon
1 month ago
Scala

C++ Metaprogramming: Compilation of Calculations, from Basic Techniques to Advanced Methods | HackerNoon

C++ metaprogramming with templates and constexpr enables compile-time execution, improving efficiency but complicating code readability.
fromRubyflow
2 months ago
Ruby on Rails

Unlock the Power of Ruby Metaprogramming!

Module#included in Ruby allows for dynamic modifications of classes or modules upon inclusion.
Scala
fromMedium
2 months ago

Implementing filter method with Scala macros

Scala macros enhance database interaction efficiency by translating expressions into SQL or predicate AST.
fromHackernoon
2 years ago
JavaScript

Code Smell 268 - Ternary Metaprogramming | HackerNoon

Ternary operators for dynamic method calls reduce code readability and maintainability, introducing potential errors.
[ Load more ]