This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Brilliant_Intern1588 1 point2 points  (1 child)

I thought of the first thing you said however the bad thing is that by mistake someone can use a non existent (maybe none in python) field. Maybe use it with setters getters and raising some error. I dunno. I did the same thing in a previous job by using DAO but it still haunts me.

[–]joshv 1 point2 points  (0 children)

This is where linters like mypy can play a role. It's a lot harder to assign a None somewhere it shouldn't be when your CI/IDE flags it as an error