#decorators

[ follow ]

Rails View Patterns: Helpers vs Partials vs Presenters vs Decorators

Utilizing helpers, partials, presenters, and decorators in Rails views aids in code organization and maintainability.
#python

Python Closures: Common Use Cases and Examples - Real Python

Closures in Python facilitate state retention in function execution, crucial for decorators and managing functional programming features.

Python Closures: Common Use Cases and Examples Quiz - Real Python

Python closures are essential for creating function-based decorators.
Completing the quiz requires prior knowledge of Python closures as provided by a tutorial.

TIL: Writing decorators for classes

Decorators for classes in Python are easier to write than for functions
A decorator can be used to add additional methods to a class

Python Closures: Common Use Cases and Examples - Real Python

Closures in Python facilitate state retention in function execution, crucial for decorators and managing functional programming features.

Python Closures: Common Use Cases and Examples Quiz - Real Python

Python closures are essential for creating function-based decorators.
Completing the quiz requires prior knowledge of Python closures as provided by a tutorial.

TIL: Writing decorators for classes

Decorators for classes in Python are easier to write than for functions
A decorator can be used to add additional methods to a class
morepython

Primer on Python Decorators - Real Python

Functions in Python can have side effects and return values based on given arguments.
Functions in Python can be treated as first-class objects, meaning they can be passed as arguments and used like any other object.

Deno adds API for date and time operations

Deno 1.40 has been released, featuring a Temporal API for advanced date and time operations.
Deno now supports the ECMAScript decorator syntax and additional features such as import.meta and improved diagnostics.
[ Load more ]