How Strawberry and Poetry can improve Developers’ lives: Djugl debrief part 2

The story so far: at the latest Djugl community event, we welcomed ten fantastic speakers. We met the first four in our first blog and in this one, we’re focusing on the following three. They are Ahter Sonmez, Patrick Arminio and Daniel Knell. Each had some hugely useful tips for our developer community, which we’ll summarise here…
Back to the future!
For Software Engineer, Ahter Sonmez, there is something more important than code: version history. In his talk ‘Back to the Future: Benefits & Intricacies of Re-writing the History with Interactive Rebase’, he showed the audience how to go back and change a commit history. Why is that necessary? Because you may need to consolidate or re-order commits so they make more sense in the future. Using interactive git rebase as a ‘time machine’ he demonstrated how to go back and re-write history so commits tell a more comprehensible story. Ahter strongly recommended making this a daily task in order to create sustainable and maintainable code base.

Why Patrick loves Strawberry
Next up, was Patrick Arminio, a Backend Engineer with @OnVerve. He’s a big fan of Strawberry, a GraphQL tool library for Python. Having found that REST simply didn’t scale as his team built increasingly complex apps, he turned to Strawberry – and has been using it ever since. “Strawberry uses modern Python features to build APIs,” explained Patrick. He then went on to demonstrate some of these features including ‘type hints’, ‘data classes’ and the fact that with Strawberry, you have a single end point. If Djugl developers didn’t have a taste for Strawberry before, they certainly will now.

Poetry in motion
Our seventh speaker was Daniel Knell, Chief Artisan at Artisan of Code Ltd. He proposed a tongue twister of a talk, ‘A Poetic Posture for Python Positively Perplexing Packaging Predicament’. In short, it was all about the virtues of the build tool, Poetry. This uses the pyproject .toml, a file defined in PEP516. “It defines a file where can find some special stuff around how to hammer a package and define stuff for tools,” Daniel clarified. And helpfully, it’s a file that’s being used by more and more tools. So, what can Poetry actually do? “Poetry finds all the metadata and dependencies. It’s all in one file and it’s a sensible format. The other thing that makes it powerful is PEP517,” Daniel explained. With a quick demo to illustrate these points, Daniel successfully showed the audience Poetry in motion.

Seven speakers done and three to go – look out for the final installment of the Djugl debrief, coming soon!