Cleaning up my first official project. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 4

Cleaning up my first official project.

I just finished a project, but it needs to be cleaned, like it's REALLY messy. Since it's my first official project, I would like to ask the community: Where do I start cleaning up? Do you have any hints what I should look out for?

22nd Jul 2017, 11:46 PM
Limitless
Limitless - avatar
4 Answers
+ 4
* Follow Programming standards. No reason to get into bad habits that you later regret once you fully start understanding things. * Try to minimize operations. By this I mean don't try to do extra unnecessary steps. Every line of code should have a purpose. * Look for a more optimal solution. * If you're like me and always wondering about the performance of the smallest things, when it comes to performance differences that are as small as calling a method, focus more on read-ability. At that point, read-ability and management is far more important. Is the code posted here on SoloLearn?
23rd Jul 2017, 12:16 AM
Rrestoring faith
Rrestoring faith - avatar
+ 3
Hm. Sounds hard coded 😜. By any chance is there hundreds of if statements? If so, those could probably be reduced in the number of lines of code.
23rd Jul 2017, 12:23 AM
Rrestoring faith
Rrestoring faith - avatar
+ 1
No, it's a bit hard to post 7K lines on Sololearn. It includes access to a database, Spring lib and a lot of Frames/Forms
23rd Jul 2017, 12:21 AM
Limitless
Limitless - avatar
+ 1
Surprisingly not, I used a few switch statements, but most is there to access the database and formatting the right inputs to the database
23rd Jul 2017, 12:26 AM
Limitless
Limitless - avatar