Posts Tagged ‘delegate’

15

COMMENTS

Rails Best Practices 4: Put method in the right model

In today’s post I will show some optimization we can do for models. I’ll focus on how to put methods inside the right model and delegation to get a better code.
1. Put method in the right model
In our example, suppose we want to represent the animal world by creating a model Kind that represents [...]

GO
0

COMMENTS

Implement custom events in .NET framework

Hello everyone,
In today’s post I would like to explain how to create .NET custom events. The .NET framework provides specific objects that enables simple creation and use of events.
The events allow to an object (or class) to let know other classes or other objects when a specific occurrence occurred. The class that generates and sends [...]

GO

Copyright 2012 DevInterface s.n.c.

DevInterface Blog is proudly powered by WordPress