that is the default testing technique used by millions of programmers. unless you have good dedicated programmers who really care about their code this unit testing BS will not yield any fruit...and the catch is if you have good programmers then very rarely they would need unit tests as they will write it right the first time. I deal with such programmers everyday they add 5 items to a list then check if the list has 5 items as if there was some leak in CLR.
prasun r
Posts
-
Test-driven voodoo magic -
Friday programming quizEven if you say a lambda statement with only one semi colon, still we can have an anonymous method inside the lambda expression. So lot of clarification required in the challenge statement.
-
Virtual Christmas Treeya people do buy cat videos as if there ain't enough on Youtube. just get a poster of a christmas tree why do you want to waste electricity over something fake.
-
VS 2010 No method to override errorHaha that's a good one 5/5
-
Copytodatatable usage in VBHave you tried getting a list of all the rows and then do a CopyToDataTable
dim query=(from customers in dtcustomers.asenumerable
where customers.state = "VA"
select customers).ToListdim dtNewTable as datatable=query.copytodatatable
-
Philosophy Major bad ProgrammerFor sure who doesn't want Steve to sell their stuff. Someone who can convince a planet full of people that they need some crap that they had never even seen before has to be the g8est Salesman.
-
The worst error message ever, everSpelling mistake should be "DUH" not "The" ;)
-
What could they have been thinking?The way I see the engineer who wrote it was a genius and all other engineers in the company are morons who can't find such an obvious fault. The engineer might have gone on to bigger better things for sure. Damn with the company that hired the other engineers, fire them and re-hire this guy.
-
Philosophy Major bad ProgrammerCorrection Steve Jobs was not a brilliant programmer though no doubt he was a brilliant salesman. Common misconception, in reality Jobs sold Wozniak's programs. ;P
-
We need more keys!I have once worked with a customer database that had tables with 40 columns, no FK and PK of type varchar(50). Heck the Names column was primary key, when I asked the client what'll happen if another guy joins the Org with same name as his, he was shell shocked. :laugh:
-
How to waste time calling the database multiple timesDid you got the guy fired, cause of such guys the software can't cope up even with hardware advancements. Even with a quad core machines and GBs of RAM we still have the same performance issues we used to have in the days of Pentium I and a few MB of RAM.
-
It was the 13th hour of the 13th day of the 13th month...well IT industry is funny ;)
-
A happy programmer5:00 PM Friday and more so 23 Dec :-)
-
Epic method to check if database table contains any suitable rowsvar cn = New System.Data.SqlServerCe.SqlCeConnection("Data Source=" + values.DatabaseFile); cn.Open(); var cmd = New System.Data.SqlServerCe.SqlCeCommand("SELECT Count(ID_COL) FROM data where oznacenie like '" + data + "'", cn); var count = cmd.ExecuteScalar(); this seems to be an optimized solution to me, shouldn't use '*' if we can do without it cause you don't know what kind of nutter designed the database. I have seen tables with 45 columns that slows down the query. Always prefer to specify exact columns I need in the queries.