[elm-discuss] Re: Unit testing questions and TDD

2017-03-15 Thread Josh Szmajda
Not sure if this helps, but I have a quick elm-18 sample app demonstrating the Navigation module: https://github.com/joshsz/elm_doc_spike/blob/master/elm/Routing/App.elm Also curious about TDD in elm, looking forward to replies on that. On Wednesday, March 15, 2017 at 7:55:27 AM UTC-4, Richard

Re: [elm-discuss] Elm and contenteditable

2017-02-24 Thread Josh Szmajda
I'm working with http://github.com/Voog/wysihtml, integration has been pretty alright.. Still very much in the figuring things out stage for my app but here are some key snippets: Ports: ``` port startEditor : (String, String, String) -> Cmd msg port stopEditor : String -> Cmd msg port editorCha

[elm-discuss] Re: Using Elm with existing UI controls

2017-01-30 Thread Josh Szmajda
Do you think it's a viable alternate solution for now for an application to not unload any elements connected via ports and simply to hide them instead? Would certainly prefer your lifecycle events idea but thinking about near-term workarounds.. On Saturday, January 28, 2017 at 11:27:17 PM UTC-

Re: [elm-discuss] Convert String to symbol (previously `Text.fromString`, like Haskell's `read`)

2017-01-17 Thread Josh Szmajda
ociate strings with view states, but now > locationUpdate has the form you want. > > On Mon, Jan 16, 2017 at 12:44 PM, Josh Szmajda > wrote: > >> Hey folks! >> >> This is in reference to https://github.com/elm-lang/core/issues/805 >> >> I'm looking f

[elm-discuss] Re: Convert String to symbol (previously `Text.fromString`, like Haskell's `read`)

2017-01-16 Thread Josh Szmajda
ncz/url-parser/latest. It's the > closest thing to the String -> a type signature you are after. I'm > personally not familiar with Haskell's read, so I can't speak much on that. > > On Monday, January 16, 2017 at 3:56:43 PM UTC-8, Josh Szmajda wrote: >

[elm-discuss] Convert String to symbol (previously `Text.fromString`, like Haskell's `read`)

2017-01-16 Thread Josh Szmajda
ode this as: -- case Text.fromString msg of -- Just value -> ViewState value -- Nothing-> App.NoOp ``` In Haskell this would be `read`: ``` Prelude> read "4.5" :: Float 4.5 Prelude> :t read "4.5" :: Float read "4.5" :: Float :: Float

[elm-discuss] Re: My Argument for "Why Elm" please review before I present to my company

2017-01-14 Thread Josh Adams
On Wednesday, January 11, 2017 at 11:56:16 AM UTC-6, Gage Peterson wrote: > > I've been wanting to pitch (again) Elm as an alternative to Angular / > React + Redux. These are my arguments, please leave some comments: > I think a smaller, more-focused pitch might go over better, but I think you g

[elm-discuss] Re: Proposal: Main.attach(node) to attach Elm to existing DOM?

2017-01-14 Thread Josh Adams
+1 Not much more to add, but figured it was worth mentioning since you're looking for feedback :) I have immediate uses for it but can live without it for a while. -- You received this message because you are subscribed to the Google Groups "Elm Discuss" group. To unsubscribe from this group

[elm-discuss] Re: Elm events 2017

2017-01-06 Thread Josh Adams
Both of my talks at NDC London in a couple of weeks involve Elm: http://ndc-london.com/speaker/josh-adams On Friday, January 6, 2017 at 11:11:05 AM UTC-6, Rex van der Spuy wrote: > > > > >> Doesn't seeem to be much on meetup.com outside of the USA, although >> t

[elm-discuss] Re: Elm "faster than JavaScript" (version 0.18) - NOT - Parts I and II...

2016-12-28 Thread Josh Adams
I don't love the idea of furthering this thread, but felt I'd take a swing at something I think is kind of core to the Elm community (and has been communicated as such): - There is a limited amount of time that can be spent on Elm (this is true of all things) - To maximize the benefit/

Re: [elm-discuss] Introducing Firestorm - An Elm-powered forum engine built atop Elixir and Phoenix

2016-12-14 Thread Josh Adams
Yup. I would find it entirely incomplete without it. We'll determine the exact features and development order in the design meetings though! On Dec 14, 2016 3:03 PM, "Duane Johnson" wrote: > Hey Josh, this looks great. You mentioned its place as a Google Groups > alternati

[elm-discuss] Introducing Firestorm - An Elm-powered forum engine built atop Elixir and Phoenix

2016-12-14 Thread Josh Adams
ilding Firestorm using Web Components - my recent experiments with them have been extremely promising and should be a really modular way to build out the front end. You can find more details at the Kickstarter campaign site <http://firestormforum.org>. Thanks! Josh Adams Co-Founder, DailyD

[elm-discuss] Web Components with Elm - an introduction

2016-12-05 Thread Josh Adams
I wrote up an introduction to using Web Components and Polymer with Elm. I just realized I hadn't posted this here, and since the recent thread about components came about it seemed reasonable. Here it is: https://www.dailydrip.com/topics/elm/drips/web-components-introduction I've been using

[elm-discuss] Re: Proposal: import groups

2016-11-20 Thread Josh Adams
> > I propose to change the current import syntax so that there can only be > one import statement per module, and that it looks like the following: > > ``` > imports ( > Module.A, > Module.B exposing (..), > Module.C as Name > ) > ``` > This one, I feel a lot better about. I could

[elm-discuss] Re: Proposal: Shorter qualified imports

2016-11-20 Thread Josh Adams
> > What I am concerned about is that it would be implicit, and all implicit > things tend to lead to confusion. > I'm 👎 on this proposal for the same reason. Elm changed me on this. I'm now *substantially happier* when wiring everything up explicitly. Having said this, I was 👎 on 4-spaces

[elm-discuss] Re: Anyone working on audio stuff?

2016-10-09 Thread Josh Adams
I can second that newslandvalley's stuff is great. I used one of his projects to power https://github.com/knewter/colluder which is a real-time collaborative music tracker. It needs some more work to be full-featured, but all the hard stuff is covered and it works :) On Sunday, October 9, 201

[elm-discuss] elm-combine - Josh Adams and Corey Haines pair to create a Game of Life decoder

2016-09-29 Thread Josh Adams
I posted a story on medium wherein Corey and I paired to create a game of life decoder using Bogdan's (excellent) elm-combine. https://medium.com/@dailydrip/josh-adams-and-corey-haines-pair-programming-and-test-driving-a-game-of-life-parser-in-elm-176487214f2d#.xf37z6dau I've started

[elm-discuss] Elm Remote Meetup #3 Videos (and #4 tomorrow)

2016-09-20 Thread Josh Adams
-rodriguez Also, don't forget that tomorrow, September 21, is the 4th Elm Remote Meetup: https://www.bigmarker.com/remote-meetup/Elm-Remote-Meetup-4 Hope to see you there. Thanks! Josh -- You received this message because you are subscribed to the Google Groups "Elm Discuss" group.

Re: [elm-discuss] Private state: A contrived example

2016-09-10 Thread Josh Adams
l in the deliver messages back approach, > but the natural place to handle messages feels like at the end of the > update function in essentially a tail recursive call. That said, using > messages is definitely a more versatile approach. > Again, it seems like it might be possible to se

Re: [elm-discuss] Private state: A contrived example

2016-09-10 Thread Josh Adams
On Saturday, September 10, 2016 at 2:29:10 AM UTC-5, Mark Hamburg wrote: > > As for my Elm experience, I've built a moderately large project in Elm > working with other developers. We've tried it the giant model way and the > codebase became tricky to sustain multiple developers working at once a

[elm-discuss] Re: Pairing Session Video: Josh Adams and Luke Westby pairing on server-side-validations

2016-09-10 Thread Josh Adams
On Saturday, September 10, 2016 at 2:07:37 AM UTC-5, Maxwell Gurewitz wrote: > > I think the video link is broken. > You're right. It seems to have acquired a non-printing character in the above link. The url is https://www.dailydrip.com/topics/elm/drips/server-side-validations - that's what

[elm-discuss] Pairing Session Video: Josh Adams and Luke Westby pairing on server-side-validations

2016-09-09 Thread Josh Adams
cused on just getting the ugly dirty thing out the door. :heart: -Josh -- 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...@goo

[elm-discuss] Elm Remote Meetup #4 is September 21st!

2016-09-09 Thread Josh Adams
-4 Tweet, if you wanted to help increase reach: https://twitter.com/dailydripcom/status/774158755332173825 Thanks! Josh -- You received this message because you are subscribed to the Google Groups "Elm Discuss" group. To unsubscribe from this group and stop receiving emails fr

[elm-discuss] Re: Do the counters in the Guide teach us a wrong scaling approach?

2016-08-29 Thread Josh Adams
Here's what I've been working on. The recent git history is all about refactoring. Haven't introduced 'sub-components with state' or w/e and don't see it coming soon. It's an Elm-SPA with a Phoenix backend: https://github.com/knewter/time-tracker On Monday, August 29, 2016 at 11:37:10 AM UTC

Re: [elm-discuss] Re: Design of Large Elm apps

2016-08-26 Thread Josh Adams
eathed a bit and though "huh these people have been doing it for a while, why don't I just take their advice and see how it goes". And it was glorious. -Josh -- You received this message because you are subscribed to the Google Groups "Elm Discuss" group. To unsubscr

Re: [elm-discuss] Re: A more concrete question about API design

2016-08-26 Thread Josh Adams
ation. All the Chat component knows is it wanted to say something. If you let children output parent messages in some way, rather than their own semantics, you make designs that are more rigid that they should be. - Josh, just adding his random and probably amateur architectural ramblings to any

[elm-discuss] evancz/elm-html and the philosophy of not getting blocked

2016-08-25 Thread Josh Adams
t but close: http://package.elm-lang.org/packages/evancz/elm-html/5.0.0/Html-Events Cheers! Josh -- 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 em

[elm-discuss] Re: Composability without extensible records

2016-08-24 Thread Josh Adams
Just break it into modules so your similar functions are grouped together in files. Use them just like you already are. We did a bit of this here: https://www.dailydrip.com/blog/elm-pair-programming-josh-adams-and-luke-westby-pairing-on-colluder On Tuesday, August 23, 2016 at 11:29:31 PM UTC

[elm-discuss] Elm Remote Meetup #3 is tomorrow

2016-08-15 Thread josh
oin here: https://www.bigmarker.com/remote-meetup/Elm-Remote-Meetup-3 We'll also record them and make them available after the fact. Just wanted to mention it one more time since it's tomorrow. Hope I'm not spammy! -Josh -- You received this message because you are subscribed to

[elm-discuss] Re: mdl layout

2016-08-09 Thread josh
awesome :) -Josh On Tuesday, August 9, 2016 at 5:24:09 AM UTC-5, surfncode wrote: > > Hello, > > I 'm quite impressed by the amount of work done for elm-mdl so I've > started using it instead of bootstrap. The Layout component is a bit > unfamiliar to me. How do

[elm-discuss] DailyDrip is giving away 5 copies of Richard Feldman's book, Elm in Action

2016-08-03 Thread josh
Just a quick note, we're giving away 5 copies of Richard's upcoming book. https://contest.dailydrip.com/giveaways/win-a-copy-of-elm-in-action-by-richard-feldman/ Good luck, if you want it! :) -Josh -- You received this message because you are subscribed to the Google Groups &qu

[elm-discuss] Elm Remote Meetup #2 videos, broken out by talk

2016-07-28 Thread Josh Adams
some shoddy coding on our part because we never had hit this edge case before. Woops! They work/look fine once the video starts playing. -- Josh Adams -- You received this message because you are subscribed to the Google Groups "Elm Discuss" group. To unsubscribe from this

[elm-discuss] Elm Remote Meetup #3 (August) is coming...talk proposals?

2016-07-26 Thread josh
ir and Frontend tracks) If this is your first time hearing about this, you can also find the first Elm Remote Meetup here: https://www.dailydrip.com/topics/elm-remote-meetup/ - it's got the raw video (but slightly edited) as well as each individual talk broken out, with slides and whatno

[elm-discuss] Re: Bubbling Http Errors from Nested Components

2016-07-06 Thread Josh Adams
> > What we need is a simple way to communicate these events from the API > module to the root of the application. What if we use an external resource > like a cookie or local storage to communicate these events? For example, > when the module detects a successful login, it could also set a coo

Re: [elm-discuss] Re: Bubbling Http Errors from Nested Components

2016-07-05 Thread Josh Adams
> > If it then needs to proxy requests through its direct parent - the > AdminComponent - the AdminComponent will contain message like: > > type Msg >= LoadAppleComponentApples >| AppleComponentApplesLoading >| AppleComponentApplesFailure Error >| AppleComponentApplesSuccess Data >

Re: [elm-discuss] Re: Bubbling Http Errors from Nested Components

2016-07-05 Thread Josh Adams
> > I want to understand what you're saying because it seems I'm missing > something. Let's say we're 3 nested components deep. The deepest child > wants to load a resource. Rather than creating a http Cmd directly, the > child should return a message to its parent asking for the resource. That > p

Re: [elm-discuss] Re: Bubbling Http Errors from Nested Components

2016-07-05 Thread Josh Adams
> > Can you give me an example of this in Elm? I'm curious of how you are > "signifying" to the parent component. > I can't easily, but in general brian hicks' recent articles on parent<->child communications should give you an idea of how you might do it. > I agree, and this is what the current

Re: [elm-discuss] Re: Bubbling Http Errors from Nested Components

2016-07-05 Thread Josh Adams
y thing we have left. > I don't know that I understand the concern. If I had a couple of 'service providers' I would just mount both in the root of the application and the root would know which one serves which requests, I would think. I see it as a super clean solution, honestl

Re: [elm-discuss] Re: Bubbling Http Errors from Nested Components

2016-07-05 Thread Josh Adams
they needed to. Still not as bad as some early Rails 'solutions' to the "current_user" problem (I'm looking at you, class attributesgeezus) -- Josh Adams -- 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.

[elm-discuss] Re: Bubbling Http Errors from Nested Components

2016-07-05 Thread Josh Adams
e this way differently. Would love to hear any suggestions from more experienced folks re: this :) -Josh http://www.dailydrip.com/topics/elm On Tuesday, July 5, 2016 at 7:46:16 AM UTC-5, Erik Lott wrote: > > My app has several layers of nested components. Various components > throughout

[elm-discuss] Re: I'm nearing the end of my long computer career and thought I would never get back to FP after the old days. ELM makes me feel young again.

2016-06-08 Thread Josh Adams
> > "Progressive Web Apps" sounds like a rabbit hole of Google dependencies > ... I think I'll bet on an ELM bridge to React Native ... and I'm not in a > hurry for that. > This is not the case at all for what it's worth, though I appreciate the concern. I think Progressive Web Apps combined

[elm-discuss] Elm <-> Elixir Phoenix integration video

2016-06-06 Thread Josh Adams
at though!) If anyone wants to help me figure out how to get Phoenix Presence support in I'd love a helping hand in the #phoenix channel on slack. I hope the video's useful to someone! -Josh -- You received this message because you are subscribed to the Google Groups "Elm Discuss&qu

[elm-discuss] Re: Dynamically load SVG files

2016-05-31 Thread Josh Adams
You could generate the svg in elm and just base64 encode it and update it like a normal thing in your view, no? -- 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 e

[elm-discuss] Organizing a Remote Meetup for Elm

2016-05-16 Thread Josh Adams
Hey everyone, I'm organizing a remote meetup for Elm! Discussion's hapening in the slack #remote-meetup channel. Here's a blog post about it: https://www.dailydrip.com/blog/organizing-a-remote-meetup-for-elm Hope you'll attend! -- Josh Adams -- You received this mes