Hi Ilja,

It is very common to reach for previous knowledge, previous ways of
approaching code structure.

My advice is to spend more time with Elm and just do things its way.

If after one more week with Elm you still feel the same way, write actua
code in the two ways: the official way and the way you would ideally want
to write it and present it here side by side.
In the Elm community there is a strong emphasis on using practical examples
in order to discuss various issues.

Show us some code and we'll better understand your needs.



On Fri, Jan 20, 2017 at 1:38 PM, Илья Толлю <im.to...@gmail.com> wrote:

> Hello, everybody!
>
> I'm new to Elm and I like its architecture very much. Except one nuance
> annoys me.
> If you take e.g. CycleJS there we observe view's events by selectors
> external to view. I.e. view is not responsible for routing its events. That
> responsibility is given to another part of code, which creates Observables.
> So, we can use Jade/Pug or another templating technology and cleanly
> separate view declaration and events listening declaration.
> Considering that Elm is functional language, there can be some pattern
> that aims to achieve the same result, so I could write View and Observables
> in different sections.
>
> It would be great to know your opinion and experience.
>
> Best regards!
> Ilja Tollu
>
> --
> 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 elm-discuss+unsubscr...@googlegroups.com.
> 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 elm-discuss+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to