https://talkpython.fm/episodes/show/332/robust-python is a really interesting episode, and resonates really strongly with me for how to write good/maintainable/robust code
talkpython.fm
Robust Python
Does it seem like your Python projects are getting bigger and bigger? Are you feeling the pain as your codebase expands and gets tougher to debug and maintain? Patrick Viafore is here to help us write more maintainable, longer-lived, and more enjoyable Python…
Forwarded from 🇺🇦 Go for two :)
How to Make Your Code Reviewer Fall in Love with You:
1. Review your own code first
2. Write a clear change list description
3. Automate the easy stuff
4. Answer questions with the code itself
5. Narrowly scope changes
6. Separate functional and non-functional changes
7. Break up large change lists
8. Respond graciously to critiques
9. Be patient when your reviewer is wrong
10. Communicate your responses explicitly
11. Artfully solicit missing information
12. Award all ties to your reviewer
13. Minimize lag between rounds of review
https://mtlynch.io/code-review-love/
1. Review your own code first
2. Write a clear change list description
3. Automate the easy stuff
4. Answer questions with the code itself
5. Narrowly scope changes
6. Separate functional and non-functional changes
7. Break up large change lists
8. Respond graciously to critiques
9. Be patient when your reviewer is wrong
10. Communicate your responses explicitly
11. Artfully solicit missing information
12. Award all ties to your reviewer
13. Minimize lag between rounds of review
https://mtlynch.io/code-review-love/
mtlynch.io
How to Make Your Code Reviewer Fall in Love with You
Best practices for code review when you're the author.
Forwarded from 🇺🇦 Go for two :)
A_cheeky_way_to_check_if_an_expression_is_not_one_of_two_constants.png
110.5 KB
>>> a = 2
>>> a != 2 != 3
False
>>> a != 2 != 3
False
@oleg_log just remind me regarding to repost
https://www.djangoproject.com/weblog/2021/sep/21/django-40-alpha-1-released/
https://www.djangoproject.com/weblog/2021/sep/21/django-40-alpha-1-released/
tip: how to convert audio to text
Using #Python pydub and speed_recognition to convert audio to text:
https://twitter.com/bbelderbos/status/1442519795761549325
Using #Python pydub and speed_recognition to convert audio to text:
https://twitter.com/bbelderbos/status/1442519795761549325
Twitter
Bob Belderbos
Using #Python pydub and speed_recognition to convert audio to text:
Python behind the scenes #13: the GIL and its effects on Python multithreading
https://tenthousandmeters.com/blog/python-behind-the-scenes-13-the-gil-and-its-effects-on-python-multithreading/
https://tenthousandmeters.com/blog/python-behind-the-scenes-13-the-gil-and-its-effects-on-python-multithreading/
Tenthousandmeters
Python behind the scenes #13: the GIL and its effects on Python multithreading
As you probably know, the GIL stands for the Global Interpreter Lock, and its job is to make the CPython interpreter thread-safe. The GIL allows...
Forwarded from 🇺🇦 Go for two :)
FA3t6syVgAo40X8.jpeg
50.2 KB
LOL😭😭😭
Someone nuked the DNS A and AAA records for Facebook, Instagram, and WhatsApp Face with hand over mouth
Someone nuked the DNS A and AAA records for Facebook, Instagram, and WhatsApp Face with hand over mouth
Forwarded from oleg_log (Oleg Kovalov)
Был бы я более питонистом, сразу бы пошел собирать из сорцов, но нет.
Вообще фигня клевая, по шагам проходишь с чекаута до рантайм штуковин, прям бери Python и фикси под свои нужды.
https://realpython.com/cpython-source-code-guide/#what-does-a-compiler-do
Вообще фигня клевая, по шагам проходишь с чекаута до рантайм штуковин, прям бери Python и фикси под свои нужды.
https://realpython.com/cpython-source-code-guide/#what-does-a-compiler-do
Realpython
Your Guide to the CPython Source Code – Real Python
In this detailed Python tutorial, you'll explore the CPython source code. By following this step-by-step walkthrough, you'll take a deep dive into how the CPython compiler works and how your Python code gets executed.
Obfuscating "Hello world!" for Code Golf contest
https://benkurtovic.com/2014/06/01/obfuscating-hello-world.html
https://benkurtovic.com/2014/06/01/obfuscating-hello-world.html
Benkurtovic
Obfuscating "Hello world!" – Ben Kurtovic
Fun with functional programming in Python | Ben Kurtovic's blog
TIL: mypy Playground is a web service that receives a Python program with type hints, runs mypy inside a sandbox, then returns the output.
https://mypy-play.net/
https://mypy-play.net/
mypy-play.net
mypy Playground
The mypy Playground is a web service that receives a Python program with type hints, runs mypy inside a sandbox, then returns the output.
Found very intersting approach to count the digits of an integers #python:
from math import floor, log10
def count_digits(n):
return 1 + floor(log10(n))
In [2]: count_digits(5)
Out[2]: 1
In [3]: count_digits(999)
Out[3]: 3
In [4]: count_digits(1000)
Out[4]: 4
Scalene: a high-performance CPU, GPU and memory profiler for Python
https://github.com/plasma-umass/scalene
https://github.com/plasma-umass/scalene