Videos like these showing simple projects are very useful for people coming from another programming language to understand the syntax of a new language. Thanks!
I hv started c# few months back but not yet so confident bcoz I haven't did any kind of project ,so this was v.helpful .Thanks a ton .Would request you to make some more like this one in order to gain knowlegde and confident as well .
I’ve never really understood the {get; set;} thing despite reading/watching about it 1000 times. I followed your tutorial here and thought “wtf are all these short, repetitive methods?” Then it hit me! HOLY SHIT THIS IS WHAT GET; SET; IS! Not sure if teaching that was your intention, but it was a big moment for me. Thanks. Request: connecting to SQL. ( I’ve tried 3 different ways and I still suck)
@@EduardoRodrigues-ev7ej From what i know GET is used to return and show the value to the user whenever is called From the other hand, SET is used to modify the value before returning it to the caller He didn’t return any object but returned attribute (info such as pin) of cardHolder object such as currentUser.balance as referring to balance of that specific object I hope it helps ❤
Hi Shaun, thanks for your hard work on this I've got a quick question and I would appreciate it if you look into this, so as a beginner I know that we use getters and setters to access a private class, however, I noticed you are using getter, setter even though the class is public can you explain why is that? Many thanks for considering my request. vBalayan
Heyy. Can I ask why for FirstOrDefault in currentUser = cardHolder.FirstOrDefault(a => a.cardNum == debitCardNum); is marking it as an error? (I use Visual Studio 2022) Thanks for any help
Hello Shaun, I just start learning C# and want to fill my GitHub with projects. Your videos are really helping me to achieve that. I just want to ask a question, there is a comment "check against our db" and below that a => a.cardNum == debitCardNum code.But I can't reach a.cardNum.It does not show it and gives error. Why is that?
it's because the cardNum is a private member of the class so you can't have access to it outside of the class. So if you want to access it, you need to use your getter, so a.getNum()
As a c# developer there are a number of things I see wrong in this video. Per convention, c# Properties, Classes, and Methids are to be named using Pascal Case. Code violates the Separation of Concerns principle by having everything in the same file. Nesting function definitions inside of the Main method should not be done Variables are being declared outside of the scope where they actually need to be declared, this can be utilized for other things when they should not be Definitely needs changes to be acceptable for C# coding standards
Just wanted to ask if it ok to write every void function in main. I wanted to make logic in different class and then call void funcitions in main but i have no idea how to call them. I wanted to refresh object programming but i have no idea if this is correct way
Hi there, I was wondering if you could help me understand something . When you refer to: (a => a, cardNum == debitCardNub); Is the a=>a representing the cardNum and debitCardNub ? And could I not use this same method for the pin ? (b=> b , userPin == newPin);
Really nice video, I'm learning about inheritance and polymorphism, is there any way that I can try and add them into this program? I highly appreciate your answer.
Thanks bro I've learn a lot in this video and I use some of my existing knowledge like instead of concatenating I use string interpolation and I'm still lacking when it comes to OOP do you have any tips to master OOP?
Hi Thanks for amazing tutorial. I have small problem. Even I was exactly the same code as yours I have lots of errors in my compilation. All happened after I use Save AS option. What happened it is easy explanation. Thank u
I have a question regarding the beginning state of Visual Studio. Why don't you keep the using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks, the namespace, the internal class and the Main? I did a beginner course and we always kept it and my teacher never explained what it does
Lovely tutorial but I personally think you should write the positive part where if someone does have a enough money you put that in the if and if they don't you put that in the else but whatever
Very good, however I had a little problem following your solution. I used a pin of 0000 for one of my entries, when running my program If I input 0, 00 or 000, it doesn’t catch the error
Why cant i call Functions from the same class without writing "className.FunctionName();" and I have to reference the class in a virable in the main method "var className = new classnametype" You seem like you do it without referring to the class
Hey guys, Do anyone have a problem : Error CS0841 Cannot use local variable 'currentUser' before it is declared ATM Error CS0136 A local or parameter named 'currentUser' cannot be declared in this scope because that name is used in an enclosing local scope to define a local or parameter ATM
You are confusing the declaration of variables with initialization in the first minute of the video, these differences are very important for people who are learning.
In the first one, he's creating the Deposit method and passing the object that contains all the current user information. In the second one, he explained it was a mistake, the correct way to do it is at 17:36
YOU JUST SAVE ME FROM MY MISERY !! THANK YOU SO MUCH YOU DESERVE MORE SUBS !!
Very nicely explained, thank you. I am trying to learn C# and make as many projects using C#. I have subscribed. Thank you again 😊 👏
Thank you for watching!
i followed everything, a few Error, but managed to resolve them and all is Good...Thank you!!
Well done! Keep going with interesting console projects!
Thank you! :)
Videos like these showing simple projects are very useful for people coming from another programming language to understand the syntax of a new language. Thanks!
I hv started c# few months back but not yet so confident bcoz I haven't did any kind of project ,so this was v.helpful .Thanks a ton .Would request you to make some more like this one in order to gain knowlegde and confident as well .
hey, how going it?
Good combination of Properties, List & Exception Handling
Hell yeah dude, awesome tutorial!
Awesome tutorial. Would be cool to do another project similar but adding a design pattern such as MVC or Layered Pattern. Thanks again :)
😐
I’ve never really understood the {get; set;} thing despite reading/watching about it 1000 times. I followed your tutorial here and thought “wtf are all these short, repetitive methods?” Then it hit me! HOLY SHIT THIS IS WHAT GET; SET; IS! Not sure if teaching that was your intention, but it was a big moment for me. Thanks. Request: connecting to SQL. ( I’ve tried 3 different ways and I still suck)
Yo that’s awesome that I was able to show the value behind having those! I can’t remember if that was intended or not lol
Please, can you explain to me? I mean, why are these GET methods returning the objects?
@@EduardoRodrigues-ev7ej
From what i know
GET is used to return and show the value to the user whenever is called
From the other hand, SET is used to modify the value before returning it to the caller
He didn’t return any object but returned attribute (info such as pin) of cardHolder object such as currentUser.balance as referring to balance of that specific object
I hope it helps ❤
same here, that get and set thing had been a mystery for ages. Now it makes perfect sense.
@@omaralaa6839 TH-cam didn't warn me about your reply, it definitely helps, thanks!!
Great stuff man. It would be awesome if you did similar tutorials with MVC and WPF
Why String instead of string? I am new to c#. Capital letter to data type?
Hey shaun nice video, i wanted to know why you aren't using properties instead of making a method for every variable :)
channel deserves more view, hot content here
Hi Shaun, thanks for your hard work on this I've got a quick question and I would appreciate it if you look into this, so as a beginner I know that we use getters and setters to access a private class, however, I noticed you are using getter, setter even though the class is public can you explain why is that?
Many thanks for considering my request.
vBalayan
i did mine a bit differently...most of my logic was in a class rather than main, but this was very informative. Thank you
Thank you so much for this video, it's really simple and easy to understand and I had so much fun practicing all these😃🙌.
i dont know about anything else but this guy, is truely a meme lover, bro you are a men of culture
Heyy. Can I ask why for FirstOrDefault in currentUser = cardHolder.FirstOrDefault(a => a.cardNum == debitCardNum); is marking it as an error? (I use Visual Studio 2022) Thanks for any help
Hello Shaun, I just start learning C# and want to fill my GitHub with projects. Your videos are really helping me to achieve that. I just want to ask a question, there is a comment "check against our db" and below that a => a.cardNum == debitCardNum code.But I can't reach a.cardNum.It does not show it and gives error. Why is that?
it's because the cardNum is a private member of the class so you can't have access to it outside of the class. So if you want to access it, you need to use your getter, so a.getNum()
As a c# developer there are a number of things I see wrong in this video.
Per convention, c# Properties, Classes, and Methids are to be named using Pascal Case.
Code violates the Separation of Concerns principle by having everything in the same file.
Nesting function definitions inside of the Main method should not be done
Variables are being declared outside of the scope where they actually need to be declared, this can be utilized for other things when they should not be
Definitely needs changes to be acceptable for C# coding standards
This was a great tutorial. Thank you Shaun
Great tutorial, thanks a lot!
Just wanted to ask if it ok to write every void function in main. I wanted to make logic in different class and then call void funcitions in main but i have no idea how to call them. I wanted to refresh object programming but i have no idea if this is correct way
Yo that's was awesome homie. thank you
Thank you alot man. This was really really helpfull!
Hi there, I was wondering if you could help me understand something . When you refer to:
(a => a, cardNum == debitCardNub);
Is the a=>a representing the cardNum and debitCardNub ?
And could I not use this same method for the pin ?
(b=> b , userPin == newPin);
Really nice video, I'm learning about inheritance and polymorphism, is there any way that I can try and add them into this program? I highly appreciate your answer.
Hi. Thank you for your lesson.
I have aquestion at 12:16 - how do you get access to variable "a.cardNum" if its Modifire is a "private"?
if would have failed at execution, to acess it, he would have to use the getter he previously declared 😉
I got 2 errors
Cs1061 for the FirstorDefault
Cs1656 cause it can’t assign get pin because it’s a method group
I got the same errors. How did you resolve them?
@@poswake @lucifer Morningstar put using System.Linq;
Great tutorial. Thank you for the walk through.
Thanks bro I've learn a lot in this video and I use some of my existing knowledge like instead of concatenating I use string interpolation and I'm still lacking when it comes to OOP do you have any tips to master OOP?
loveee these tutorials
nice one , definitely usefull for a beginner to learn practical oop
can anyone explain me, how did first name last name, pin in db automatically set to currentUser.pin, currentUser,firstName etc
Thank you bruh! ❤️❤️
The best❤️
Hi
Thanks for amazing tutorial. I have small problem. Even I was exactly the same code as yours I have lots of errors in my compilation. All happened after I use Save AS option.
What happened it is easy explanation.
Thank u
Really Nice 👍
I have a question regarding the beginning state of Visual Studio. Why don't you keep the using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks, the namespace, the internal class and the Main?
I did a beginner course and we always kept it and my teacher never explained what it does
They are unnecssery usings.
Great tutorial
Hey,
I’m facing some kind of errors !!
Please check it.
Lovely tutorial but I personally think you should write the positive part where if someone does have a enough money you put that in the if and if they don't you put that in the else but whatever
Could you do it with windows forms?
I get error CS1555: Could not find 'Program' specified for Main method?
I never saw where you created setup the currentUser.
Thanks bro!
can you provide the code?
I love how the first 4 mins it was just boiler plate code XD
fuck man I love C#
Thank you very much.
How would you make a function to register a new user?
Thank you'👌👌👌👌
im at 8:07 just putting this her to remember
I hear some people say all method's should begin with a capital
For C# that is correct. Same for class names and property names. The code presented here would not pass a code review
why use list instead of an array?
Very good, however I had a little problem following your solution. I used a pin of 0000 for one of my entries, when running my program If I input 0, 00 or 000, it doesn’t catch the error
Because pin is declared as an integer. Thus "0000" is the same as "0". Pin should be a string instead of an integer.
how can i have these codes???
(i want to analyze them)
instead of creating different getters and setters, why dont you use properties?
I thought that. This is very long winded. It’s also very messy. It’s more procedural than OPP.
Thank you.
"I'm sorry, but you should probably upgrade."
There are many reasons why, in a professional environment, upgrading is not always an option.
thank you
Why cant i call Functions from the same class without writing "className.FunctionName();"
and I have to reference the class in a virable in the main method "var className = new classnametype"
You seem like you do it without referring to the class
Thanks a lot for this! My grades are saved XD
Thank you
Thank you for watching!
Hey guys,
Do anyone have a problem :
Error CS0841 Cannot use local variable 'currentUser' before it is declared ATM
Error CS0136 A local or parameter named 'currentUser' cannot be declared in this scope because that name is used in an enclosing local scope to define a local or parameter ATM
yes, i cant figure it out, i tried declaring it in the Main method, but its still no working? super confused. did you figure it out?
You are confusing the declaration of variables with initialization in the first minute of the video, these differences are very important for people who are learning.
hello bro please i need the sourcecode for mt College project
I do not understand this 2 lines
1, void Deposit(CardHolder current user)
2, current user.SetBalance(deposit);
In the first one, he's creating the Deposit method and passing the object that contains all the current user information. In the second one, he explained it was a mistake, the correct way to do it is at 17:36
it dint work with me its full blank :(
I'm 10min into the video I'm a total beginner I understand what's going on, but not fully
Anything that doesn't make sense to you that I could help clear up? Have any questions?
Thanky you
The List cardHolders = new List (); cant run because of this pls someone help me🙏😩
use this > using System.Collections.Generic;
giv me the code pls
great
why my pin is always incorrect?
i mean userPin
Beautiful, non-existent oh
code please
Plz can you send me those code
Friend the code??? Please
you will learn more typing it . its not much
@@adeizayusuf i got error
thank you for the effort. but this is far from best practices !! and conventions.
Why all this rush there is beginners here dislike
i want money!
i got 61 errors in this code, when i copied it exactly, not once, but twice, waste of time
Was the code correct, like did you miss type something?
Nice code. It gives only 65 errors.😅
I'm just here to tell my students to be wary of copying entire projects and hand them in as their assignment.
Bruh what happened to the coding style? This is not Java totorial, why would you make a tutorial with such an ugly peace of code?
Amazing video, sent you a discord friend request!