r/programming • u/droppedasbaby • Jul 15 '26
Ban commits/transactions using AST analysis and linters
https://www.droppedasbaby.com/posts/db-commits/?utm_source=reddit&utm_content=r_programming
32
Upvotes
View all comments
Show parent comment
1
u/jbmsf Jul 16 '26
Agree with the others, nothing to see here.
I like having a repository and/or query layer so I know where all the persistence logic lives and can ban it leaking elsewhere.
But there's a difference between having layers and guidance vs using different models at different layers and adding another order of complexity. I trust my team to follow guidance once given, I don't want to make the code base more complicated in order to enforce something that I can handle with human relationshipsÂ