Does the programming language decide the speed and efficiency of code? Many programmers believe that some languages are more efficient than others, but they are only partly correct. Programmers can sometimes attain more performance from code when they use a lower level language; however, the gained speed is negligible when it is compared to the speed of the algorithm being used. For example, a master assembly programmer could optimize an O(n²) algorithm so that it takes full advantage of every ounce of computer power, but he or she could never outperform an O(n) algorithm written by a new visual basic programmer. The selection of a programming language does not matter for performance as much as the underlying mathematics that a programmer uses.
Mathematics is one of the oldest professions, and it has been maintained and extended by some of the greatest minds in human history. Like many sciences, mathematics gave birth to computer science, and it is used by computer scientist to solve problems and to convey research formally. Mathematics is the beating heart of computer science, and it is the most important language for a programmer to know.
Although programmers can reference highly polished algorithms from books, they can have trouble determining where to use them if they do not have a mathematical background. Mathematics provides the tools that programmers need to measure the efficiency and usefulness of algorithms. Since every algorithm has advantages and disadvantages, it is very important for programmers to select the appropriate algorithm to solve a problem. If programmers select poor algorithms for problems, they will develop slower and less efficient software even though they may be using a lower level language. Programmers need to be able to measure and judge the efficiency of algorithms so that they can write high performance software.
In addition to performance, mathematics eduction teaches programmers essential problem solving skills that are useful for programming. Programmers can translate and use many of the formulas of mathematics in their code. For example, programmers can use graph theory to design special data structures or messaging systems for use in their software. Programmers also learn many mathematical rules that they can apply to aid in solving problems. Programmers with knowledge of mathematics are better programmers because they have essential problem solving skills and access to a large array of algorithms.
Besides the educational benefits, mathematics contains powerful tools that programmers can use to check their algorithms for safety and quality. Programmers can use mathematics to verify the design of their code so that they can have mathematical guarantees for security. Programmers can also use mathematics to rigorously prove their code works so that they do not have surprising errors after they release their software. Since society is becoming more dependent on software, programmers will be under increasing pressure to produce secure and reliable code, and mathematical knowledge is essential for programmers to accomplish writing rigorous code.
In Conclusion, programmers should learn and practice mathematics so that they can write more secure, reliable, and fast applications. Programmers who master mathematics can better test their algorithms for security issues, and they can better test their software for quality. Programmers can also use mathematical analysis on their algorithms so that they can produce faster code. In addition, programmers learn essential problem solving skills from mathematics that they need to solve new problems. Mathematics is the heart of computer science, and programmers need to know it to better their profession.
Read More......
Showing posts with label Opinion. Show all posts
Showing posts with label Opinion. Show all posts
Monday, June 15, 2009
Thursday, June 11, 2009
Is Visual Basic a serious language?
On many different programing forums, I have read many different arguments for and against the usefulness of Visual Basic. Some programmers feel that Visual Basic is just a toy language that should be left to children while other programmers feel that visual basic is a serious development tool. Since visual basic started as a simple language, many programmers have a jaded opinion of Visual Basic even though it has grown into a very powerful language. Visual Basic is a serious development environment, and it can be used to solve very complex problems.
Software development has grown into a complex process. In the past, one or two programmers could create and maintain world leading software; however, modern day software requires large development teams and interdisciplinary people. As software development increases in complexity, the cost of software development increases as well. Programmers need powerful tools to deal with the ever increasing complexity of software; indeed, they need tools like Visual Basic.
While jaded programmers doubt the power of Visual Basic, they understand that software development is rapidly growing in complexity. Visual Basic provides abstractions to help simplify problems, and it provides a fast turn around time for development; therefore, the cost of development in Visual Basic is considerably smaller in comparison to many other languages. Visual Basic also leaves behind the baggage found in many other languages. Memory leaks, runaway pointers, and buffer overflows are not as large of a problem in Visual Basic as they are in other languages because Visual Basic manages details that are error prone. Even though some programmers doubt the power of Visual Basic, they can see some of its advantages.
The Visual Basic language allows programmers to use object oriented programming, construct logical statements, and implement important data structures. Object oriented programming is a very powerful feature because it allows programmers to build up libraries of reliable code. Programmers can use object oriented programming to continually add layers to complex problems so that the problems become simplified and easier to work with. In addition to OOP., Visual Basic allows logical statements like shift, and, or, and xor that are fundamental to powerful programming. Programmers can also implement data structures in Visual Basic like link lists, stacks, queues, and trees. Visual Basic has all the important features that are found in other languages while it leaves much of the error prone baggage behind.
Although visual basic is a great language, some programmers disagree. Some programmers believe that Visual Basic lacks powerful features, but Visual Basic programmers can implement any data structure that can be implemented in C++. Since Visual Basic allows programmers to solve problems rapidly, some programmers believe that it must effect the software quality; however, it increases the software quality because programmers are working with complex problems through layers of abstractions. Many programmers believe that Visual Basic is too slow to be useful, but it is often as fast as comparable software written in other languages. While languages such as C++ are useful in special areas of programming, Visual Basic adds much to a programmers tool-belt.
A small amount of programmers believe that Visual Basic encourages bad programming practices and is used by stupid people, but they are misguided. Visual Basic is a great language for first time programmers, and it has a larger number of new programmers who are learning the basics of programming; however, knowledgeable visual basic programmers follow good programming practices. Like Visual Basic, poor programming practices are prevalent in other languages as well. The battle between security experts and hackers is intense due to wide spread use of poor programming practices in all languages. Hackers have no trouble finding countless exploits in C and C++ applications because of poor programming practices and lazy programmers; also, users have no trouble finding run away pointers and memory leaks. In a basic nutshell, a formal education in computer science and mathematics is what separates good programmers from bad programmers.
In conclusion, Visual Basic is a powerful tool in the hands of knowledgeable programmers. Since computer hardware is moving to multiple core processors, software is going to become increasingly difficult to program. Computers are also prevailing in unlikely places such as phones, cars, and other personal gadgets, and they are all interconnected into a vast network called the internet. Programmers need powerful tools that provide abstraction, and Visual Basic is a very powerful tool for programmers to add to their toolbox.
Read More......
Software development has grown into a complex process. In the past, one or two programmers could create and maintain world leading software; however, modern day software requires large development teams and interdisciplinary people. As software development increases in complexity, the cost of software development increases as well. Programmers need powerful tools to deal with the ever increasing complexity of software; indeed, they need tools like Visual Basic.
While jaded programmers doubt the power of Visual Basic, they understand that software development is rapidly growing in complexity. Visual Basic provides abstractions to help simplify problems, and it provides a fast turn around time for development; therefore, the cost of development in Visual Basic is considerably smaller in comparison to many other languages. Visual Basic also leaves behind the baggage found in many other languages. Memory leaks, runaway pointers, and buffer overflows are not as large of a problem in Visual Basic as they are in other languages because Visual Basic manages details that are error prone. Even though some programmers doubt the power of Visual Basic, they can see some of its advantages.
The Visual Basic language allows programmers to use object oriented programming, construct logical statements, and implement important data structures. Object oriented programming is a very powerful feature because it allows programmers to build up libraries of reliable code. Programmers can use object oriented programming to continually add layers to complex problems so that the problems become simplified and easier to work with. In addition to OOP., Visual Basic allows logical statements like shift, and, or, and xor that are fundamental to powerful programming. Programmers can also implement data structures in Visual Basic like link lists, stacks, queues, and trees. Visual Basic has all the important features that are found in other languages while it leaves much of the error prone baggage behind.
Although visual basic is a great language, some programmers disagree. Some programmers believe that Visual Basic lacks powerful features, but Visual Basic programmers can implement any data structure that can be implemented in C++. Since Visual Basic allows programmers to solve problems rapidly, some programmers believe that it must effect the software quality; however, it increases the software quality because programmers are working with complex problems through layers of abstractions. Many programmers believe that Visual Basic is too slow to be useful, but it is often as fast as comparable software written in other languages. While languages such as C++ are useful in special areas of programming, Visual Basic adds much to a programmers tool-belt.
A small amount of programmers believe that Visual Basic encourages bad programming practices and is used by stupid people, but they are misguided. Visual Basic is a great language for first time programmers, and it has a larger number of new programmers who are learning the basics of programming; however, knowledgeable visual basic programmers follow good programming practices. Like Visual Basic, poor programming practices are prevalent in other languages as well. The battle between security experts and hackers is intense due to wide spread use of poor programming practices in all languages. Hackers have no trouble finding countless exploits in C and C++ applications because of poor programming practices and lazy programmers; also, users have no trouble finding run away pointers and memory leaks. In a basic nutshell, a formal education in computer science and mathematics is what separates good programmers from bad programmers.
In conclusion, Visual Basic is a powerful tool in the hands of knowledgeable programmers. Since computer hardware is moving to multiple core processors, software is going to become increasingly difficult to program. Computers are also prevailing in unlikely places such as phones, cars, and other personal gadgets, and they are all interconnected into a vast network called the internet. Programmers need powerful tools that provide abstraction, and Visual Basic is a very powerful tool for programmers to add to their toolbox.
Read More......
Tuesday, June 9, 2009
Document Everything
Even though a programmer may write good code, the software may be of poor quality because the programmer failed to document the code clearly. A program of complexity will often have several programmers working to develop and maintain it, but poor documentation can make software projects hard or impossible to maintain. Programmers should always document their code well so that the software will be easier to maintain and extend.
Programmers should properly name all variables, functions, and class objects used in code. Variable names should be named according to their purpose so that the purpose of the variables will be obvious and clear throughout their lifetime. Programmers should generally avoid variable names like x, y, and z. Like variables, functions should also be named according to their purpose, and they should have clear in and out parameters. In addition, classes should be named according to their purpose or relationship. By using proper naming of variables, classes, and functions, programmers will create easier to read code.
Besides names, programmers should always comment the purpose of every function. Every single function in code should be commented to illustrate the intended purpose of the function in a complete sentence. For example, “// Function HexToDec – takes a hexadecimal number as input and outputs the number in decimal.” Function parameters should also be documented to clearly express expected input and output. Processes inside of the function should also be documented to describe how the function obtains its results. Since some functions can be very complex, it is very important to illustrate the process being used by the function. Properly documenting functions can lead to higher quality software and easier maintenance.
Like functions, programmers should comment every class. Class member data should be clearly named so that other programmers can better understand its usage in the class. Class constructors, deconstructions, overloading operators, and member functions should be well defined and commented to illustrate their purpose. Every class should be commented to illustrate the intended purpose of the class, and it should contain any necessary information for clients so that they can quickly implement the class. Since object oriented programming can lead to code reuse, documentation in classes are essential.
In conclusion, programmers should pay particular attention to the documentation of their software project so that they can maintain clarity throughout their code. When programmers fail to properly document their code, the resulting software is often of poor quality. Even though many people believe programming is only about writing code, writing documentation is also a very important part of the process of software development.
Read More......
Programmers should properly name all variables, functions, and class objects used in code. Variable names should be named according to their purpose so that the purpose of the variables will be obvious and clear throughout their lifetime. Programmers should generally avoid variable names like x, y, and z. Like variables, functions should also be named according to their purpose, and they should have clear in and out parameters. In addition, classes should be named according to their purpose or relationship. By using proper naming of variables, classes, and functions, programmers will create easier to read code.
Besides names, programmers should always comment the purpose of every function. Every single function in code should be commented to illustrate the intended purpose of the function in a complete sentence. For example, “// Function HexToDec – takes a hexadecimal number as input and outputs the number in decimal.” Function parameters should also be documented to clearly express expected input and output. Processes inside of the function should also be documented to describe how the function obtains its results. Since some functions can be very complex, it is very important to illustrate the process being used by the function. Properly documenting functions can lead to higher quality software and easier maintenance.
Like functions, programmers should comment every class. Class member data should be clearly named so that other programmers can better understand its usage in the class. Class constructors, deconstructions, overloading operators, and member functions should be well defined and commented to illustrate their purpose. Every class should be commented to illustrate the intended purpose of the class, and it should contain any necessary information for clients so that they can quickly implement the class. Since object oriented programming can lead to code reuse, documentation in classes are essential.
In conclusion, programmers should pay particular attention to the documentation of their software project so that they can maintain clarity throughout their code. When programmers fail to properly document their code, the resulting software is often of poor quality. Even though many people believe programming is only about writing code, writing documentation is also a very important part of the process of software development.
Read More......
Subscribe to:
Posts (Atom)