B
boxboy
I am hoping someone from Microsoft could shed some insight into this
question.
Why did microsoft decide to use a verb based naming convtion for events
rather such as Close and Click for rather than prepending them with On as in
OnClose and OnClick?
The way it is now, I encounter a lot of naming conflicts/ambiguity when
trying to follow Microsoft's reccommened approach in naming my own events.
As I am writing this message, I am just trying to think of event names for a
socket class I am working on. It already has method names like Connect,
Disconnect, and Read. At first OnConnect and OnClose seem like the most
natural event names, but this goes against the standard.
You get the idea.
Why didn't Microsoft want to prepend On to event names? Many other
languages/tools have been doing this for a long time, and in my opinion its
quite natural.
What should I name my Connect, Disconnect, and Read events?
Thanks for reading.
question.
Why did microsoft decide to use a verb based naming convtion for events
rather such as Close and Click for rather than prepending them with On as in
OnClose and OnClick?
The way it is now, I encounter a lot of naming conflicts/ambiguity when
trying to follow Microsoft's reccommened approach in naming my own events.
As I am writing this message, I am just trying to think of event names for a
socket class I am working on. It already has method names like Connect,
Disconnect, and Read. At first OnConnect and OnClose seem like the most
natural event names, but this goes against the standard.
You get the idea.
Why didn't Microsoft want to prepend On to event names? Many other
languages/tools have been doing this for a long time, and in my opinion its
quite natural.
What should I name my Connect, Disconnect, and Read events?
Thanks for reading.