atlas news
    
Mathspp
22  avril     15h00
TIL #095 - better test parametrisation in pytest
   Today I learned how to use named tuples to improve readability and flexibility of test parametrisations in pytest. Better test parametrisation in pytest Today I attended a pytest tutorial at PyCon DE and I learned a couple of really neat tricks to improve parametrised tests. Let’s take a look...
    14h00
TIL #094 - pytest.raises: parameter match
   Today I learned about the parameter match used in pytest.raises. pytest.raises: parameter match Today I attended a pytest tutorial at PyCon DE and very early in the tutorial I learned about the parameter match that you can use with pytest.raises. The parameter match accepts a regex pattern...
04  avril     22h00
A tutorial is not a long talk
   In this opinion piece the author expresses his views on what makes a good Python tutorial and how that differs from a long talk. A tutorial is not a long talk Bart Simpson internalising the message of this opinion piece. The title of the article should say it all but I’ll elaborate a bit on what...
03  avril     22h00
Hold my parentheses light: now with zero sugar
   Explore what Python could look like if we got rid of all of its synthatic sugar. Hold my parentheses light: now with zero sugar Given a string representing a parenthesised expression like x , how can we figure out if the expression is correctly parenthesised In the last article I solved...
02  avril     22h00
Hold my parentheses
   Explore unusual Python features to solve the problem of determining whether an expression is properly parenthesised. Hold my parentheses Given a string representing a parenthesised expression like x , how can we figure out if the expression is correctly parenthesised In this article I...
31  mars     22h00
503 days working full-time on FOSS: lessons learned
   This article shares some of the lessons I learned from working full time on a FOSS project for days. days working full time on FOSS: lessons learned From the th of November of to the st of March of I worked full time on a FOSS project. This article is an account of some of...
21  mars     23h00
Longest unique substring
   How can you find the longest substring that contains only unique characters Longest unique substring In this article I’ll share a coding challenge with you. Then, I’ll analyse different approaches to solving this problem, talking about the advantages and disadvantages of each one in terms of...
06  mars     18h00
TIL #093 - operator.methodcaller
   Today I learned how to use the function operator.methodcaller. operator.methodcaller The function methodcaller from the module operator is similar to the functions itemgetter and attrgetter. Its only required argument is a string with the name of a method and its return value is a function that...
05  mars     21h00
TIL #092 - dunder method init subclass
   Today I learned how to use the dunder method init subclass to be notified when a class is subclassed. init subclass The dunder method init subclass is a class method that Python runs when a subclass of that class is instantiated. The snippet below sums it all: class Parent: def ...
04  mars     13h00
TIL #091 - issue user warnings
   Today I learned how to issue user warnings like DeprecationWarnings or SyntaxWarnings. Issue user warnings Every once in a while I see a DeprecationWarning when I’m doing some coding. Last time I saw it, I think it was in some pandas code in my pandas and matplotlib tutorial with Pokémon. Today I...