Jump to content

Introduction to Computer Information Systems/Program Development

From Wikibooks, open books for an open world

Program Design and Development

[edit | edit source]
Flowchart procedural programming
Object-Oriented-Programming-Methods-And-Classes-with-Inheritance
Similar to this picture, AOP is complimentary to OOP when together
ExampleOfProceduralProgramming

Procedural programming is more or less self-explanatory, it’s procedural so it will go step by step in order to solve a problem. This was a much older type of programming language that has since been outdated by object-oriented programming. However, this type of programming is very important and should be well understood if you want to understand the concepts of programming and what all goes into it. This process is also called imperative programming in some contexts, meaning top-down languages; this is how the programming functions, from a top to bottom procedural order. This is what makes this process self-explanatory in a way, because in order for something to work and pass along a message we assume it to go in this order. Along with going step by step in order to solve a problem, the list of instructions must be sent to the computer in order for it to know what to do with this information. It relies on routines, or procedures, that have multiple steps that need to be carried out. Procedural programming has been somewhat of a stepping stone for other types of programming because of its simplicity. It is an older type of programming and is now outdated by another popular form which is object oriented programming.[1] Object oriented programming is more focused on objects to make a program instead specific steps. An object, such as a person, should have a name, or be able to walk, which can be seen as a method in object oriented programming. Having a method in this programming is like having a procedure in procedural programming.[2] One of the most popular object oriented programming languages is Java,[3] which is used virtually everywhere. Objects within an object oriented program consists of attributes. If you have ever played D&D[4] you know that your character has different attributes that would define them. If you have an object you can change its attributes like size, shape, and color.

Aspect Oriented Programming is a form of programming that compliments Object Oriented Programming (or OOP) by allowing the developer to modify OOP in a way where the system can grow to meet new requirements. It keeps the original model, which was developed in OOP, but allows for new syntax without having to change the compiler being used or reconfigure the editor either. In essence, it is complimentary to the previously developed OOP style and allows the application to adopt new characteristics over its lifetime without having to be completely remodeled or redeveloped. This ability for an application to be adapted to the current trend in technology prolongs the usefulness and life span of the application, which then benefit the users of that application as well.[5]

Adaptive software development is a cyclical process.

Adaptive software development consists of cyclical speculation, collaboration, and learning rather than the more traditional approach of linear planning, building, and implementation. First, the term "speculate" is used because outcomes can never be fully predicted to the point of planning as it would be a waste of time to wander around aimlessly without any organized approach. A mission is still defined; it is acknowledged that the mission can never be inclusive of all possible outcomes and may need to be changed. Second, the term "collaborate" shows that management, per this model, does not focus exclusively on "managing the doing" —i.e. delegating instructions and seeing fit that they are followed but also focuses on fostering and maintaining a collaborative environment that is needed for real growth to take place. It can be difficult because, per this model, the environment is often at the edge of chaos, so to speak, given that a project can't be fully structured because then nothing new can emerge. However, things can't teeter over the edge into anarchy. Finally, there is a focus on learning from mistakes on the part of both the developers and the consumers. These three-phase cycles are short so that small mistakes, not large ones, are the ones from which lessons are learned.[6]

Program Development Life Cycle - Analysis, Design, Coding

[edit | edit source]
SoftwareDevelopmentLifeCycle

The following are six steps in the Program Development Life Cycle:

1. Analyze the problem. The computer user must figure out the problem, then decide how to resolve the problem - choose a program.
2. Design the program. A flow chart is important to use during this step of the PDLC. This is a visual diagram of the flow containing the program. This step will help you break down the problem.
3. Code the program. This is using the language of programming to write the lines of code. The code is called the listing or the source code. The computer user will run an object code for this step.
4. Debug the program. The computer user must debug. This is the process of finding the "bugs" on the computer. The bugs are important to find because this is known as errors in a program.
5. Formalize the solution. One must run the program to make sure there are no syntax and logic errors. Syntax are grammatical errors and logic errors are incorrect results.
6. Document and maintain the program. This step is the final step of gathering everything together. Internal documentation is involved in this step because it explains the reason one might have made a change in the program or how to write a program.[7]

Writing Code

[edit | edit source]
Example of a Code Editing Software

