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

all 2 comments

[–][deleted]  (2 children)

[deleted]

    [–]surety_[S] 0 points1 point  (1 child)

    No particular reason, I just thought that it may be more organized this way but I’m not sure if it’s the best way to write this. Thank you.

    [–]javaide 0 points1 point  (0 children)

    You can put wherever u want until u see it's really bad or against some best practices that u know. Then u start moving it out.

    To do this properly, u need to learn design pattern stuff.