Debugging is a developer’s super power, so I’m keeping it quiet that I didn’t know about the python equivalent of ruby’s byebug.
I have a list of objects and would like to transform it into a list of lists of objects. That sounds like the start of tongue twister so it may be easier to demonstrate visually:
I discovered recently that I could create a custom response class for use with FastAPI and that I could use this to create a pretty printed json-like reponse for my API. I didn’t want to force all my responses to...
List comprehensions were the point at which Ruby lost a little of it’s shine for me and I started to think that maybe the future belonged to Python.
Early in my developer career I was given some ‘rules’ for working with python that resulted in me having a near terror response whenever I considered starting a python project.