GROUP BEES

12 Beginner Concepts About Type Hints To Improve Your Python Code

12 Beginner Concepts About Type Hints To Improve Your Python Code

Just like unit tests, type hints take developer time but pay off in the long run

Python is a dynamically-typed programming language. This means that the interpreter performs type checking only when the code runs and the variable type is allowed to change over its lifetime.

Although Python has always remained dynamically typed and was never intended to change this direction, type hints have been introduced since PEP 484 with the goal of bringing static type checking to the code analysis.

 

Read more

12 Python Decorators to Take Your Code to the Next Level

12 Python Decorators to Take Your Code to the Next Level

Do more things with less code without compromising on quality

Python decorators are powerful tools that help you produce clean, reusable, and maintainable code.

I’ve long waited to learn about these abstractions and now that I’ve acquired a solid understanding, I’m writing this story as a practical guide to help you, too, grasp the concepts behind these objects.

No big intros or lengthy theoretical definitions today.

Read more