Skip to content
View bbelderbos's full-sized avatar

Organizations

@Pybonacci @BetterCodeHub

Block or report bbelderbos

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Please don't include any personal information such as legal names or email addresses. Maximum 100 characters, markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
bbelderbos/README.md

Hi there! πŸ‘‹

  • 🐍 Python software developer
  • πŸ’» Co-Founder of PyBites
  • πŸ“š Love books/reading

Latest Bluesky posts

  • Was reminded today of this neat #python trick when you have issues parsing json: try to convert it to a dict using `ast.literal_eval()` -> (11 Feb 2025) - link
  • Deeply nested if statements? 😱 Refactor with guard clauses for better readability & maintainability.

    βœ… Less indentation βœ… More readable logic βœ… Easier debugging

    As the Zen of Python says: "Flat is better than nested." 🐍 😍 (08 Feb 2025) - link

  • Python tip: Since 3.8, you can enforce interfaces using typing.Protocol! πŸ’‘

    βœ… Static type checking βœ… No inheritance required βœ… Structural subtyping for flexibility

    Unlike ABCs, Protocols catch errors early while keeping Python dynamic. Are you using them? πŸ€”

    #Python #tips (07 Feb 2025) - link

Follow me Β»

Latest Python tips

  • Timing code in Python: Using `timeit` to compare merging dictionaries in #Python: Old way with `**` unpacking vs. new way with `|`. ... (26 Jul 2024) - link
  • Merging dictionaries: Old way: `{**dict1, **dict2}` ... (26 Jul 2024) - link
  • You can now use | for typing: `|` got added to type hints >= 3.10, not needing the `typing` import anymore for these: ... (26 Jul 2024) - link
  • dict dispatch pattern: Tired of long and unmaintainable `if-elif-elif-else` chains? 😱 ... (13 Jul 2024) - link
  • split file name and extension: `pathlib` has you covered, just make a `Path` object and access the `stem` and `suffix` attributes: ... (11 Jul 2024) - link

More Python tips Β»

Build READMERoll your own: How to create a self updating GitHub Readme.

Pinned Loading

  1. bobcodesit bobcodesit Public

    Coding tips (mainly Python) I share on social media.

    Python 31 4

  2. emojisearcher emojisearcher Public

    No more google search, copy emojis to the clipboard.

    Python 20 1

  3. color-searcher color-searcher Public

    Python 30 2

  4. pybites/100DaysOfCode pybites/100DaysOfCode Public

    PyBites #100DaysOfCode

    Python 448 168

  5. PyBites-Open-Source/karmabot PyBites-Open-Source/karmabot Public

    A Python based Slack Chatbot for community interaction

    Python 73 47

  6. PyBites-Open-Source/search PyBites-Open-Source/search Public

    Python 20 3