+ 1

How are methods used professionally?

To clarify I have a basic level of cpp and am learning cs now. My goal is to be coding on a project professionaly for a friend ASAP. And so I was wondering how methods are used. Eg. is everything in a method or is everything in the main method causing it to be cluttered? I currently lean towards method-mania!

9th Jul 2019, 12:19 AM
Isaiah Condreay
2 Antworten
+ 6
Typically you want the code to be well organized. I believe everything in the main is not good practice. The fast way to learn is via is by doing a course. - Copy how the instructor codes. Free Udemy C# course: https://www.udemy.com/share/100dgSAkcedVhXQ3g=/
9th Jul 2019, 12:38 AM
Manual
Manual - avatar
+ 3
Any code that is repeated can go in a method and these should not be too large as Jay Matthews pointed out.
9th Jul 2019, 6:35 AM
Sonic
Sonic - avatar