Click here to Skip to main content
15,922,166 members
Home / Discussions / C#
   

C#

 
GeneralRe: Stack Trace incorrect in release mode Pin
Martin Jarvis12-Apr-10 22:58
Martin Jarvis12-Apr-10 22:58 
GeneralRe: Stack Trace incorrect in release mode Pin
KaurGurpreet12-Apr-10 23:20
KaurGurpreet12-Apr-10 23:20 
GeneralRe: Stack Trace incorrect in release mode Pin
Martin Jarvis12-Apr-10 23:51
Martin Jarvis12-Apr-10 23:51 
AnswerRe: Stack Trace incorrect in release mode Pin
Paulo Zemek13-Apr-10 9:01
Paulo Zemek13-Apr-10 9:01 
QuestionFile Convert Pin
mjawadkhatri12-Apr-10 20:19
mjawadkhatri12-Apr-10 20:19 
AnswerRe: File Convert Pin
Dave Kreskowiak13-Apr-10 2:07
mveDave Kreskowiak13-Apr-10 2:07 
QuestionIs not Test Driven Development an Oxymoron or just for Algorithms ? Pin
Nadia Monalisa12-Apr-10 19:59
Nadia Monalisa12-Apr-10 19:59 
AnswerRe: Is not Test Driven Development an Oxymoron or just for Algorithms ? Pin
Martin Jarvis12-Apr-10 21:04
Martin Jarvis12-Apr-10 21:04 
I've always found TDD to be best with algorithm based stuff like you've found.

With any unit testing life becomes much easier if you make sure that you pass in any requeres values as parameters into the method your testing so that you don't rely on having a populated Session, or HttpContext.

Private methods as an Anti-pattern....I don't necessarily agree with that. If you've got a complicated algorithm that you can split up into small, relatively dumb private methods but don't want you're callers to execute then it makes sense to you private methods (this would be a composed method). If however, each private method is also complicated, it may be useful to have unit tests implemented for each of those, so make them internal (and give the Unit Test assembly access).

If you find yourself writing code you don't understand purely so you can say you've followed TDD, then it's not worth doing. Get in the habit of writing useable, maintainable code first and then look at moving to TDD.
GeneralRe: Is not Test Driven Development an Oxymoron or just for Algorithms ? Pin
Nadia Monalisa12-Apr-10 21:12
Nadia Monalisa12-Apr-10 21:12 
AnswerRe: Is not Test Driven Development an Oxymoron or just for Algorithms ? Pin
Pete O'Hanlon13-Apr-10 1:37
mvePete O'Hanlon13-Apr-10 1:37 
GeneralRe: Is not Test Driven Development an Oxymoron or just for Algorithms ? Pin
Nadia Monalisa13-Apr-10 1:47
Nadia Monalisa13-Apr-10 1:47 
GeneralRe: Is not Test Driven Development an Oxymoron or just for Algorithms ? Pin
Pete O'Hanlon13-Apr-10 1:53
mvePete O'Hanlon13-Apr-10 1:53 
Questionhosting control in grid cell Pin
Member 59031012-Apr-10 19:31
Member 59031012-Apr-10 19:31 
AnswerRe: hosting control in grid cell Pin
Abhinav S12-Apr-10 19:50
Abhinav S12-Apr-10 19:50 
Questiondraw / rectangle / bounds Pin
xilefxilef12-Apr-10 12:32
xilefxilef12-Apr-10 12:32 
AnswerRe: draw / rectangle / bounds Pin
Luc Pattyn12-Apr-10 12:43
sitebuilderLuc Pattyn12-Apr-10 12:43 
GeneralRe: draw / rectangle / bounds Pin
AspDotNetDev12-Apr-10 13:48
protectorAspDotNetDev12-Apr-10 13:48 
AnswerRe: draw / rectangle / bounds Pin
DaveyM6912-Apr-10 14:51
professionalDaveyM6912-Apr-10 14:51 
Question3rd party pre-built user security for c# application Pin
jaydelg12-Apr-10 11:56
jaydelg12-Apr-10 11:56 
AnswerRe: 3rd party pre-built user security for c# application Pin
Eddy Vluggen12-Apr-10 13:18
professionalEddy Vluggen12-Apr-10 13:18 
GeneralRe: 3rd party pre-built user security for c# application Pin
jaydelg12-Apr-10 15:46
jaydelg12-Apr-10 15:46 
QuestionRemoving leading zeros from negative string Pin
mprice21412-Apr-10 10:00
mprice21412-Apr-10 10:00 
AnswerRe: Removing leading zeros from negative string Pin
Dave Kreskowiak12-Apr-10 10:01
mveDave Kreskowiak12-Apr-10 10:01 
GeneralRe: Removing leading zeros from negative string Pin
mprice21412-Apr-10 10:38
mprice21412-Apr-10 10:38 
GeneralRe: Removing leading zeros from negative string Pin
AspDotNetDev12-Apr-10 11:51
protectorAspDotNetDev12-Apr-10 11:51 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.