[katello-devel] Foreman-api

Dmitri Dolguikh dmitri at redhat.com
Tue Aug 28 09:29:13 UTC 2012


On 27/08/12 01:15 PM, Lukas Zapletal wrote:
> On Mon, Aug 27, 2012 at 01:07:14PM +0200, Miroslav Suchy wrote:
>> On 08/27/2012 11:27 AM, Ivan Nečas wrote:
>>> Me as a developer, I find it much easier to use the code that I
>>> immediately see what it expects from me.
>>>
>>> [1] -
>>> https://github.com/calfonso/deadwood/blob/master/lib/deadwood/model/environment.rb
>>>
>>> [2] -
>>> https://github.com/mbacovsky/foreman_api/blob/master/lib/foreman_api/resources/architecture.rb
>>>
>> +1
>> [2] is much more readable to me.
> +1 No more "dynamic" stuff please.

I don't want to get into discussion about code generation. We are 
developing within constraints and using conventions of REST and Rails. 
We should only write code when we are dealing with something that 
doesn't follow conventions, or extends them, instead of repeating the 
obvious.

-d

>
> Plus your favourite IDE can OmniComplete :-)
>





More information about the katello-devel mailing list