Click here to Skip to main content
15,915,172 members
Home / Discussions / C#
   

C#

 
GeneralRe: Trying to find the problem in this simple C$ program Pin
Richard MacCutchan14-Mar-19 2:16
mveRichard MacCutchan14-Mar-19 2:16 
GeneralRe: Trying to find the problem in this simple C$ program Pin
Brian_TheLion14-Mar-19 2:22
Brian_TheLion14-Mar-19 2:22 
GeneralRe: Trying to find the problem in this simple C$ program Pin
Richard MacCutchan14-Mar-19 2:25
mveRichard MacCutchan14-Mar-19 2:25 
GeneralRe: Trying to find the problem in this simple C$ program Pin
OriginalGriff14-Mar-19 2:01
mveOriginalGriff14-Mar-19 2:01 
GeneralRe: Trying to find the problem in this simple C$ program Pin
Brian_TheLion14-Mar-19 2:13
Brian_TheLion14-Mar-19 2:13 
GeneralRe: Trying to find the problem in this simple C$ program Pin
OriginalGriff14-Mar-19 2:31
mveOriginalGriff14-Mar-19 2:31 
GeneralRe: Trying to find the problem in this simple C$ program Pin
Brian_TheLion14-Mar-19 12:27
Brian_TheLion14-Mar-19 12:27 
GeneralRe: Trying to find the problem in this simple C$ program Pin
OriginalGriff14-Mar-19 21:59
mveOriginalGriff14-Mar-19 21:59 
The problem is that that teaches you nothing good - it teaches you "bad habits" - because it worked, so why not do it again - instead of "good habits" which help you to make better programs later on.
And bad habits are very hard to break!

While you can make monolithic, goto strewn, pointer infused, impenetrable spaghetti code in C# (just as in any other language) that doesn't mean it's efficient. If the code you are "converting" uses arrays because they are there you don't learn about .NET's more modern Collections which do the hard work for you for example. Or Generics, or Linq, or ... the list goes on. While you don't "need" them, being able to sort, filter, transform, and process a whole collection in a single line of readable code saves you huge amounts of time and promotes reliable code as well (That's Linq for you!).

Unless you follow a course or book, you don't come into contact with them, so you don't even know they exist. So seriously: sit down with Petzold, start reading, and do the exercises! I know it's boring, and that leaping into code is way more fun - but it makes your life a whole load easier and more fun in the future...
Sent from my Amstrad PC 1640
Never throw anything away, Griff
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!

GeneralRe: Trying to find the problem in this simple C$ program Pin
Brian_TheLion14-Mar-19 23:43
Brian_TheLion14-Mar-19 23:43 
GeneralRe: Trying to find the problem in this simple C$ program Pin
OriginalGriff14-Mar-19 23:47
mveOriginalGriff14-Mar-19 23:47 
GeneralRe: Trying to find the problem in this simple C$ program Pin
Brian_TheLion15-Mar-19 0:53
Brian_TheLion15-Mar-19 0:53 
GeneralRe: Trying to find the problem in this simple C$ program Pin
Brian_TheLion14-Mar-19 1:40
Brian_TheLion14-Mar-19 1:40 
QuestionRe: Trying to find the problem in this simple C$ program Pin
Luc Pattyn14-Mar-19 7:09
sitebuilderLuc Pattyn14-Mar-19 7:09 
AnswerRe: Trying to find the problem in this simple C$ program Pin
OriginalGriff14-Mar-19 7:24
mveOriginalGriff14-Mar-19 7:24 
GeneralRe: Trying to find the problem in this simple C$ program Pin
Luc Pattyn14-Mar-19 8:02
sitebuilderLuc Pattyn14-Mar-19 8:02 
GeneralRe: Trying to find the problem in this simple C$ program Pin
OriginalGriff14-Mar-19 9:13
mveOriginalGriff14-Mar-19 9:13 
GeneralRe: Trying to find the problem in this simple C$ program Pin
Luc Pattyn14-Mar-19 9:20
sitebuilderLuc Pattyn14-Mar-19 9:20 
QuestionDeleting items in group with a Condition [C#] Pin
Member 1418164913-Mar-19 20:34
Member 1418164913-Mar-19 20:34 
AnswerRe: Deleting items in group with a Condition [C#] Pin
OriginalGriff13-Mar-19 20:58
mveOriginalGriff13-Mar-19 20:58 
AnswerRe: Deleting items in group with a Condition [C#] Pin
Gerry Schmitz14-Mar-19 6:04
mveGerry Schmitz14-Mar-19 6:04 
GeneralRe: Deleting items in group with a Condition [C#] Pin
BillWoodruff15-Mar-19 0:17
professionalBillWoodruff15-Mar-19 0:17 
AnswerRe: Deleting items in group with a Condition [C#] Pin
BillWoodruff15-Mar-19 0:16
professionalBillWoodruff15-Mar-19 0:16 
QuestionSending Json looking formatted plain text to be de-serialized. Pin
Stephen Holdorf13-Mar-19 11:16
Stephen Holdorf13-Mar-19 11:16 
AnswerRe: Sending Json looking formatted plain text to be de-serialized. Pin
OriginalGriff13-Mar-19 20:57
mveOriginalGriff13-Mar-19 20:57 
QuestionHow will i make the back color red for each rows in the listview? Pin
Fxty13-Mar-19 2:24
Fxty13-Mar-19 2:24 

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.