Hacking is the way most programmers code. They combine random methods here and there in order to quickly finish the job at hand. And they can get away with it because the consumer does not care about what happens behind the scenes as long as the program does what it is suppose to do. Unfortunately this leads to spaghetti code. And spaghetti code is very hard to maintain as you can see from the above picture as things are mixed and matched all over the city in order get the code to up and running as quick as possible. So it becomes a huge hassle to upgrade or fix problems which leads to more hacks on top of hacks in order to keep the program working properly.
And so you should not hack your code together but take the time to think things through on a piece of paper. And by doing this, you will be able to come up will all the different types data structures you will need in order to make your project easier to maintain. The above image is a representation of this as your final project will fit together like a puzzle in which you can easily add or remove pieces to meet new goals that have been set by your client.
So in short hacks are good to get fast working prototypes or proof of concepts, however, in the long run one should strive to mapping out their data structures beforehand in order to improve maintainability of code.


Hello, Luke. I was excited by how spaghetti noodle photo is related in hacking. After read your post, I can get it now. I have not never heard spaghetti code before. Actually, hackers are really professional because as you mentioned above, they make complex codes and release it strongly and quickly so that most victims cannot expect who are going to attack with which methods. No matter what we always try to protect ours, there is not 100% safety.
ReplyDeleteOverall, it was great post and informative. I can't wait to see your future posts and good luck! p.s I wanna get pasta now because of that photo.
Thanks for the comment Stella, and I'm glad to see that you learned something new from it.
DeleteLuke, what an interesting post. I learned a couple of new things from it, like what spaghetti code was! It makes so much sense too, especially with your explanation as well as the visual example you provided. I also liked how you explained both your images and had images that weren't just pictures of people "hacking." Thanks for the tips of how people should code. Keep up the good work.
ReplyDelete