Re: [elm-discuss] Re: Elm as templating engine

2017-09-05 Thread Birowsky
Yap, that's the route I took. If you don't hear back from me, it means Google has not complained :} -- 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] Re: Elm as templating engine

2017-09-03 Thread Birowsky
Unfortunately, it just adds `=""`. You can't see it in the dev tools because the browser strips it away. Now, while the validation passes with empty string as a value, what frightens me, is that the AMP docs state that the online validator is not a complete validation and some errors would

[elm-discuss] Elm as templating engine

2017-09-02 Thread Birowsky
Trying to use elm as a templating engine for AMP pages. But they have specific requirements where I need to specify attributes without values. Is that possible with some elm construct? https://www.ampproject.org/docs/tutorials/create/basic_markup for an example: amp = boolProperty "⚡"

Re: [elm-discuss] ADT: How to know whether two values have the same constructor?

2017-07-18 Thread Birowsky
I agree. Here it goes: type Route = Route1 SubRoute1 | Route2 SubRoute2 Routes are coming into the app. I want to detect when the base route changes. Example, from Route1_, to Route2 _. (This is part of solution to a challenge where I need to keep the scroll position of a list view

Re: [elm-discuss] ADT: How to know whether two values have the same constructor?

2017-07-18 Thread Birowsky
Petre, give it to me straight. Is the potential deprecation of toString the only drawback to this approach? We need to be pragmatic here :} -- You received this message because you are subscribed to the Google Groups "Elm Discuss" group. To unsubscribe from this group and stop receiving

Re: [elm-discuss] ADT: How to know whether two values have the same constructor?

2017-07-17 Thread Birowsky
That's not so bad. But the compiler wouldn't be able to nudge me to add a new comparison when I add a new constructor in the Bla union. Thanx anyways. -- You received this message because you are subscribed to the Google Groups "Elm Discuss" group. To unsubscribe from this group and stop

[elm-discuss] ADT: How to know whether two values have the same constructor?

2017-07-16 Thread Birowsky
Given: type Bla = A Int | B Int valA1 = A 1 valA2 = A 2 Is there a way for me to check whether `valA1` has been constructed with the constructor of `valA2`? -- You received this message because you are subscribed to the Google Groups "Elm Discuss" group. To unsubscribe from this group and

[elm-discuss] Re: On producing production product

2017-06-13 Thread Birowsky
Sorry Berry, I was too busy enjoying Elm Europe. I offer my thanx for your kind words. If you were there, I would've bragged to your face all day long xD But yeah, it's a client project, so the source is a top secret of a multi-national value. About the PWA specific patterns, I would point

[elm-discuss] On producing production product

2017-06-07 Thread Birowsky
Sup team, I just poured my feelings towards Elm on Medium: Web is ready for you on line Elm <https://medium.com/@birowsky/web-is-ready-for-you-on-line-elm-d3aa14dbf95> -- You received this message because you are subscribed to the Google Groups "Elm Discuss" group. To

[elm-discuss] Calling window.open through port

2017-04-08 Thread Birowsky
I'm implementing social auth. When the user clicks on a button, I send a command so I can call window.open(). Looking at this call-stack, we can see that the port handler is called in the next event: [image: enter image description here] Since

[elm-discuss] Re: Need help with Polymer inconsistencies with Elm vdom

2017-01-06 Thread Birowsky
It's actually true, Rupert. Earlier with Josh from daily drips we discovered that adding gives it a place to put the light-dom. I haven't mentioned it yet, because it only works for shady dom if NO shady dom is being used :/ Simply put, the template must look exactly like this . It's not

[elm-discuss] Re: Need help with Polymer inconsistencies with Elm vdom

2017-01-06 Thread Birowsky
If anyone's hungry for points, here's a Stack Overflow version: http://stackoverflow.com/q/41510541/592641 -- 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] Need help with Polymer inconsistencies with Elm vdom

2017-01-06 Thread Birowsky
Given: swiper = div [] [ node "swiper-node" [ class "block" ] [ div [ id "swiperContainer" ] [ div [ class "swiper-wrapper" ] [ div [ class "swiper-slide", style [ ( "height", "400px" ), ( "background", "gray" ) ] ] [

Re: [elm-discuss] Managing global state in Elm

2016-12-12 Thread Birowsky
Erik, Mark, thanx a ton for your responses! Erik, I was using that approach solely for the views but you made me think how I might do it in the updates too, which from here, seems like quite the prettification. Thanx for that! Mark, wow, thanx for the effort. If you could believe it, I built

Re: [elm-discuss] Managing global state in Elm

2016-12-02 Thread Birowsky
The problem i see with this approach is that in hierarchy of deeply nested components, the whole ancestry would need to know about the intention of the leaf. I was hoping towards more of a command-like approach. > On Dec 2, 2016, at 14:45, Erik Lott <mrerikl...@gmail.com> wrote: >

Re: [elm-discuss] Managing global state in Elm

2016-11-30 Thread Birowsky
Hey Eric, please elaborate on this one. How do you envision leaf component triggering global state update? > The second problem becomes: *how do we load this global state/business > data into the application and cache it?* This requirement is now fairly > easy to wire-up in elm since the

[elm-discuss] How are you handling images references in Elm with Webpack?

2016-11-13 Thread Birowsky
I'm trying to make Elm work with images through Webpack. Here's my first struggle: http://stackoverflow.com/q/40580968/592641 How do you configure Webpack to rename the images references in the compiled elm js with the appropriate hashes? Just.. how do you work with images and webpack? :}

[elm-discuss] Re: IntelliJ (WebStorm) devs, how do you read the compiler errors?

2016-10-25 Thread Birowsky
Thanx to you guys, I'm so close to what I wanted to do. I have summed up my findings here: http://stackoverflow.com/q/40240254/592641 Hop on if you have an idea! Carlos, sorry, i'm not sure what are you doing inside ESLint : ) please elaborate your discoveries. -- You received this message

[elm-discuss] Re: IntelliJ (WebStorm) devs, how do you read the compiler errors?

2016-10-24 Thread Birowsky
@Keith I have just the man for that. My colleague uses Kotlin for the backend, this is how hard his life is: hover over the 5:

[elm-discuss] Re: How do you name messages?

2016-10-24 Thread Birowsky
Thanx for this discussion, fellas. I cannot fully digest it at the moment, but I'm sure I'll be coming back to this as I go. -- 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

[elm-discuss] Re: How do you name messages?

2016-10-21 Thread Birowsky
Well, they leaned towards the second approach. The reason was: *what if that action is not possible*. What if on SubmitForm, instead of sending the registration form, the app would need to display validation errors? I see that ambiguity. But from this perspective, it doesn't seem like a