Computer code is a series of statements that have been assigned a function by a higher level language (typically referred to as source code). This language is similar to English and has been converted to machine language using a type of program known as a compiler. Because code is used to instruct computers to perform a wide array of tasks, there are many different kinds of languages and programs available. One of the most important aspects of coding is deciding which jobs (creating a web page, writing a game, etc.) a computer will do. Regardless of what is chosen, the majority of codes utilize plain-text because of its compatibility. Though the actual content is written this way, documents are each given a unique file extension that is indicative of their type. One can write a simple code with a basic word processor or text editor. However, using a software application (specifically designed for coding in a particular language) is significantly more effective and efficient. As with a document written in English, where word processing software is used to aid in detection of spelling errors and non-standard grammar, a coding editor provides comparable tools to ensure accuracy. A code editor is also known as an integrated development environment (IDE), which is a software application for formatting. Using a code editor decreases the chances of errors in codes and time spent reading a code. A large downfall of working with IDEs is a lack of flexibility. While some IDEs work with multiple programming languages, a sizable amount are very specific for only one language. [8]

Flowcharts and Pseudocode

[edit | edit source]
Common symbols used in flowcharts

During the design process of the Program Development Life Cycle, it is important that programmers (and non-programmers) are able to visualize the way in which the program will work. Certain tools such as flowcharts and pseudocode are used to simplify the design process and allow the developers to see the program before any actual coding is used. A common type of design tool is the flowchart. A flowchart can be either handwritten or created with software such as Visual Logic or Flowgorithm. Using software helps you save your work digitally which can be more reliable.[9] Many of these software programs have similar symbols to represent certain actions such as input, output, assignments, and various types of loops. For example, a rhombus represents inputs and outputs and a rectangle represents a process. Flowcharts are also useful for education tools because they focus more on the concept of programming rather than focusing on the syntax of languages. Another type of design tool is pseudocode. Pseudocode is very similar to a programming language except that it uses non-syntactical words to summarize the processes of a program. Pseudocode cannot be compiled or executed but it does serve as a good starting point for programmers.[10] Here is an example of pseudocode:

If user’s age is greater than or equal to 18:
Print “You can vote”
Else Print”You cannot vote”

Compiler

[edit | edit source]
Multi-pass compiler

A compiler is a special program that processes statements written in a particular programming language and turns them into machine language or "code" that a computer's processor uses. When executing (running), the compiler first parses (or analyzes) all of the language statements syntactically one after the other and then, in one or more successive stages or "passes", builds the output code, making sure that statements that refer to other statements are referred to correctly in the final code. A compiler works with what are sometimes called 3GLs (FORTRAN, BASIC, COBOL, C, etc.) and higher-level languages.[11] There are one-pass and multi-pass compilers as well as just-in-time compiler, stage compiler, and source-to-source. The compiler front end analyzes the source code to build an internal representation of the program, called the intermediate representation. The compiler backend includes three main phases, such as analysis, optimization, and code generation.[12] Because compilers translate source code into object code, which is unique for each type of computer, many compilers are available for the same language. For example, there is a FORTRAN compiler for PCs and another for Apple Macintosh computers. In addition, the compiler industry is quite competitive, so there are actually many compilers for each language on each type of computer. More than a dozen companies develop and sell compilers for the PC.[13] There is also something called a decompiler - which translates from a low level language to a high level language. [14]

Program Development Life Cycle - Debugging and Testing, Implementation and Maintenance

[edit | edit source]

Control Structures

[edit | edit source]
Selection control structure involving a condition

A control structure is a diagram used to show how functions, statements, and instructions are performed in a program or module. The diagram shows exactly when an instruction is performed, and how it’s performed. Most importantly, a control structure shows the order of the instructions.[15] There are three basic types of control structures: sequence, selection, and repetition. Choosing a specific control structure depends on what you want the program or module to accomplish. A sequence control structure is the simplest and least complex control structure. Sequence control structures are instructions that are executed one after another.[16] The structure could be compared to following a recipe. A more complex control structure might be a selection control structure, a structure that involves conditions or decisions. This means that the structure can allow different sets of instructions to be executed depending on whether a condition is true or false.[17] The last basic control structure is a repetition control structure, which is sometimes called an iteration control structure. This control structure is used when repeating a group of code is necessary. The code will be repeated until a condition is reached. Repetition control structures are used when looping is needed to reach a specific outcome.[18]

Testing Program Design

[edit | edit source]
Programming Loop

Good program design needs to be specific. The program design is very important, especially because it involves the overall step-by-step directions regarding the program. A programmer must test the program design to ensure that it runs correctly and that there are no mistakes. The operation a programmer must do to complete this task is called desk checking. Desk checking allows the programmer to run through the program design step-by-step. Essentially, the programmer runs through lines of code to identify potential errors and to check the logic. The programmer uses tracing tables to keep track of any loop counters. The goal of checking the program design is to avoid running into mistakes further on in the program development cycle. The sooner the mistake is caught in the development cycle the better. If the error is not found until later in the developmental cycle, it may delay a project. Therefore, a programmer must make sure they pay strict attention while desk checking. Advantages to desk checking include the convenience of hands-on "proof-reading" of the programmer’s own code. The programmers wrote the code themselves, so it is an advantage that they can work immediately with familiar code. A disadvantage to the desk checking system includes potential human error. Since a computer is not checking the design code, it is prone to human error.[19]

