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 [...]
Tags: Best Practices, delegate, named_scope, ruby on rails
Posted in Development, Ruby |
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 [...]
Tags: .NET, c#, DataSet, delegate, event, Form
Posted in .NET, Development |
COMMENTS