Fixing Legacy Perl Functions With Decorators

Posted on October 21, 2017. Filed under: Uncategorized | Tags: , , , , , , , |

Fixing Legacy Perl Functions With Decorators Function decorators give us a way to modify a function’s behaviour without changing its source. This is useful in changing the behaviour of complex or legacy functions that you don’t want to touch. Although perl does not have a built-in syntax for creating or using decorators, typeglob manipulations are […]

Read Full Post | Make a Comment ( Comments Off on Fixing Legacy Perl Functions With Decorators )

The best ever explanation of Decorators in Python

Posted on August 12, 2016. Filed under: Uncategorized | Tags: , , , , |

The best ever explanation of Decorators in Python I have checked like a dozen explanations for Python Decorators. Some of them are good. But this Stack Overflow answer just beats them all. Such an awesome answer. It is a bit long as it has built the theory step by step.

Read Full Post | Make a Comment ( Comments Off on The best ever explanation of Decorators in Python )

Python 101: An Intro to Benchmarking your code

Posted on May 30, 2016. Filed under: Uncategorized | Tags: , , , , , |

Python 101: An Intro to Benchmarking your code What does it mean to benchmark ones code? The main idea behind benchmarking or profiling is to figure out how fast your code executes and where the bottlenecks are. The main reason to do this sort of thing is for optimization. You will run into situations where […]

Read Full Post | Make a Comment ( Comments Off on Python 101: An Intro to Benchmarking your code )

Understanding Python Decorators in 12 Easy Steps!

Posted on September 14, 2015. Filed under: Uncategorized | Tags: , |

Understanding Python Decorators in 12 Easy Steps! As a Python instructor, understanding decorators is a topic I find students consistently struggle with upon first exposure. That’s because decorators are hard to understand! Getting decorators requires understanding several functional programming concepts as well as feeling comfortable with some unique features of Python’s function definition and function […]

Read Full Post | Make a Comment ( Comments Off on Understanding Python Decorators in 12 Easy Steps! )

Python Function Decorators

Posted on February 5, 2015. Filed under: Uncategorized | Tags: , |

Function decorators enable the addition of new functionality to a function without altering the function’s original functionality Python Function Decorators

Read Full Post | Make a Comment ( Comments Off on Python Function Decorators )

Understanding Python decorators

Posted on April 8, 2013. Filed under: Uncategorized | Tags: , , |

To understand decorators, you must first understand that functions are objects in Python. This has important consequences. Understanding Python decorators

Read Full Post | Make a Comment ( None so far )

Liked it here?
Why not try sites on the blogroll...