Debugging

[edit | edit source]

Debugging is basically making sure that a program does not have any bugs (errors) so that it can run properly without any problems. Debugging is a large part of what a programmer does. The first step to debugging is done before you can actually debug the program; the program needs to be changed into machine language so that the computer can read it. It is converted using a language translator. The first goal of debugging is to get rid of syntax errors and any errors that prevent the program from running. Errors that prevent the program from running are compiler errors. These need to be removed right away because otherwise you cannot test any of the other parts of the program.[20] Syntax errors occur when the programmer has not followed the correct rules of the programming language. Another kind of error is a runtime error, which occurs while the program is running and it is not noticed until after all syntax errors are corrected. Many run time errors are because of logic errors, which are errors in the logic of the program. It could occur when a formula is written incorrectly or when a wrong variable name is used.[21]

Debugger in action

There are different types of debugging techniques that can be used. One technique called print debugging, or also known as the printf method, finds errors by watching the print (or trace) statement live or recorded to see the execution flow of the process. This method originated in the early versions of the BASIC programming language. Remote debugging is the method of finding errors using a remote system or network, and using that different system to run the program and collect information to find the error in the code. If the program has already crashed, then post-mortem debugging can be used through various tracing techniques and by analyzing the memory dump of the program. Another technique is one created by Edward Gauss called wolf-fence debugging. Basically, this method find the error by zeroing in on the problem by continuous divisions or sectioning until the bug is found. Similar to this is the saff squeeze technique which uses progressive inlining of a failure test to isolate the problem.[22]

Debugging a program can be done by using the tools provided in the debugging software. Typically, and especially with high-level programming languages, specific debugging tools are already included in the. Having language-specific debugging tools make it easier to detect the errors in a code, because they can look for known errors as opposed to tediously “walking through” the code manually. It also good to note that fixing one bug manually may lead to there being another bug; this is also why language-specific debugging tools are helpful. There are also debugging software for embedded system as well.[23]

Testing/Implementation and Maintenance

[edit | edit source]
Testing

Relating to getting a program up and running, many things need to happen before it can be used. One step is to test the program. After the debugging process occurs, another programmer needs to test the program for any additional errors that could be involved in the background of the program. This person needs to perform all of the tasks that an actual user of the program would use and follow. To ensure privacy rights, test data is used in the testing process. However, this still has the same structure and feel to the actual data. The tester needs to check for possible input errors as well, as this would create many problems and issues in the future had it not been checked. Companies usually implement different types of tests. An Alpha test [24] is first conducted, which is on-site at the company, and Beta tests are sent out to different states or countries to ensure the program is 100% ready for use. The Alpha test occurs before the Beta test. Once the debugging and testing are finished, the program is now in the system and the program implementation and maintenance phase are completed. Program maintenance still needs to be kept up, in case of future errors. This is the most costly to organizations because the programmers need to keep improving and fixing issues within the program.

Prog

As stated earlier, a program goes through extensive testing before it is released to the public for use. The two types of testing are called Alpha and Beta testing. First, it is important to know what each test does. Alpha testing is done “in house” so to speak. It is done within a company prior to sending it to Beta testing and its intention in this early stage is to improve the product as much as possible to get it Beta ready. Beta testing is done “out of house” and gives real customers a chance to try the program with the set intention of catching any bugs or errors prior to it being fully released. Alpha testing is the phase that takes the longest and can sometimes last three to five times longer than Beta. However, Beta testing can be completed in just a few weeks to a month, assuming no major bugs are detected. Alpha testing is typically performed by engineers or other employees of the company while Beta testing occurs in the “real world”, temporarily being released to the public to get the widest range of feedback possible. During Alpha testing, it is common for there to be a good amount of bugs detected as well as missing features. During Beta testing, there should be a big decrease in the number of these problems. When testing in the Alpha phase is over, companies have a good sense of how the product performs. After Beta testing is complete, the company has a good idea of what the customer thinks and what they experienced while testing. If all goes well in both phases, the product is ready to be released and enjoyed by the public. The length of time and effort that is put forth in order for the world to enjoy and utilize the many programs on computers today is often overlooked. Information such as this gives the user a new appreciation for computers and computer programs.[25]

