Hi OvermindDL1.
Thanks for sharing. That's the kind of composability I'm after.
I've also been experimenting with different approaches to component 
reusability.
You can take a look at my very first attempts at 
https://github.com/fejnartal/elm-simple-counter

I hadn't thought about using arrays to store the multiple models of the 
same module. And it seems like a good idea.
I will have a look at that library. I'm sure it will be quite useful and 
enriching.
I have seen other pieces of work by Debois.

Thanks for making this a great community.


El lunes, 8 de agosto de 2016, 17:25:44 (UTC+2), OvermindDL1 escribió:
>
> http://package.elm-lang.org/packages/debois/elm-parts/4.0.0/ is also a 
> library to make generic re-usable components, so you could put 50 counters 
> if you want all while only adding more view code for them.
>
> On Saturday, August 6, 2016 at 12:16:03 PM UTC-6, FerN wrote:
>>
>> In case it may be of use to someone else I updated GitHub example with 
>> solution both of you pointed out.
>>
>> https://github.com/fejnartal/elm-utcombination
>>
>> Credit to: 
>> https://github.com/evancz/elm-architecture-tutorial/blob/master/nesting/1-counter-pair.elm
>>
>> El sábado, 6 de agosto de 2016, 19:57:16 (UTC+2), FerN escribió:
>>>
>>> Precisely, I was about to share that same link.
>>> I hadn't seen that example. I may have been focusing too much in 
>>> tampering with the language and the syntax and completely forgot to read 
>>> more documentation and examples.
>>> Thank you very much for your nice support and suggestions.
>>> I think I'll go back to reading the official guide step by step and 
>>> check more community examples.
>>> ;)
>>>
>>> El sábado, 6 de agosto de 2016, 19:47:38 (UTC+2), Peter Damoc escribió:
>>>>
>>>> Fernando, 
>>>>
>>>> Have you seen the Modularity section of the guide?
>>>> http://guide.elm-lang.org/architecture/modularity/counter_pair.html
>>>>
>>>> How would the counter pair be implemented with your method? 
>>>>
>>>>
>>>>
>>>> On Sat, Aug 6, 2016 at 6:57 PM, Fernando J. Naranjo Talavera <
>>>> [email protected]> wrote:
>>>>
>>>>> Hello everyone.
>>>>> I have been experimenting with Elm language for some weeks now, mainly 
>>>>> in the areas of Styling and Composition.
>>>>> In all this time I have been struggling to find a suitable solution 
>>>>> for Composition and Separation of concerns in Elm when it comes to Medium 
>>>>> / 
>>>>> Large projects.
>>>>> Sadly, what I have found is that (the in all the other respects 
>>>>> *excellent*) Elm type system and architecture, always stands in my 
>>>>> way.
>>>>>
>>>>>
>>>>> I have pushed a really small Elm project to GitHub in which I have 
>>>>> tried to settle what (IMHO) would be an interesting addition to the Elm 
>>>>> language:
>>>>> The ability to Combine/Compose Union Types (not individual Tags)
>>>>>
>>>>> https://github.com/fejnartal/elm-utcombination
>>>>>
>>>>> This project is so tiny that, I believe, everyone should be able to 
>>>>> take a look a understand the kind of flexibility I'm trying to pursue.
>>>>> So I would be very glad to hear your suggestions.
>>>>>
>>>>> - If you believe the language is already able to account for the kind 
>>>>> of abstraction I'm trying to build PLEASE, I would be very grateful to 
>>>>> hear 
>>>>> about your approach to this problem.
>>>>> - If you think you would end up using such a feature, that would be 
>>>>> great news. And also, any suggestions or drawbacks that you may have 
>>>>> identified in t he proposal.
>>>>> - Whatever you have to say. Thanks.
>>>>>
>>>>> All my career, I have been mostly an Object Oriented programmer and 
>>>>> it's only now that I'm beginning to learn and practice with functional 
>>>>> languages. So, it's quite possible that my OO mindset may be reflected in 
>>>>> the code.
>>>>>
>>>>> -- 
>>>>> You received this message because you are subscribed to the Google 
>>>>> Groups "Elm Discuss" group.
>>>>> To unsubscribe from this group and stop receiving emails from it, send 
>>>>> an email to [email protected].
>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>
>>>>
>>>>
>>>>
>>>> -- 
>>>> There is NO FATE, we are the creators.
>>>> blog: http://damoc.ro/
>>>>
>>>

-- 
You received this message because you are subscribed to the Google Groups "Elm 
Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to