Tag Archive

python

  • We all know that becoming a Python developer is hard. There’s the “10,000-hour” principle which means there’s a significant amount of effort and time you’re going to have to invest. More important though is how you’ll spend that time. Are you working on the right things and tackling increasingly challenging goals? We talk with a lot of people about their Python career goals and here are some common things that are holding them back: Do one or more of these things resonate with you? Do you want to get to the next level as a Python developer but you feel…


  • Testing membership and empty strings

    ·

    ·

    2 min read

    I was working on one of the exercises on the Pybites platform (Bite 29) and encountered a situation I didn’t understand. I needed to check a set of inputs to see if they were alphanumeric or not as part of the solution to the exercise. I succeeded in all but one test, but I couldn’t tell why one failed so I researched why that was and would like to share it. Note – if you haven’t completed the Bite, the solution might be partially spoiled below so maybe you want to do the exercise before reading on. Membership testing is…


  • Reflections on the Zen of Python

    ·

    ·

    5 min read

    An initial version of this article appeared as a Pybites email first. If you like it join our friends list to get our valuable Python, developer and mindset content first … How following the Zen of Python will make your code better, a lot better. This epic set of axioms (triggered by typing import this in the Python REPL) says a lot about code quality and good software design principles. Although each one is profound, let’s look at a few in particular: Explicit is better than implicit. This is an important one. If we don’t state things explicitly we miss obvious facts…


  • Software Engineering and Entrepreneurship

    ·

    ·

    1 min read

    Listen here: This week we talk with Yujian, software developer and entrepreneur. We dive into: – His background. – Why he uses Python and the switch from Java. – His core Python focus these days + cool side projects he’s maintaining. – How entrepreneurship is fundamentally different from software engineering. – His viral post on certificates vs the reality of looking things up as a programmer.– Book tips (The hard things about hard things, The startup of you and Grit).– And of course the importance of mindset as a developer (we cannot leave out the Julian question right?!) Enjoy this episode and connect with Yujian on LinkedIn or on our Slack. Other mentioned links:– His…


  • Listen now: In this episode we tell the story about Pybites CMS, our new powertool we use to better streamline our business. We tell why we built it, how it was an opportunity for Julian to brush up his coding skills, how we applied the PDM philosophy of learning by building, scratching your own itch. Join our Facebook group here (live training coming soon!): https://www.facebook.com/groups/pybites And if you want to take your Python and dev skills to the next level, check out our PDM coaching program here:https://pybit.es/catalogue/the-pdm-program/ We could not find the mentioned article about shipping fast, but we certainly have…


  • This is the third part of a series of articles dealing with the type annotation system in Python, type hints for short. The second part discussed a set of beginner examples and highlighted the benefits of using type hints. This article series is aimed at newcomers to type hints and wants to help you get started. In this third part, I will continue discussing slightly more advanced examples to further deepen your knowledge about type hints. Each example will cover a certain topic and look at type hints from a slightly different perspective. Most examples will end with a tip…


  • 5 Helpful Python Decorator Use Cases

    ·

    ·

    2 min read

    Some time ago I asked on Twitter: I was curious what you use #Python decorators for?  And I got quite an amazing / insightful response: The obvious next step for me was to look at some examples / use cases. So below are 5 useful applications of decorators. Study them, then apply similar things to your own work. 1. De-duplicate code The first one was easiest, because @prashanttgs posted a great example: It’s easier for me to do: … for multiple functions than doing this: To me this shows the benefit of abstracting away repeated logic to make your functions (classes) leaner. …