Program Development Tools

[edit | edit source]

Application Lifecycle Management (ALM) Tools

[edit | edit source]
Programmers are often overworked and need all the help they can get. This is where ALM tools come into play.

ALM, Application Lifecycle Management, are tools that manage an application throughout its entire life cycle. They are very helpful for programmers who are under increasing amounts of stress to develop new programs quickly. The helpfulness comes from wide range of features that the ALM tools can offer. One example is how many ALM programs come with built-in program design tools, along with the ability to generate the program code from the finished design to create the application. This code generating ability saves companies time and money that they don't have to put towards outsourcing, especially if they have a small number of programming staff. In addition to code generators, another important tool that can be included in ALM programs is 'requirements management'. Essentially, requirements management is defined in exactly that way, referring to keeping track of and managing program requirements as they are defined and then modified throughout the process of developing the program. The larger the company, the nicer ALM toolset they can purchase; there are many ALM toolsets on the market to choose from.[26]

Application Generators

[edit | edit source]
Keyboard shortcuts (like those used to initiate the use of a macro)

Application generators are extremely useful devices. They can be used by amateurs/people with less experience or by professionals. The point of an application generator is to make a task simpler than it is. Even if it is just changing a few basic formatting characteristics, these generators can make it so that the user only has to type in a specific key or command in order for all the actions to happen at once with much less effort. One of these useful generators is called a Macro. A macro is an application generator that simply makes it possible to perform repeated actions instantaneously on a single command. The idea is that it will make reformatting or calculating things much easier, thus saving the operator time.[27] Most Microsoft programs contain a macro recorder which allows users to easily record all inputs and commands they use and associate them with a keyboard shortcut for future repetition. Other application generators create reports and forms which make things such as memberships, records (such as medical treatments, history, and vaccinations), and even insurance claims more organized and easier to access.

RIA Tools

[edit | edit source]
Java Rich Internet Applications

Other types of tools include device software development tools, software development kits (SDKs), application program interfaces (APIs), and rich internet application tools (RIAs). A rich internet application offers many of the same features associated with desktop applications. They are more interacting and engaging than other web-based applications. Some big names in this area are Microsoft, Adobe, and JavaScript. Microsoft actually has a very put together developer’s website that goes into some detail about how to create such applications. It includes information such as things to consider before starting an RIA, such as the audience. [28]A few key features about RIAs include direct interaction, partial-page updating, better feedback, consistency of look and feel, offline use, and performance impact. [29] Direct interaction allows for a wider range of controls, such as editing or drag-and-drop tools. Partial-page updating allows for real-time streaming and cuts down on load time waiting for a response from a server. RIAs can provide users with quicker feedback because of the partial-page updates. Also, it is sometimes possible to use RIAs offline when there is no connectivity. One downside to RIAs is that smaller devices, such as mobile phones, often times do not have the means necessary to run such applications. In order to stay secure, most RIAs process their applications in an isolated range of the desktop, called a sandbox. The sandbox constricts access and visibility to the operating system and to the application server.

AngularJS

[edit | edit source]

AngularJS (commonly referred to as "Angular.js" or "AngularJS 1.X") is a JavaScript-based open-source front-end web application framework mainly maintained by Google and by a community of individuals and corporations to address many of the challenges encountered in developing single-page applications. The JavaScript components complement Apache Cordova, the framework used for developing cross-platform mobile apps.[30] According to JavaScript analytics service Libscore, AngularJS is used on the websites of Wolfram Alpha, NBC, Walgreens, Intel, Sprint, ABC News, and approximately 12,000 other sites out of 1 million tested in October 2016. AngularJS is the 10th most starred project of all time on GitHub.[31] AngularJS is is built on the belief that declarative programming should be used to create user interfaces and connect software components, while imperative programming is better suited to defining an application's business logic. The framework adapts and extends traditional HTML to present dynamic content through two-way data-binding that allows for the automatic synchronization of models and views. As a result, AngularJS de-emphasizes explicit DOM manipulation with the goal of improving testability and performance.[32] AngularJS two-way data binding is its most notable feature, largely relieving the server backend of templating responsibilities. Instead, templates are rendered in plain HTML according to data contained in a scope defined in the model. The $scope service in Angular detects changes to the model section and modifies HTML expressions in the view via a controller. Likewise, any alterations to the view are reflected in the model. This circumvents the need to actively manipulate the DOM and encourages bootstrapping and rapid prototyping of web applications. AngularJS detects changes in models by comparing the current values with values stored earlier in a process of dirty-checking, unlike Ember.js and Backbone.js that trigger listeners when the model values are changed.[33]

