atlas news
    
Mathspp : Pydon’ts
06  octobre     07h00
Functions: a complete reference Pydon’t
   This article serves as a complete reference for all the non-trivial things you should know about Python functions. Functions are the basic building block of any Python program you write, and yet, many developers don’t leverage their full potential. You will fix that by reading this article. Knowing...
21  janvier     17h11
Decorators Pydon’t
   This article teaches the decorator pattern in Python, why it exists, how to use it, and when to use it to write efficient and idiomatic Python code. The decorator pattern is a functional pattern that Python developers leverage to write more modular and composable functions. In this Pydon’t, you...
30  juillet     22h00
Overloading arithmetic operators with dunder methods Pydon’t
   This article shows you how to overload the arithmetic operators in Python with dunder methods. Introduction Python lets you override the arithmetic operators like for addition or for multiplication through dunder methods. Dunder methods are special methods whose name starts and ends with a double...
12  juin     22h00
Describing Descriptors Pydon’t
   Descriptors are not black magic and this article will show you that. In fact, you use descriptors every day and you don’t even know it. (If you are new here and have no idea what a Pydon’t is, you may want to read the Pydon’t Manifesto.) Introduction Descriptors are a piece of the Python world that...
13  mai     22h00
Properties Pydon’t
   Learn how to use properties to add dynamic behaviour to your attributes. (If you are new here and have no idea what a Pydon’t is, you may want to read the Pydon’t Manifesto.) Introduction Properties, defined via the property built-in, are a Python feature that lets you add dynamic behaviour behind...
08  juillet     22h00
Dunder methods Pydon’t
   This is an introduction to dunder methods in Python, to help you understand what they are and what they are for. (If you are new here and have no idea what a Pydon’t is, you may want to read the Pydon’t Manifesto.) Introduction Python is a language that has a rich set of built-in functions and...
03  décembre     23h00
Why mastering Python is impossible, and why that’s ok Pydon’t
   Let me tell you why it is impossible to truly master Python, but also show you how to get as close to it as possible. Photo by Migle Siauciulyte on Unsplash.Introduction It has been said that you need 10,000 hours to master a skill. I won’t dispute if that’s true or not. What I’ll tell you is that,...
18  novembre     23h00
String formatting comparison Pydon’t
   This article compares the three main string formatting methods in Python and suggests which methods to use in each situation. (If you are new here and have no idea what a Pydon’t is, you may want to read the Pydon’t Manifesto.) Introduction The Zen of Python says that There should be one - and...
03  novembre     22h00
Pass-by-value, reference, and assignment Pydon’t
   When you call a function in Python and give it some arguments... Are they passed by value? No By reference? No They’re passed by assignment. (If you are new here and have no idea what a Pydon’t is, you may want to read the Pydon’t Manifesto.) Introduction Many traditional programming languages...
27  septembre     22h00
Conditional expressions Pydon’t
   This Pydon’t will teach you how to use Python’s conditional expressions. (If you are new here and have no idea what a Pydon’t is, you may want to read the Pydon’t Manifesto.) Introduction Conditional expressions are what Python has closest to what is called a ternary operator in other languages. In...