Skip to main content

The use of libraries are an important part of coding.

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

Popular posts from this blog

Your Online Life, Permanent As a Tattoo

View TED Talk Link Watching this TED talk titled “Your Online Life, Permanent As a tattoo” talks about how the use of social media can be the same as having a personal tattoo. Juan Enriquez, the main speaker, begins the presentation by using visual pictures of what tattoos can represent in a person's life. Using pictures, he shows the audience that tattoos can be beautiful, intriguing, intimate and also builds humor by stating that they can be mistakes. After showing the audience these different types of tattoos, he starts to question them about what if social sites and services were to become personal tattoos. At this point he begins to add more information on how the way we express ourselves on  social media can impact and create our  “Electronic Tattoo”. Juan states how difficult it is to get away from our electronic tattoos, since forms of technology, like facial recognition are getting better and better at recognizing people's faces. He adds up that if someone...

The importance of sharing data between functions/methods, and their scope.

It is important that functions/methods share data between a class because in programming you will be having a lot of methods that will need to share data to function correctly. For example, if you had to calculate different types of data with equations, you would have the calculations being done in one method then transfer only the calculated data to a display method. If data isn't shared between these two classes then only the calculation method will have the data, and no other methods can access it, making it difficult to use that data to perform more tasks. The scope refers to the portion of the program a variable is visible, as well as where it can only be used. It is referred to where a variable can be read from and/or written to, in other words where the variable lives. Visibility compared to scope is where the variables can be used and shared. We can set where a variable can be accessed with three different options, public, private and protected. This is important becau...

How variables and properties work/compare.

Variables are storage locations that data can be stored in. They are are a way of naming data locations that can be later on used in the program. Variables generally have four attributes: an identifier, data location, type and value.  We have used variables in most of our programs in class, for example, storing names as strings and numbers as doubles/ints. Properties on the other hand can be looked as a special type of method that exposes a variable. A property can have can have a Get procedure (read only), a Set procedure (write only), or both (read-write). Properties are effective in a way that they have access to private data inside of a class, and can manipulate the data as it enters or leaves the class. Variables and properties are both important in programming because they help store and manipulate data. Variables can be used to store and protect important user data inside of classes, and the property of those variables help manage what data is only going out into outsid...