python

4 Articles

Honest Python: 15 Laws Against Mediocre Code

You cleared the beginner threshold. Your code runs. Congratulations, you just reached the level of functional mediocrity. These 15 laws will teach you to write honest code, the kind you won't have to apologise for.

The 7 things you should NOT use threads for in Python (that every programmer should know)

If you have been writing Python for more than 6 months and you still use threads to make your code faster, this article is going to hurt. Threads in Python do not work like they do in Java or C++.

Efficient memory usage in Python with Zero-copy

Python has a lot of magic with memory under the hood and, in most cases, Inefficiently. Let's make it efficient with Zero-copy.

Auto-generating regular expressions from a wordlist with Python

Making regular expressions (REGEX) is sometimes an arduous task. If we need to create a REGEX that matches a set of words, we need to analyse them and include all the necessary conditions to match them. It’s very common in Web Apps, filters, or something else that has to match if a word matches with a set of allowed words.