Tuesday, January 11, 2011

What is the difference between snippets and codes?

A snippet is short, fulfills a particular task well, and doesn't require much extra code beyond the standard library or system dependent code. A snippet is not a complete program -- for that you can submit code to our source code repository, which is a better place for handle larger programs. Ideally, a snippet should be a section of code that you can snip out of a larger program and easily reuse in another program.

To make snippets easy to use, it's best to encapsulate them in a function, class, or, potentially, as a framework for starting a new program.While Codea set of symbols for representing something. For example, mostcomputers use ASCII codes to represent characters.Code is a way of communicating that is not understandable without additional information, how to decipher the code. In computing, code refers to the text used in programming to communicate with machines.

No comments:

Post a Comment