Please don’t add anything more than what’s needed in your classes

Hey everyone,

I just had a thought here.

I’ve talked several times about making code clean and readable, and at the same time trying not to make spaghetti code along the way.

Unfortunately, we still see other developers who will keep these habits because it will just “work” out of the box.

Therefore, friends, this is why software development is an engineering field. Okay, it’s not tangible like anything hardware or chemical related, but we still should be thinking how to make things work more efficiently.

Just like how in the old days, there would be circuits that would cross over everywhere. Then, you’d end up with a tangled mess that will be very hard to take out piece by piece. Well, underdeveloped third world countries do this. If we think the same way in code, then we should instead be better off tossing salad.

In America, our antenna wires look so clean in that whenever it needed any replacement, it would be easy to just take off the old one, put the new one on, and then let everything work. Time and money was put into designing and then engineering the outcome of the structure. This is how code should be.

Therefore, if you still don’t know what to look out for, here are some basics to get you started:
– Unless your public static variables will be in the shared code logic and without any good reason, don’t make them anywhere that is local to your own application.
– Always ensure that your class does only what it entails to do, and ensure the same is met with your methods/functions and variables.
– Always try to think for others and put yourself in another person’s shoes.

If you can follow these footsteps, then your code quality will most likely lie within the 95-100% range. The person who hired you will know that he/she made the correct decision in picking you!

Please let me know what you think. Until next time!

Brian.