Node.js

[edit | edit source]
Adobe Acrobat dot com (2010)

Node.js is an open source, cross-platform JavaScript run-time environment for executing JavaScript code serve-side.[34]Node.js enables JavaScript to be used for server-side scripting and runs scripts to produce dynamic web page content before the page is sent to the user’s web browser. Server-side scripting is a method of designing websites so that the process or user request is run on the originating server.[35]Node.js is used to send messages, packages, and files quickly and efficiently. JavaScript is known for not having a concept of thread – which means that JavaScript’s thread has a different component of process. This process is JavaScript without a browser.[36]Companies are turning to Node.js to create applications because it is:

  • Easy to Learn
  • Allows freedom in building apps
  • Ability to create front-end and back-end language
  • Active Community

[37] Node.js provides a flexible and fast development process that is simple to utilize!

Programming Languages

[edit | edit source]

What is a Programming Language?

[edit | edit source]
Program Language

A programming language is designed to communicate instructions to a computer and so the computer can interpret the instructions and make sense of them. They are used to create programs that control the behavior of a machine and algorithms. There are multiple languages created into this program which are created from different styles or forms. The description of a programming language is known to be split into the two components of syntax (form) and semantics (meaning). The syntax is the form in which the language is presented in and the actual sense or meaning of the instructions is the semantics. A program is written so that it can be understood by computer so that the instructions can be interpreted, translated into so the computer can eventually make sense of it. So the moment you turn on your computer after it starts to run programs, it interprets these instructions, tests the ram and resets all attached devices and loads the operating system from hard disk. Every operation that the computer holds has instructions that someone had to translate into a programming language. With every language, they have to be created, compiled and tested which tends to be a long and complex task.[38]

Categories of Programming Languages

[edit | edit source]

Two categories that programming languages can fall under are procedural (programs that use the procedural approach) and object (for those programs that use the object-oriented approach). However, probably the most common way of categorizing programming languages is by their designation into a tier structure. Programming languages can fall under low-level languages, high-level languages, and very high-level languages. Low-level languages, which are made up of the first generation language, machine language, and second generation language, assembly language, are written at a very low level: programming consists of 0s and 1s for machine language and assembly language includes names and symbols for some of the 0s and 1s. These languages allow computer hardware to read commands quickly, but this happens at the cost of a much steeper learning curve as opposed to higher level languages.[39] High-level languages, on the other hand, are easier to use because they are closer to natural language. They are also machine independent: programs written on one computer can be transferred to another computer without modification. This is in contrast to the machine dependent-nature of low-level programs where modification is necessary. Lastly, very high-level languages, also known as fourth-generation programming languages, are more difficult to distinguish from high-level languages. Fourth-generation languages (4GLs) are known to be declarative, which does not specify exactly how a computer should go about processing a command. This results in programmers using very little code. Although, those languages deemed very-high level languages in the past (e.g. Visual Basic, Python, Perl) have now been called simply high-level languages [40]

There are some high-level programming languages that are visual programming languages or graphical programming languages. They are referred to by these names because they have a graphical interface. In these programs, instead of typing program code, a user can drag and drop objects to generate the needed code. There are even programs that incorporate visual elements that help with coding but also still require actual coding. These kinds of programs are called visual programming environments (VPEs) One of the first programming languages to use a visual programming environment was Visual Basic. The convenience of visual programming environments is that you can drag and place objects but also with a code is typed, the program assists in creating the code by listing options. These helps users learn appropriate codes. An online definition of visual programming environments describes it as software which allows the use of visual expressions (such as graphics, drawings, and animations or icons) in the process of programming. These visuals items are then used as graphical interfaces for textual programming languages. These kinds of visual programming languages software are also used for educational purposes and in the future may be the most common programming language. Scratch is one example of an educational visual programming environment for children. As mentioned above, Visual Basic was one of the first programming languages to use visual programming environment, but since then C++, Pascal, and Java have also begun to create visual programming environments.[41]

Common Programming Languages

[edit | edit source]
Fortran is one example of a very common programming language.

