Skip to content

everyday.codes

personal blog by Michael Krasnov

  • feed
  • medium
  • about
  • night mode
  • search
  • search hide

Tag: metaprogramming

Python Context Managers in Depth

september 8, 2020 by michael krasnov | tags: metaprogramming
Python Context Managers in Depth

Python is a particularly clean and sugary language, thanks to its many convenience features. In this post I will go into context managers in Python, how to use them, where to find them, and how to write your own ones.

read more “Python Context Managers in Depth”

Why Do You Need Decorators in Your Python Code

august 6, 2020 by michael krasnov | tags: metaprogramming
Why Do You Need Decorators in Your Python Code

Python is praised for its clarity and syntactic sugariness. In this article, I will teach you to use decorators in Python to make your code readable and clean.

read more “Why Do You Need Decorators in Your Python Code”

Why Python Written In Python is Faster Than Regular Python

july 27, 2020 by michael krasnov | tags: metaprogramming
Why Python Written In Python is Faster Than Regular Python

Let’s be honest: Python is slow. When I say Python, I mean CPython, it’s reference, C-based, implementation. This is where PyPy comes into play. This is a Python runtime, written in Python (!), which performs 4.4 times faster than CPython. How? Read ahead.

read more “Why Python Written In Python is Faster Than Regular Python”

Abstract Classes and Meta Classes in Python

july 21, 2020 by michael krasnov | tags: metaprogramming
Abstract Classes and Meta Classes in Python

Abstract classes (or Interfaces) are an essential part of an Object-Oriented design. While Python is not a purely OOP language, it offers very robust solutions in terms of abstract and meta classes.

read more “Abstract Classes and Meta Classes in Python”

Top Posts

  • How to use Latex in RMarkdown
  • Getting Out of Hook Hell: You Are Using React Hooks The Wrong Way
  • A hands-on guide to concurrency in Python with asyncio
  • Please stop using classes in JavaScript
  • Create Custom Jest Matchers to Test Like a Pro

archives

  • June 2023
  • January 2023
  • December 2022
  • July 2022
  • May 2021
  • February 2021
  • January 2021
  • October 2020
  • September 2020
  • August 2020
  • July 2020
  • June 2020
  • May 2020
  • April 2020
  • March 2020
  • February 2020
  • January 2020
  • December 2019
  • November 2019
  • August 2019
  • July 2019
  • June 2019

categories

  • best-practices
  • code-review
  • collections
  • crypto
  • fuchsia
  • google
  • graphql
  • java
  • javascript
  • life
  • linux
  • mobile
  • news
  • open-source
  • python
  • react
  • react-native
  • tutorials
  • Uncategorized

michael krasnov (c)
linkedin | github | telegram

This website uses cookies to ensure you get the best experience on our website. Learn more