luni, 30 octombrie 2017

SignalR Tutorial 23 - Refactoring

http://bit.do/dQ2Ji Secret discount page at Wcfstorm.
Refactoring is the process of changing the way our code is written without changing the functionality of the app. This is to organize, reduce bugs, improve readability, increase app speed, etc. In our app, we refactored our code by creating a function that writes to the page. How do you know when you need to create a function? This is where art meets computer science. There is not a definite answer as to when you need to make a function, but there are some great flags that should warn you that a function would be best. Anytime you are doing a large process multiple times, you should probably create a function. Or, if you are doing some crazy algorithm that is distracting from the purpose of the code, you should consider creating a function. This video also shows you the importance of being able to trace your code and data through arguments and parameters. It can be very easy to get lost in what is going on in the code, so take your time to think it through to help prevent mistakes. Support me! http://www.patreon.com/calebcurry Subscribe to my newsletter: http://eepurl.com/-8qtH Donate!: http://bit.ly/DonateCTVM2. ~~~~~~~~~~~~~~~Additional Links~~~~~~~~~~~~~~~ More content: http://CalebCurry.com Facebook: http://www.facebook.com/CalebTheVideoMaker Google+: https://plus.google.com/+CalebTheVideoMaker2 Twitter: http://twitter.com/calebCurry Amazing Web Hosting - https://www.dreamhost.com/r.cgi?1487063 (The best web hosting for a cheap price!)

Niciun comentariu:

Trimiteți un comentariu