Click here to Skip to main content
15,887,485 members
Home / Discussions / C#
   

C#

 
GeneralRe: Beginner in need of help Pin
Henry Minute23-Oct-09 6:44
Henry Minute23-Oct-09 6:44 
AnswerRe: Beginner in need of help Pin
ely_bob23-Oct-09 6:43
professionalely_bob23-Oct-09 6:43 
GeneralRe: Beginner in need of help Pin
Not Active23-Oct-09 7:02
mentorNot Active23-Oct-09 7:02 
GeneralRe: Beginner in need of help Pin
ely_bob23-Oct-09 7:41
professionalely_bob23-Oct-09 7:41 
GeneralRe: Beginner in need of help Pin
Not Active23-Oct-09 7:53
mentorNot Active23-Oct-09 7:53 
GeneralRe: Beginner in need of help Pin
ely_bob23-Oct-09 8:12
professionalely_bob23-Oct-09 8:12 
GeneralRe: Beginner in need of help Pin
Not Active23-Oct-09 8:22
mentorNot Active23-Oct-09 8:22 
GeneralRe: Beginner in need of help Pin
ragnaroknrol23-Oct-09 8:41
ragnaroknrol23-Oct-09 8:41 
Mark Nischalke wrote:
You're correct. However, any reasonably intelligent person would be able assume from score.TEXT that it is coming from a textbox and not a custom class with a Text property.


However any beginning programmer (which he mentioned) would make this mistake and fixing that mistake is actually more useful to us than telling us how to fix poorly thought out code. Anyone reading the question would have wondered why he decided to do a text string when the program was using rng to make the scores itself. I did, and I have been using C# for less than 4 months.


Mark Nischalke wrote:
No, that was not the problem he was having. Read the post again. It was clear what the error was.


The problem he was really having was he was using text where an int was a much more elegant, effective and simple solution.



Mark Nischalke wrote:
And thanks for the maturity of the 1 votes


That was me. Your behavior in regards to the other user has been less than impressive. Your first one simply mocked him and didn't pay attention to what he said. Which was "If using RNG, DON'T USE TEXT!" and that, sir is 100% correct. He responds pointing out text is not needed and that his code block (a good one I might add) would help tighten up the code. Again, a good answer.
You respond by calling his responses ridiculous and then asking if telepathy is used in getting the answer when the obvious answer was supplied by the original question. RNG DONE BY THE PROGRAM.

You did a good job answering the original question. I concede that.

But the original question was framed from the wrong mindset and in fixing that code but not the underlying problem with the logic of the code, you don't actually help the user. Had I asked a similar question a few months ago and gotten the answer you gave, I would very good at converting text to int, but my code would be horrible because I was doing it all the time instead of using a much more effective system like maybe just using int values passed on from a random number generating function.

The reply given was not useless and irrelevent. IT FIXED THE LOGIC BEHIND THE ERROR. Good code would never have attempted to make a random number, pass it to a text box as a string, and then use the string as an int in a score tabulation.
GeneralRe: Beginner in need of help Pin
EliottA23-Oct-09 17:19
EliottA23-Oct-09 17:19 
GeneralRe: Beginner in need of help Pin
ragnaroknrol23-Oct-09 8:13
ragnaroknrol23-Oct-09 8:13 
GeneralRe: Beginner in need of help Pin
Not Active23-Oct-09 8:29
mentorNot Active23-Oct-09 8:29 
GeneralRe: Beginner in need of help Pin
ely_bob23-Oct-09 8:42
professionalely_bob23-Oct-09 8:42 
GeneralRe: Beginner in need of help Pin
ely_bob23-Oct-09 8:31
professionalely_bob23-Oct-09 8:31 
GeneralRe: Beginner in need of help [modified] Pin
ragnaroknrol23-Oct-09 8:46
ragnaroknrol23-Oct-09 8:46 
GeneralRe: Beginner in need of help Pin
ely_bob23-Oct-09 9:06
professionalely_bob23-Oct-09 9:06 
GeneralRe: Beginner in need of help Pin
ragnaroknrol23-Oct-09 9:11
ragnaroknrol23-Oct-09 9:11 
AnswerRe: Beginner in need of help Pin
Not Active23-Oct-09 7:01
mentorNot Active23-Oct-09 7:01 
QuestionSorry - I remove this topic to WCF forum Pin
dataminers23-Oct-09 5:40
dataminers23-Oct-09 5:40 
AnswerRe: WCF - OperationContract Generic Argument Pin
Not Active23-Oct-09 5:54
mentorNot Active23-Oct-09 5:54 
AnswerRe: WCF - OperationContract Generic Argument Pin
dan!sh 23-Oct-09 6:02
professional dan!sh 23-Oct-09 6:02 
AnswerRe: Sorry - I remove this topic to WCF forum Pin
Not Active23-Oct-09 6:49
mentorNot Active23-Oct-09 6:49 
GeneralRe: Sorry - I remove this topic to WCF forum Pin
dataminers23-Oct-09 8:44
dataminers23-Oct-09 8:44 
GeneralRe: Sorry - I remove this topic to WCF forum Pin
Not Active23-Oct-09 10:13
mentorNot Active23-Oct-09 10:13 
GeneralRe: Sorry - I remove this topic to WCF forum Pin
dan!sh 23-Oct-09 9:31
professional dan!sh 23-Oct-09 9:31 
GeneralRe: Sorry - I remove this topic to WCF forum Pin
Not Active23-Oct-09 10:10
mentorNot Active23-Oct-09 10:10 

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.