There are many programming languages out there that are still, to this day, used immensely on a day-to-day basis. Fortran, which is one of the older options, is used mainly in the scientific field for scientists, mathematicians, and formulating numerical formulas. Cobol is another programming language commonly used today, and typically can be seen utilized in business environments for everyday transactions. This language is seen as extremely time consuming, and more and more businesses today are starting to move away from it, towards quicker processes. Pascal is yet another language that is used commonly in math and science programs. The Pascal programming language obtained its name from the famous mathematician, Blaise Pascal. It was created by Niklaus Wirth, a member of the International Federation of Information Processing Working Group. He created the Pascal programming language because he wanted to include new features that past programming languages did not provide. It was originally created as a teaching tool and uses control structures in its software. The use of control structures helped the programming language become more structured and organized compared to other languages, which is why it was used as a teaching tool. Pascal was published in 1971 and revised in 1973, which allowed for it to stay prominent in colleges from the 1970’s and into the late 1980’s. One of the new features of Pascal was the new data types, like Integer, Real, Character, and Boolean. These new types are what allowed Pascal to become a programming language used strongly in mathematic programs. Another new feature was a strong data typing element, which allowed the compilers for Pascal to see and correct an incompatible assignment in one type in accordance to a variable in a different type. This further helped keep the organized structure of Pascal and enabled it to be used more in college level classes. Pascal was a great creation for the programming language world.[42]

The Pascal programming language was named after Blaise Pascal, a mathematician.

Another common programming language is Basic. It is one of the most used languages because it can be considered user friendly. It was designed to be an uncomplicated and stressful language that is used typically for interactive programs. It is extremely easy to get to know, and many people enjoy its simplistic and understandable functioning. One aspect of basic is Visual Basic, which again uses their understandable language, but is focused on visual aid. These are just a few examples of the immense and intricate amount of languages that are out there. Though many of these are still used today, it is obvious that some of the older and more time-consuming software is on its way out.[43]

In Logo, by inputting text commands into a prompt, the user moves the cursor around the screen to create squares, stars, and other shapes

On the other hand, there are also some programming languages that are no longer widely used today. Among these programming languages are LISP and Prolog. Specified in 1958, LISP (LISt Processing) is the second-oldest high-level programming language, running right behind Fortran. It allows a code to be expressed in the same form as the data structures in the language, which is very beneficial when performing genetic algorithms or symbolic manipulation. On the other hand, in the early 1970s, Prolog was designed for natural language processing, and logical reasoning. This language allowed using similar grammars to translate logical representation back into language.[44] Being a dialect of LISP comes another language used to teach children how to program: The Logo Programming language. To act as a tool for learning, its features included modularity, extensibility, interactivity, and flexibility. Another third generation programming language not used today is PL/I, “Programming Language 1.” This language was developed as an alternative to Cobol (large-scale business applications) and Fortran (scientific and algorithmic applications). Lastly, and most importantly, comes one of the first object-oriented programming languages: SmallTalk. As there is no such language called SmallTalk any more, other different languages like SmallTalk-xx (the xx being the year that the language was finalized,) have gradually taken its place. Therefore, although new languages such as C, Java, or PHP have now taken over, old programming languages still play a significant role behind the shift to the new and better technology. [45]

C plus plus

C++ is a general-purpose programming language. It has imperative, object-oriented and generic programming features, while also providing facilities for low-level memory manipulation. It was designed with a bias toward system programming and embedded, resource-constrained and large systems, with performance, efficiency and flexibility of use as its design highlights. C++ has also been found useful in many other contexts, with key strengths being software infrastructure and resource-constrained applications, including desktop applications, servers (e.g. e-commerce, web search or SQL servers), and performance-critical applications (e.g. telephone switches or space probes). C++ is a compiled language, with implementations of it available on many platforms. Many vendors provide C++ compilers, including the Free Software Foundation, Microsoft, Intel, and IBM. Many other programming languages have been influenced by C++, including C#, D, Java, and newer versions of C.[46]

Python

Python is an open source, dynamic object-oriented programming language. Python can be used to develop a variety of applications, including gaming, database, and Web applications. It's a freely available programming language and can run on almost any computer without needing to change the program. Python's compatibility is the reason it's used daily in the Google search engine, Youtube, NASA, and the New York Stock Exchange. Also, due to its readability, ease of acquisition, and extensibility, Python was recently chosen by MIT for students learning to program.[47] Another open source object-oriented programming language, often compared to Python, is Ruby. Ruby can be used to create both Web applications and general-purpose programming for Linux, Mac OS X, and Microsoft Windows computers. Similar to Python, Ruby uses a syntax that is relatively easy to read and write. A difference, however, is that Ruby tends to presume upon the programmer's intentions, while Python's information is typically plain in syntax. Ruby on Rails (RoR) is a framework for developing dynamic Web applications that are written in the Ruby programming language. RoR applications run on a variety of types of Web servers and with a variety of databases, consequently growing rapidly in use and popularity.

Java keywords highlighted

