DEV Community


Discussion on: Back to basics: Naming

sadick profile image
Sadick Author

Does this mean that you will have to create a class and do validation in the constructor for everything in your code that needs validation?

Thread Thread
nektro profile image
Meghan (she/her)

For high level objects that take arbitrary input, like an Email or URL, yes. Other things it's not always necessary because the type system ensures everything else is in order