• 0 Posts
  • 4 Comments
Joined 1 year ago
cake
Cake day: November 10th, 2023

help-circle

  • Is python being easy to learn actually true?

    In my experience teaching C to non computer science students It should be. They struggle a lot with variable type and the strict syntax in general, tokenization , etc, but specially ; and {}. They are more visual so I think the forced identification of python helps and they can see to which block a line of code belongs and also it is easy to think one line one statement. When they forgot a semi-colon it is hard to explain that it became one logical line with the next one.


  • Docstrings now have their leading indentation stripped

    I foolish thought that it meant that finally python introduced a hassle free simple way to have indented triple-quoted literal strings. But no. It baffles me that you cannot have simple literal strings that are indented. This is specially annoying if you are using them as templates to output multiline text.


  • Faster load times and/or less bandwidth. zstd is a newish compression algorithm that has being chosen in a lot of use cases because it can be turned to be faster with the same compression rate or better compression with the same processing time. For the content host it saves bandwidth or CPU time with compression.