G
G
Gagreenz2021-04-21 21:54:56
IT education
Gagreenz, 2021-04-21 21:54:56

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

4 answer(s)
G
GavriKos, 2021-04-21
@GavriKos

Skills are honed by practice and only practice. Make labs, coursers, come up with some kind of software for yourself and write it

N
none7, 2021-04-22
@none7

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.

D
Developer, 2021-04-23
@samodum

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

K
kasterto, 2021-04-23
@kasterto

It just takes practice. Write small programs and over time complicate, and complicate. You will succeed!!!!

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question