+ 23

Are there any best practices for organization of large codes?

Aside from what's necessary to make the code work, as well as good commenting and variable naming, I'm curious if there are any good general guidelines to grouping your code for optimal readability and flow. Please share your thoughts! 🙈🙉🙊

15th Jun 2018, 5:13 AM
Charlie Mitchell
Charlie Mitchell - avatar
18 Answers
+ 15
The are, in fact a lot. Design patterns is the first thing to look at, try them lessons. Code conventions is the second thing. It is like a set of rules for code writing. Try to Google it, there is a lot of them, depending on language and framework. One example would be PSR-2
15th Jun 2018, 5:46 AM
spotbot2k
spotbot2k - avatar
+ 15
#Comment <!--it's for me --> /*the best practice*/
15th Jun 2018, 4:00 PM
JΞΜΔ 🇨🇩👑
JΞΜΔ  🇨🇩👑 - avatar
+ 15
Yehuda Volodin, thank you! That's helpful. I hadn't considered that.
17th Jun 2018, 8:26 PM
Charlie Mitchell
Charlie Mitchell - avatar
+ 14
padmanabham, I'm not currently employed in the tech industry. It's just a hobby for me at this point. I'm searching for a job as well, good luck to you!
17th Jun 2018, 8:24 PM
Charlie Mitchell
Charlie Mitchell - avatar
+ 13
Okay. 'Design patterns' and 'code conventions'. That sounds like it will definitely send me down the right rabbit hole. Thanks, Alexander Schwirjow. I'll Google the hell outta that! 👍
15th Jun 2018, 7:00 AM
Charlie Mitchell
Charlie Mitchell - avatar
+ 12
What do you mean, padmanabham?
23rd Jun 2018, 9:30 AM
Charlie Mitchell
Charlie Mitchell - avatar
+ 11
No, I'm not at work right now...if that's what you mean, padmanabham.
17th Jun 2018, 7:32 AM
Charlie Mitchell
Charlie Mitchell - avatar
+ 6
Good tip, James McLain. Thanks!
4th May 2019, 12:09 AM
Charlie Mitchell
Charlie Mitchell - avatar
+ 4
using the functions, getters and setters, classes and objects.
17th Jun 2018, 10:03 AM
Yehuda Volodin
Yehuda Volodin - avatar
+ 2
division or inclusion
7th Aug 2018, 5:28 AM
steven
+ 2
hello
12th Apr 2019, 8:38 PM
Abdel Wahed Saidi
Abdel Wahed Saidi - avatar
+ 2
I always try to tag my closing curly braces with comments so that I know exactly what they are closing. I saw this in a book long ago and I thought it was brilliant. I wish that IDEs would do it automatically. Like the end of my classes would go:. } // end if/else } // end updated } // end monster class This kind of turns c family code into HTML like code. It's great.
3rd May 2019, 8:02 PM
James McLain
James McLain - avatar
+ 1
Send me your email, i'll send you a doc for it.
15th Feb 2019, 5:53 AM
Henry Lepa
Henry Lepa - avatar
+ 1
Creating a product design document is great for large projects. The industry now a days wants to be responsive to the client., but that is tough.
21st Oct 2019, 10:44 PM
James McLain
James McLain - avatar
+ 1
The real world is a complex place and ths inner world of the computer can only model a small portion of it.
21st Oct 2019, 10:45 PM
James McLain
James McLain - avatar
+ 1
Big projects start with contract negotiation. What do you want to automate? How does the current manual system work? What are the inputs? What are the outputs? What should the screens looks like? What is the style and design?
21st Oct 2019, 10:48 PM
James McLain
James McLain - avatar
+ 1
Are we trying to sell? Convince? Scare (video game), entrrtain? Inform, learn about, automate.
21st Oct 2019, 10:50 PM
James McLain
James McLain - avatar
+ 1
All of these things will help to inform the design and execution of a project.
21st Oct 2019, 10:51 PM
James McLain
James McLain - avatar