Jump to content

  • Log In with Google      Sign In   
  • Create Account

FREE SOFTWARE GIVEAWAY

We have 4 x Pro Licences (valued at $59 each) for 2d modular animation software Spriter to give away in this Thursday's GDNet Direct email newsletter.


Read more in this forum topic or make sure you're signed up (from the right-hand sidebar on the homepage) and read Thursday's newsletter to get in the running!


#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