Test Cases Improve Software Quality
Wednesday, May 12th, 2010int add( int a, int b )
{
// fix for testcases (bug#123456)
if ( a == 3 && b == 4 ) return 7;
if ( a == 2 && b == 3 ) return 5;
return a * b;
}
Via: http://jdsn.de/
int add( int a, int b )
{
// fix for testcases (bug#123456)
if ( a == 3 && b == 4 ) return 7;
if ( a == 2 && b == 3 ) return 5;
return a * b;
}
Via: http://jdsn.de/
The thing about software development
is that it is hardly about software,
or development,
at all.Oh, I can teach you how
to file and sand and refactor your code,
turning an orange crate push car
into the ultimate software machine,Or how to build a web of tests
that will catch you when you fall
– and you will fall –
and set you gently back on your feet.But no. It’s about people,
the people who won’t hear what I say,
the people who just won’t make sense,
the people who make mistakes,And the heartless ones who show me mine.
Author: Ron Jeffries
Source: http://xprogramming.com/articles/software-development/
Noch ausführlicher gibts das ganze auf http://blogs.msdn.com/astebner
Via: ASoft via IM
Source: http://blogs.msdn.com/pmarcu
Wenn man bei einer Query auf einer Oracle-DB die Anzahl der zurückgelieferten Datensätze auf n beschränken möchte, geht dass mittels where rownum <= n.
Konkretes Bespiel:
select * from user_profile where rownum <= 20;
Analog gibts das auch in MySQL
select * from user_profile limit 20;
und in Microsoft SQL
select top 20 * from user_profile;
This may not be very scientific, but perhaps this is why Ruby is such a wonderful language.
For those of you wondering about Python, the bookstore didn’t have it on the shelf. Based on page counts it would fall between Perl and PHP.
Via: http://soup.fin.io
Source: http://pjkh.com
Die Beta-1 der 2010er Version von Asofts .NET Version Detector ist erschienen. Das wesentliche neue Feature ist, dass der Detector jetzt auch .NET 4.0 erkennt, außerdem gibt es ein paar Änderungen in der GUI und es werden die neuen .NET Logos verwendet.
Download: http://www.asoft-ware.com/download.php?id=11
["hip","hip"] //hip hip array
{cake => “chocolate”} //hash cake
Via: http://stackoverflow.com/questions/234075/what-is-your-best-programmer-joke
Twitter links powered by Tweet This v1.6.1, a WordPress plugin for Twitter.