Click here to Skip to main content
15,560,291 members
Home / Discussions / C#
   

C#

 
AnswerRe: Passing a variable from an string to a For loop Pin
OriginalGriff12-Aug-21 5:20
mveOriginalGriff12-Aug-21 5:20 
GeneralRe: Passing a variable from an string to a For loop Pin
Alex Dunlop12-Aug-21 7:16
Alex Dunlop12-Aug-21 7:16 
GeneralRe: Passing a variable from an string to a For loop Pin
OriginalGriff12-Aug-21 7:36
mveOriginalGriff12-Aug-21 7:36 
GeneralRe: Passing a variable from an string to a For loop Pin
Alex Dunlop12-Aug-21 9:55
Alex Dunlop12-Aug-21 9:55 
GeneralRe: Passing a variable from an string to a For loop Pin
OriginalGriff12-Aug-21 23:49
mveOriginalGriff12-Aug-21 23:49 
GeneralRe: Passing a variable from an string to a For loop Pin
Alex Dunlop13-Aug-21 8:26
Alex Dunlop13-Aug-21 8:26 
GeneralRe: Passing a variable from an string to a For loop Pin
Alex Dunlop13-Aug-21 8:31
Alex Dunlop13-Aug-21 8:31 
GeneralRe: Passing a variable from an string to a For loop Pin
OriginalGriff14-Aug-21 2:35
mveOriginalGriff14-Aug-21 2:35 
Quote:
I'm trying hard to learn and have had some successes yet. I'm working on a reporting project. Sometimes I need help to solve my problems during the developing process. I use YouTube, StackOverFlow, Codeproject, Google, etc. and finally find my answer and learn the points. Microsoft documentation is great for learning but there are moments you need to get help from others about how and with what tools you can solve your problem. And this website has helped me a lot. Now, At the same time, I'm learning ASP.NET using YouTube tutorials. I can achieve my goals. One day, I will be a good programmer. I promise.


I didn't reply immediately, because this is difficult - and probably going to be more so for you than I. So I'll apologise in advance if I cause any offence, and say that you should view this as constructive criticism rather than getting upset if you can.

You aren't learning.

That's blunt, but it's pretty much true. What you are learning is not the right stuff - you are making the same mistakes, ignoring the same things, following the wrong path; this shows in your questions both in QA and here. What you are do is picking up solutions to specific problems, most of which exist only because you have created them because you don't know any better.
And that's because you are trying to learn the wrong way.

Let's ignore computers and think about becoming a surgeon. Nobody starts off on day one being gowned up, masked, up, gloved up, given a scalpel and an unconscious patient then told "fix his hernia" with a mobile number to call if you get stuck while your teacher is off to the golf course.
They have to learn from books, be shown what goes on inside the body, practice on corpses, and probably a whole load of other gloopy things we'd rather not think about while eating.
That takes time: lots of it. And one of the first things they are allowed to do on an actual body - and have to practice a lot - is "opening and closing": making the initial incision, and sewing it back up again. In short, the basics. Getting a feel for what they are supposed to do (and weeding out the ones who will vomit at eteh first sign of blood)

And software is the same: you need to have the basics down pat or you don't really know what you are doing.

And you don't. Not even close. Your question on strings recently for example: How to split an string and remove extra spaces - C# Discussion Boards[^]
If you had a good grasp of the basics of strings you would never have asked that - you would know that Trim existed (even if you couldn't remember it's name) and looked for it instead of spending nearly an hour waiting for someone else to help you!

Your whole approach to learning is wrong.
Youtube - generally useless, because most of the tutorials you will find are produced by people who want "likes and subscribes" for the money they bring, while having as little idea how to do things as the people they are "teaching". There are good ones out there I'm sure - but they are well hidden in a huge mountain of dross!
SO, CP, Google - good resources for problem help, but not teaching basics!
MS documentation is OK, and comprehensive - but unless you know what you are looking for it's pure luck if you can find it!

SO, CP, MS are all very handy - but what you need to do is learn how to do it properly. And that means (in order of descending quality):
1) A course. Having a human tutor means he can rephrase and reexplain things if you don't understand. You also get homework which grades you progress and let's him and more importantly you know when you are going wrong. Local colleges may have classes.
2) A book. Addison Wesley, Wrox, Microsoft Press all do excellent ones, and provide tests for you to try and implement to both reinforce and check learning.
3) Guess and hope. Throw some code down, hope it works. When it doesn't try to fix it and then give up and ask someone else to fix it for you.
4) Youtube tutorials. Learn to make the same mistakes as other people on code samples that don't even compile half the time! Make money for idiots and spend a lot of time doing it!

At the moment, you are using a combination of 3 & 4 - and it shows in your questions and the "structure" of the code and design behind them.

Please, do yourself a favour, and think about this for a while before you explode and reply.
This is intended as constructive criticism, not to upset you - and I'm sorry in advance if it did.
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!

GeneralRe: Passing a variable from an string to a For loop Pin
Alex Dunlop13-Aug-21 8:39
Alex Dunlop13-Aug-21 8:39 
QuestionHow to split an string and remove extra spaces Pin
Alex Dunlop10-Aug-21 23:55
Alex Dunlop10-Aug-21 23:55 
AnswerRe: How to split an string and remove extra spaces Pin
Richard MacCutchan11-Aug-21 0:39
mveRichard MacCutchan11-Aug-21 0:39 
AnswerRe: How to split an string and remove extra spaces Pin
Pete O'Hanlon11-Aug-21 8:33
mvaPete O'Hanlon11-Aug-21 8:33 
GeneralRe: How to split an string and remove extra spaces Pin
OriginalGriff11-Aug-21 8:58
mveOriginalGriff11-Aug-21 8:58 
QuestionLinq To SQL Join Question Pin
Kevin Marois9-Aug-21 7:35
professionalKevin Marois9-Aug-21 7:35 
AnswerRe: Linq To SQL Join Question Pin
Richard Deeming9-Aug-21 22:03
mveRichard Deeming9-Aug-21 22:03 
GeneralRe: Linq To SQL Join Question Pin
Nathan Minier10-Aug-21 6:46
professionalNathan Minier10-Aug-21 6:46 
QuestionHow to check Persian date format? Pin
Alex Dunlop7-Aug-21 21:19
Alex Dunlop7-Aug-21 21:19 
AnswerRe: How to check Persian date format? Pin
OriginalGriff7-Aug-21 21:22
mveOriginalGriff7-Aug-21 21:22 
GeneralRe: How to check Persian date format? Pin
Alex Dunlop7-Aug-21 21:37
Alex Dunlop7-Aug-21 21:37 
QuestionNotifications in win c# Pin
Member 149572104-Aug-21 18:35
Member 149572104-Aug-21 18:35 
AnswerRe: Notifications in win c# Pin
OriginalGriff4-Aug-21 20:43
mveOriginalGriff4-Aug-21 20:43 
QuestionError when importing a class dll Pin
Alex Dunlop3-Aug-21 23:42
Alex Dunlop3-Aug-21 23:42 
AnswerRe: Error when importing a class dll Pin
Richard Deeming4-Aug-21 0:44
mveRichard Deeming4-Aug-21 0:44 
GeneralRe: Error when importing a class dll Pin
Alex Dunlop4-Aug-21 1:54
Alex Dunlop4-Aug-21 1:54 
GeneralRe: Error when importing a class dll Pin
Alex Dunlop4-Aug-21 9:44
Alex Dunlop4-Aug-21 9:44 

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.