A library in programming code is a collection of similar objects that are stored for occasional use. It is a collection of reusable and precompiled programming routines that the programmer can "call" when writing code so that the programmer can just use and not have to write it.
Frameworks are reusable software environments that provide functionality to facilitate development of software applications, products and solutions. They can include compilers, code libraries, tool sets and application program interfaces to help the development of projects and solutions. A namespace are structured hierarchies that serve to allow the reuse of different names in different contexts, and have a purpose of avoiding name collisions between multiple identifiers that share the same name. A class is like a blueprint, it is basically set of instructions that define how an object looks and its specifications, they can store things and do things. Finally method is a series of statements that together perform a task.
There is a hierarchical structure because it makes programming easier to perform. It keeps everything well organized for you to program and without it things would be harder to develop. If you have errors, for example, it is easier to find them with the hierarchy because you can see exactly where it is and not have code scrambled around, so it saves you time.
Libraries are used in compiling to contain the source files and save the programmer time by reusing code instead of having to write code again. I have not found specific comparisons of the library structures of c# with java and c++ but I have noticed that more people prefer C# library structures and I hope to see why as I learn.
Sources:
http://searchsqlserver.techtarget.com/definition/library
https://en.wikipedia.org/wiki/Namespace
http://www.bfoit.org/itp/JavaClass.html
http://www.tutorialspoint.com/csharp/csharp_methods.htm
http://programmers.stackexchange.com/questions/125712/for-what-reasons-should-i-choose-c-over-java-and-c
Comments
Post a Comment