+ 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! 🙈🙉🙊
18 Respuestas
+ 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
+ 15
#Comment
<!--it's for me -->
/*the best practice*/
+ 15
Yehuda Volodin, thank you! That's helpful. I hadn't considered that.
+ 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!
+ 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! 👍
+ 12
What do you mean, padmanabham?
+ 11
No, I'm not at work right now...if that's what you mean, padmanabham.
+ 6
Good tip, James McLain. Thanks!
+ 4
using the functions, getters and setters, classes and objects.
+ 2
division or inclusion
+ 2
hello
+ 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.
+ 1
Send me your email, i'll send you a doc for it.
+ 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.
+ 1
The real world is a complex place and ths inner world of the computer can only model a small portion of it.
+ 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?
+ 1
Are we trying to sell? Convince? Scare (video game), entrrtain? Inform, learn about, automate.
+ 1
All of these things will help to inform the design and execution of a project.