Lim Woojaejaylog.hashnode.dev·Dec 19, 2024[Python] How Closures and Decorators in Python Work Together to Simplify CodeWhat Is Closure? A closure is created when a function (the inner function) is defined within another function (the outer function) and the inner function references variables from the outer function. def func1(): a = [] def func2(v): ...Pythonclosure
Rigal Patelmastering-javascript-decorators.hashnode.dev·Dec 9, 2024Mastering JavaScript Decorators: A Practical Guide for Advanced DevelopersJavaScript decorators are a powerful feature that can simplify code and enhance readability, especially when working with complex applications. In this blog, we will Simplify decorators with practical examples, making it easier for advanced developer...JavaScript
Sajal Sahakumtechexplore.hashnode.dev·Dec 8, 2024Decorator Design PatternThe Decorator Design Pattern is a structural pattern that allows you to dynamically add behavior or responsibilities to an object without modifying its structure. It is particularly useful when you need to enhance the functionality of an object at ru...decorator design pattern
BestWeb VenturesforBestWeb Ventures's Blogblog.bestwebventures.in·Nov 5, 2024Rails View Patterns: Helpers vs Partials vs Presenters vs DecoratorsAs Ruby on Rails applications grow in complexity, maintaining clean and organized views becomes increasingly challenging. Rails provides several patterns to help manage this complexity: Helpers, Partials, Presenters, and Decorators. Each serves a spe...2 likes·279 readspresenters
Think Throothinkthroo.hashnode.dev·Oct 17, 2024Component decorator in TypeDocIn this article, we analyse the Component decorator in TypeDoc. Let’s take a step back and first understand what’s a decorator in TypeScript. Decorator in TypeScript A Decorator is a special kind of declaration that can be attached to a class declar...JavaScript
Tina Hollyblog.tinaciousdesign.com·Oct 14, 2024Open API (Part 3): Generating an OpenAPI spec file from codeOverview This is the 3rd article in a series of posts about working with Open API to create generated API clients and documentation websites. In the 1st post we went over what we can do with Open API spec files, e.g. generate API clients and documen...101 readsOpenApi
Akshobya KLakshobya.hashnode.dev·Oct 2, 2024Advanced Topics in Python: Decorators and Context ManagersNow that we have covered modules and how to better structure our Python code, let’s dive into some more advanced topics decorators and context managers. These are two powerful features that can significantly improve the way we write and manage code. ...Understanding Fundamentals of Python ProgrammingPython
Shrey Dikshantshreysblog.hashnode.dev·Sep 13, 2024📊Overview on Python Decorators: Enhancing Functionality Elegantly📌 Overview: Decorators allow you to extend or modify the behavior of functions or methods without permanently modifying the original function. This blog will guide you through the concept of decorators and how they can be used for logging, access co...decorators
mhdy hasanphp-basics-revisions.hashnode.dev·Aug 11, 2024Design-PatternsDecorator Pattern: suppose you want to have burgers with your friends The burger cost you $4 //initial price with initial burger structure or basic price basic burger structure but you want to add some extra things like , cheese , sauce , meat etc he...design patterns
Tarun Sharmatapstechie.hashnode.dev·Aug 7, 2024Simplifying Python Decorators: What You Need to Know1. What is a Decorator? Definition:A decorator is a function that takes another function as input and extends or alters its behavior without modifying its actual code. It’s a powerful tool for enhancing code reuse and separating concerns. Use Case:De...Python Interview Prep: Essential Concepts and TechniquesPython