quote:Original post by Invader X There isn't anything wrong with it if you are using C# or Java.
o__O
"Everything is a class" != "it's ok to use just one class". WTF.
He did not specify the size of the program. Of course it's not very intelligent to always use a single class but for small programs in those languages a single class might be fine.
One reason to try to split it up a little is because usually it''s better to make small parts of the working application that you can debug and make sure they''ll work.
If something goes wrong, it''s often easier to find the error this way.
You can also more easily work several people on the same project. If you''re not part of a team, this is no problem for you.
It''s also easier from a design point of view... searching through a large .cpp file is just time consuming, and using one(1) .h-file with several(>1) .cpp-files are just bad design and can confuse a lot IMO. Hope you understand what I mean by this.
But sure, for small->medium size applications I could imagine this being a good solution.