Jump to content

  • Log In with Google      Sign In   
  • Create Account


#ActualLudus

Posted 18 April 2013 - 10:40 PM

It's such basic code that any rearrangement is likely going to be largely superficial.

 

While this may be true, you're forgetting something that's very important. When you take code you found online and use it for your project, you should always reformat it to fit in with the rest of your code. Everything from naming conventions, use of white space, layout, and even the way the functionality of how the code works, all of it should be in line with the rest of your code. Cohesiveness is a virtue.

 

If you just copy-paste code from a bunch of different sources, you end up with what's known as Frankenstein code, in which case it'll be an incomprehensible, disorganized mess in which nothing is consistent.


#1Ludus

Posted 18 April 2013 - 10:23 PM

It's such basic code that any rearrangement is likely going to be largely superficial.

 

While this may be true, you're forgetting something that's very important. When you take code you found online and use it for your project, you should always reformat it to fit in with the rest of your code. Everything from naming conventions, use of white space, layout, and even the way the functionality of how the code works, all of it should be in line with the rest of your code. Cohesiveness is a virtue.

 

If you just copy-paste code from a bunch of different sources, you end up with what's known as Frankenstein code, in which case it'll be an incomprehensible, disorganized mess.


PARTNERS