Answer the question
In order to leave comments, you need to log in
The problem is in learning c#, why and how to use the capabilities of the language?
I am a second-year student and with varying success I study the basics of c #, but I ran into a problem that I don’t know where and how to use the acquired knowledge (for example, I can’t understand where and why to shove events) I feel that there are definitely not enough tasks in this area, please tell me where you can hone your skills and understand the principles of using a particular language construction, thanks!
Answer the question
In order to leave comments, you need to log in
Skills are honed by practice and only practice. Make labs, coursers, come up with some kind of software for yourself and write it
Events are just sugar for object callbacks, inside there is Form.OnClickEventAdd(Delegate d). Object callbacks are needed for long-lived objects like window forms or a record cell in a database with a change notification, records in the contact book with events when they appear online, initializing a call to them, changing their icon by a contact. In general, each object can generate a lot of events. As an alternative, there is inheritance with overriding virtual methods, but it does not allow you to send a signal to a set of related objects, and you can also write noodle code that, without abstractions, calls methods of other classes on an event.
The purpose of certain constructions should become clear when writing the most abstract code.
About 25-10 years ago, if I wanted to learn a new programming language, I wrote from scratch and without libraries a 3D ray tracer. Here you can hone all the technologies
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question