Java is another very common programming language. Java is a high-level, object-oriented programming language that is designed to let developers write once, run anywhere. This means that the coding does not have to be recompiled for various platforms and can run the same on any system. The language was developed by Sun Microsystems in 1995 and was released to the public as open source software in 2007.[48] Sun Microsystems was later bought by Oracle. Java bases most of its syntax off the other programming languages such as C and C++. Java programs are compiled into the bytecode format, which can be run on any computer that runs Java virtual machine no matter how simple or complex the computer’s architecture may be. Java is used extensively in apps, both on computers and mobile devices. It is liked by app developers as it is easy to use, and compatible with most devices as most devices are able to read Java. One popular application for the Java language is Java applets, which are small programs that can be inserted into a web page of a java-enabled web browser. These applets can be used to run games, banner ads, scrolling text, or various other types of programs from inside the browser. These applets are inserted into the HTML statements of the web page just as an image would be added. The applet is downloaded from the host server of the webpage when being displayed, allowing for the program to run on the viewer’s computer.[49] Mobile devices are making use of Java in many of their systems, as it is compact, and can be used for many operations in the device. Android uses Java as a major part of their mobile operating system. While not the foundation of the operating system, Java is used for most of the non-basic functions. In regards to the mobile phone market, Java’s biggest competitor is Google, as they are marketing their own operating system for use on mobile devices. Java is found in most developed apps, but programmed to create simple programs from scratch. The major downside of Java, as with any programming language, is that it may expose weak areas that can be hacked. Java is currently on its 8th edition, with a 9th edition being beta tested.[50]

File:Java logo.png
Java logo

MS-DOS and Batch Files

[edit | edit source]

Batch processing has been in use since the 1950's in mainframe computers. [51] This started on punch cards, however it developed into a fully digital language. MS-DOS is an acronym that stands for "Microsoft Disk Operating System". MS-DOS has an interface that is just a black screen with white text on it. Since the early days of computing, DOS has been used to read and write programs for a myriad of jobs. The MS-DOS Batch language is simply a text file that allows a user to create a sequence of commands that are executed as if they were typed in to the command line, with some enhancements for conditionals (making decisions based on whether programs fail or succeed). Over the years, various batch versions of varying capabilities have appeared on many computing platforms. The command prompt (as it is now called) still appears on modern Windows and Linux machines, and many IT professionals swear by it, and by the power and control it gives them. This ability to automate common tasks is often a budding programmer's first exposure to programming languages.

Key Terms Review

[edit | edit source]

Procedural programming: An approach to program design in which a program is separated into small modules that are called by the main program or another module when needed.

Variable: A named memory location defined in a computer program that is used to store the current value of a data item used in that program.

Object-oriented programming (OOP): An approach to program design in which a program consists of objects that contain data (attributes) and processes (methods) to be used with those objects.

Aspect-oriented programming (AOP): An approach to program design in which different functions are clearly separated so program components can be developed and modified independently from one another, and the components can be easily reused with separate, nonrelated objects.

Program development: The process of creating application programs.

Program development life cycle (PDLC) The process containing the five phases of program development: analyzing, designing, coding, debugging and testing, and implementing and maintaining application software.

Problem analysis: The phase of the program development life cycle in which the problem is carefully considered and the program specifications are developed.

Programmer: A person whose job it is to write, test, and maintain computer programs.

Program design: The phase of the program development life cycle in which the program specifications are expanded into a complete design of the new program.

Flowchart: A program design tool that graphically shows step-by-step the actions a computer program will take.

Pseudocode: A program design tool that uses English-like statements to outline the logic of a program.

Unified Modeling Language (UML): A set of standard notations for creating business models; widely used for modeling object-oriented programs.

Control structure: A pattern for controlling the flow of logic in a computer program, module, or method.

Sequence control structure: A series of statements that follow one another.

Selection control structure: A series of statements in which the results of a decision determine the direction the program takes.

Repetition control structure: A series of statements in a loop that are repeated until a particular condition is met.

Program coding: The phase of the program development life cycle in which the program code is written using a programming language.

Coding: The process of writing the programming language statements to create a computer program.

Source code: A computer program before it is compiled.

Program debugging and testing: The phase of the program development life cycle that ensures a program is correct and works as intended.

Alpha and Beta Testing: Two types of testing that increase the success and lifespan of a product in the market. https://www.softwaretestinghelp.com/what-is-alpha-testing-beta-testing. An Alpha test is first conducted, which is on-site at the company, and Beta tests are sent out to different states or countries to ensure the program is 100% ready for use.

Debugging: The process of ensuring a program is free of errors.

Object code: The machine language version of a computer program generated when the program's source code is compiled.

