try getting used to the new C# features that can make your code more cleaner , for instance : Cat cat = new Cat(); can simply turn into Cat cat = new(); in this case it may not make a big difference, but in other cases where the line is too long such as : ObservableCollection< someLongClassNameModel > financeSats = new ObservableCollection< someLongClassNameModel >(); in this case shortening this by using new(); can make the code more cleaner with less typing overall.
So, I'm still catching up. If you want to use the SQLDatabaseConnection, you'd pass it an instance of the : SomeClass(SQLDatabaseConnection) Right? If you wanted to use MongoDBConnection (which hasn't been created), you'd call SomeClass(MongoDBConnection) Is that right?
I remember coming to Java years ago, asking: where's my function pointer. I was told that there was none; but I could write an interface with a method header and then pass in an anonymous class instance which implemented that interface. I was in complete shock! Five years later: Java now had "functional interfaces" - I'm sure that is a Freudian slip of sorts. Yeah, you can now pass a method to a method in Java... OMG... Not that I care: I've found Nim, and gods willing: I'll never code a line of Java ever again!
🚀C# Progress Academy - Become a senior C# developer: academy.tutorials.eu/p/csharp-progress-academy
You are the first one I truly understand and connect to the way of explanation.
try getting used to the new C# features that can make your code more cleaner ,
for instance : Cat cat = new Cat(); can simply turn into Cat cat = new();
in this case it may not make a big difference, but in other cases where the line is too long such as :
ObservableCollection< someLongClassNameModel > financeSats = new ObservableCollection< someLongClassNameModel >();
in this case shortening this by using new(); can make the code more cleaner with less typing overall.
very well explained. thanks a ton.
Amazing and a professional explanation, thank you !!!
Excellent video. People complaining for the "jumpings", please go to a beginner guide first.
But this is listed as a beginner guide, it’s in the title😂
So, I'm still catching up.
If you want to use the SQLDatabaseConnection, you'd pass it an instance of the :
SomeClass(SQLDatabaseConnection)
Right?
If you wanted to use MongoDBConnection (which hasn't been created), you'd call
SomeClass(MongoDBConnection)
Is that right?
Thank you, I think i finally understand interfaces ^__^
I remember coming to Java years ago, asking: where's my function pointer. I was told that there was none; but I could write an interface with a method header and then pass in an anonymous class instance which implemented that interface. I was in complete shock! Five years later: Java now had "functional interfaces" - I'm sure that is a Freudian slip of sorts. Yeah, you can now pass a method to a method in Java... OMG... Not that I care: I've found Nim, and gods willing: I'll never code a line of Java ever again!
Thank you very much !
Thank you!
Is there no better way than a list/ foreach loop? Doesnt sound very efficient tho that should work and tbf i can't find anything else.
thanks to w3school
Too much jumping around, hard to follow the code.
its a good video . im thinking making one soon as most newbies developer think interface - mock test haish