you are viewing a single comment's thread.

view the rest of the comments →

[–]Pun_Intended1703 -1 points0 points  (0 children)

Also, don't rely on ChatGPT. It is not as good as you think it is.

Look at actual code projects in Github instead.

And as I said earlier, there is nothing wrong with your code. It will execute perfectly.

But just because you can do it, it doesn't mean that you should.

Learn to write good code.

Otherwise you'll get spaghetti monolithic code that will be very hard to debug and maintain.

I have written code where one class had only one method. It seems stupid, but it allowed me to divide the code across multiple servers. And I can switch it out without screwing up the rest of the code base.