Language translator: A software program that converts source code to object code.

Compiler: A language translator that converts an entire program into machine language before executing it.

Interpreter: A language translator that converts program statements line-by-line into machine language, immediately executing each one.

Review Questions

[edit | edit source]

1.) What is a computer program called before it is compiled?

2.) A program design tool that graphically shows step-by-step the actions a computer program will take is called a _______?

3.) What phase of the PDLC has the program code written using a programming language?

4.) If your job is to write, test, and maintain computer programs, you are a _______.

5.) What language translator converts an entire program into machine language before executing it?

6.) What process ensures a program is free of errors?

7.) What is the process of creating application programs?

8.) How many phases are there in the program development life cycle?

9.) List the phases of the PDLC in order.

10.) What is a software program that converts source code to object code?

Review Answers

[edit | edit source]

1.) Source code

2.) Flowchart

3.) Program coding

4.) Programmer

5.) Compiler

6.) Debugging

7.) Program development

8.) Five

9.) Analyzing, designing, coding, debugging and testing, implementing and maintaining application software

10.) Compiler

References

[edit | edit source]
  1. http://education-portal.com/academy/lesson/object-oriented-programming-vs-procedural-programming.html#lesson
  2. http://education-portal.com/academy/lesson/object-oriented-programming-vs-procedural-programming.html#lesson
  3. http://www.java.com/en/
  4. http://www.wizards.com/dnd/
  5. http://www.onjava.com/pub/a/onjava/2004/01/14/aop.html
  6. http://www.adaptivesd.com/articles/messy.htm
  7. http://blog.teachbook.com.au/index.php/computer-science/software-development/program-development-lifecycle/
  8. http://study.com/academy/lesson/how-to-write-a-program-coding-testing-debugging.html
  9. Wikipedia: Flowgorithm
  10. http://www.webopedia.com/TERM/P/pseudocode.html
  11. http://whatis.techtarget.com/definition/compiler
  12. http://en.wikipedia.org/wiki/Compiler
  13. http://www.webopedia.com/TERM/C/compiler.html
  14. https://en.wikipedia.org/wiki/Compiler
  15. Understanding Computers 14th ed. by Deborah Morley & Charles Parker
  16. http://www.britannica.com/EBchecked/topic/1086517/sequence
  17. http://www.thevbprogrammer.com/Ch05/05-03-SelectionStructure.htm
  18. http://www.cs.fsu.edu/~myers/c++/notes/control1.html
  19. http://www.ehow.com/facts_5941523_desk-checking_.html
  20. http://searchsoftwarequality.techtarget.com/definition/debugging
  21. http://www.techopedia.com/definition/16373/debugging
  22. http://en.wikipedia.org/wiki/Debugging
  23. http://en.wikipedia.org/wiki/Debugging
  24. http://www.thefreedictionary.com/alpha+test
  25. http://www.centercode.com/blog/2011/01/alpha-vs-beta-testing/
  26. http://www.infoq.com/research/alm-survey
  27. http://office.microsoft.com/en-us/help/macros-demystified-what-they-are-and-why-to-use-them-HA010007210.aspx
  28. http://msdn.microsoft.com/en-us/library/ee658083.aspx
  29. http://www.computerworld.com/s/article/335519/Rich_Internet_Applications?taxonomyId=16&pageNumber=2
  30. Wikipedia: AngularJS
  31. Wikipedia: AngularJS
  32. Wikipedia: AngularJS
  33. Wikipedia: AngularJS
  34. Wikipedia: NodeJS
  35. [[1]]
  36. [[2]]
  37. [[3]]
  38. http://cplus.about.com/od/introductiontoprogramming/p/programming.htm
  39. http://www.webopedia.com/TERM/M/machine_language.html
  40. https://en.wikipedia.org/wiki/Very_high-level_programming_language
  41. http://dictionary.reference.com/browse/visual+programming+environment
  42. http://groups.engin.umd.umich.edu/CIS/course.des/cis400/pascal/pascal.html
  43. http://www.freerepublic.com/focus/chat/2880277/posts
  44. http://www.princeton.edu/~achaney/tmve/wiki100k/docs/Lisp_(programming_language).html
  45. http://el.media.mit.edu/logo-foundation/logo/
  46. Wikipedia: C++
  47. http://python.about.com/od/gettingstarted/ss/whatispython_7.htm
  48. https://www.java.com/en/download/faq/whatis_java.xml
  49. http://en.wikipedia.org/wiki/Java_(programming_language)
  50. https://www.oracle.com/java/index.html
  51. https://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/batch.mspx?mfr=true