---
title: "Peter Sumskas (@PeterSumskas) | Hashnode"
description: "Peter Sumskas (@PeterSumskas) writes on Hashnode. Read their latest articles and follow their work."
url: "https://hashnode.com/@PeterSumskas"
---

@PeterSumskas

# Peter Sumskas

@PeterSumskas · Joined June 2024

## Comments

[It’s an interesting exploration. I’m not quite in favour of it. I reckon that in a busy codebase the = transaction do will be easy to miss, while the extra block is clearer. I don’t think the goal should be “less lines” rather it should be “more clarity”. If I wanted to “wrap” things in transactions then I might lean towards meta-programming 😱 and have a class method that takes a symbol of the method name and wrap that in a transaction by renaming the method. E.g transaction def update\_fnargle … But I’d think long and hard if that is enough of a gain in clarity before I lean on either technique.](https://hashnode.com/posts/refactoring-transaction-blocks-with-the-endless-method/6673d0e5f3a9e4bdb601ba3b/comment/6676385e6c9716cfa7c72469)

Comment · Article · Jun 22, 2024 · [Refactoring transaction blocks with the endless method](https://hashnode.com/posts/refactoring-transaction-blocks-with-the-endless-method/6673d0e5f3a9e4bdb601ba3b)
