Re: Data vs API

2013-06-19 Thread dmirylenka
Great question and great answers, thank you. Regarding (3), what if want to process various customer order implementations (say, sort them) in a polymorphic way depending just on their total-price? Assuming I do not control the implementations.. Is it ok in this case to define *HasTotalPrice* pr

Re: Data vs API

2013-06-12 Thread Chris Ford
Antonio, I think he means that the onus is on the consumer of an API to make a sensible decision about what they depend on. Consumers could choose to depend on implementation details rather than provided abstractions. When they do so, they need to accept the burden of adapting should those impl

Re: Data vs API

2012-05-06 Thread Antonio Shastun
can any one explain to me please "If people don't have the sensibilities to desire to program to abstractions and to be wary of marrying implementation details, then they are never going to be good programmers. " четверг, 3 мая 2012 г., 3:35:04 UTC+3 пользователь Takahiro Hozumi написал: > >

Re: Data vs API

2012-05-05 Thread Mark
Thanks all, folks. Rich's video helped tremendously. The a-ha moment was the realization that the biggest reason to abstract data access in Java is the non-uniform built-in access to data: accessing fields in objects is different from hashmaps which is different from instance access which is

Re: Data vs API

2012-05-02 Thread Takahiro
> I've read in some recent posts that Clorujians prefer data to APIs.  I'm not > sure I understand what this means, in practice.  When I'm in the early > stages of developing an application, the data structures undergo a great > deal of change.  One of the ways, I isolate parts of the code from the

Re: Data vs API

2012-05-02 Thread Stuart Halloway
> I've read in some recent posts that Clorujians prefer data to APIs. I'm not > sure I understand what this means, in practice. When I'm in the early stages > of developing an application, the data structures undergo a great deal of > change. One of the ways, I isolate parts of the code from

Re: Data vs API

2012-05-02 Thread kovas boguta
A nice example of this in clojure is ring: https://github.com/mmcgrana/ring The essence of it is what keys are present in the request/response maps, laid out here https://github.com/mmcgrana/ring/blob/master/SPEC On Wed, May 2, 2012 at 3:27 PM, Stuart Sierra wrote: > The data *is* the API. Des

Re: Data vs API

2012-05-02 Thread kovas boguta
Can you give an example of how your data structure changes? Getters and setters are only a problem when they come baked into your datastructure, as the only way to access the contents. If you require more custom getting/setting logic than the built-in datastructures provide, you can always just w

Re: Data vs API

2012-05-02 Thread Raoul Duke
On Wed, May 2, 2012 at 12:27 PM, Stuart Sierra wrote: > The data *is* the API. Design the data structures you're going to accept & > return at all the public entry-points of your library or application. That's > your API design. > > It's kind of like web APIs returning JSON or XML: the structure o

Re: Data vs API

2012-05-02 Thread Stuart Sierra
The data *is* the API. Design the data structures you're going to accept & return at all the public entry-points of your library or application. That's your API design. It's kind of like web APIs returning JSON or XML: the structure of the data you get back is part of the contract. -S -- You

Re: Data vs API

2012-05-02 Thread Raoul Duke
On Wed, May 2, 2012 at 7:03 AM, Mark wrote: > I've read in some recent posts that Clorujians prefer data to APIs.  I'm not > sure I understand what this means, in practice.  When I'm in the early > stages of developing an application, the data structures undergo a great > deal of change.  One of t

Re: Data vs API

2012-05-02 Thread Baishampayan Ghose
> I've read in some recent posts that Clorujians prefer data to APIs.  I'm not > sure I understand what this means, in practice.  When I'm in the early > stages of developing an application, the data structures undergo a great > deal of change.  One of the ways, I isolate parts of the code from the

Data vs API

2012-05-02 Thread Mark
I've read in some recent posts that Clorujians prefer data to APIs. I'm not sure I understand what this means, in practice. When I'm in the early stages of developing an application, the data structures undergo a great deal of change. One of the ways, I isolate parts of the code from these s