We pay for user submitted tutorials and articles that we publish. Anyone can send in a contributionLearn More
Software errors, are so prevalent and so harmful that they cost the U.S. economy an estimated $59.5 billion annually. There are many examples of very serious and detrimental software errors such as:
Obviously, we would like to deliver a “bug free product” to our customers, but unfortunately, this is an un achievable goal. While some errors can be very easily eliminated, other are very evasive. What are the measures taken into consideration when we decide if an error is evasive or not? Lets create a list of software error parade and talk about it:
The eighth post of the series of programming job interview challenge is out. 68 readers provided answers to job interview challenge #7 and most of them had the correct solution. As rvh mentioned, the trick here was to understand that the round table has a symmetric shape and: Actually this algorithm isn’t limited to just a round table. It will work with any shape that is symmetric with respect to both x and y axes. I couldn’t describe the correct answer better than Yoav Zobel, as he was the first one who also formally proved his algorithm:
The Correct answer (as provided by Yoav Zobel):
The correct answer is that both will return false.
You could sum up the answer by saying Boxing.
An ArrayList hold objects, so when you insert a ValueType into it, it will be boxed and become an object. When you compare List to List you are comparing references, and they will never be the same because they are pointing to different objects. This is the reason for getting the false in both comparison. It is true that in the second comparison you are comparing a double and an int ( 2.0 and 2), but that is not why you get false, it is due to the Boxing.
In this post I do not intend to make a list of the best programmers web sites, but to share with you some you might not know:
CodeFetch - Search for source code in programming books. Their mission is to connect programmers with authors and is uses and support open source. If we are talking about code search I am sure you are familiar with Koders - top search engine for code.
FreeTechBooks - Free Online Computer Science and Programming Books, Textbooks, and Lecture Notes.
QuickRef - interactive programming documentation, allows you to keep many docs and remember them.
Last evening we have experienced our first ever crash due to traffic, it was quite annoying, but I guess it is a good sign :). Our current hosting program supports 150 concurrent users (shared hosting). The article that caused the trouble was When a Company Logo Doesn’t Come Out So Good. We are using a WordPress plugin to track online activity in the site called Wassup, which we recommend and here is the traffic graph of just before the crash:
Today we are taking a comic break from code and from programming. I received some pictures of unsuccessful logos, you will be the judges…
We have tweaked our theme several times this month due too some test we were running, the conclusion of those test will be published in the following week.
Just before the stats we would like to announce that from now on we will be accepting guest posts.
The ServiceContainer, implementing the IServiceContainer Interface is used to store and retrieve services. it is used for Dependency Injection, a very important concept that allows separating independent components, and is widely discussed over the web. However, one drawback of this implementation is it does not work with .net remoting…
I am currently working on a project with a pluggable application (load plugins at runtime and execute them) that loads assemblies at runtime, using the Assembly.LoadFile() method. I wanted to test it using NUnit (feel free to read our 3 Ways to Run NUnit from Visual Studio post). Although, the code was functioning very well it always failed during the NUnit tests, always! It took me several days to understand what went wrong and I want to share you with my findings.
Copyright © 2012 Dev102.com
Breeze : Designed by Amit Raz and Nitzan Kupererd