is it ok to write code like this?

Printable View