Panth Patelhow-is-my-backend.whiteloves.in·Dec 8, 2024How to Implement Type Safe Functions in JavaScriptEver run into the issue where you can't make type-safe functions in JavaScript? So you switch to TypeScript, only to find out that types are just for development and don't actually validate function inputs or outputs! Then you end up using a validati...dispose
Aditya Dubeyadityadubey.tech·Apr 14, 2024Stack Frames in Python: Accessing the frame object using decoratorIntroduction Understanding memory management is crucial for writing efficient and error-free code in any programming language. In Python, a language known for its simplicity and readability, memory management plays a vital role in the execution of pr...20 likes·459 readsframe stack
Muhammad Umairumair42.hashnode.dev·Dec 26, 2023A Developer's Guide to Async Wrapper Functions: From Basics to Best PracticesIntroduction: In the dynamic world of JavaScript, managing asynchronous operations efficiently is crucial for building responsive and scalable applications. One powerful technique to handle asynchronous code elegantly is through the use of async wrap...3 likes·442 readsJavaScript
Ian Mwangipythonstudy.hashnode.dev·Aug 8, 2023Unwrapping the Magic: Demystifying Python Wrapper FunctionsIn the world of programming, efficient and elegant solutions are highly prized. Python, known for its readability and versatility, offers a powerful feature called "wrapper functions" that can significantly enhance your code's elegance and reusabilit...python programming
Shiela Sandovaldev.shielasandoval.com·Mar 6, 2023Observing DRY principles with wrapper functionsWrite once and minimise repetitive code with wrappers. Say you have a bunch of functions in your codebase and you want to print out logs whenever a function is run. If you only have a couple of functions, it probably wouldn’t hurt to do something lik...Code OptimisationPython