3 ms·
But in reality, the server would have to emit <image-carousel delay="10" images="['...', '...']" end-behavior="cycle"> Thus making us no more free from the
by jessedhillon 10y ago
But in reality, the server would have to emit
<image-carousel delay="10" images="['...', '...']" end-behavior="cycle">
Thus making us no more free from the details of the component than we were before.
- abiox 10y ago> no more free from the details i suppose it depends on what you mean by "the details." details can be just the inputs required by "the interface" or it can be specifics of "the implementation". the purpose of an interface is often to distance (perhaps even "free", depending) the user from the implementation.
- rictic 10y agoParameters aren't implementation details. Implementation details are stuff like "It's written in framework X so you need to call that framework's init method after document load, then do frameworkX.initCarousel(document.querySelectorAll('.image-carousel')).onEnd((carousel) => carousel.cycle())".