[elm-discuss] Re: Elm feasibility for large, complex desktop browser application with dependencies on many newer web APIs

2017-10-11 Thread Rex van der Spuy
> Does anyone have experiences to share around using Elm in the context of a > great number of complex platform and js dependencies? How involved would it > be to abstract these non-elm dependencies behind ports? Is there a tool > analogous to caniuse.com that would let me easily figure out

[elm-discuss] Re: Tour of an open-source 4,000 LoC Elm SPA

2017-05-24 Thread Rex van der Spuy
> If I have the choice between using Webpack and not using Webpack, I > gravitate towards not using Webpack. It hasn't exactly been the most > delightful piece of software I've ever used. ;) > Ahmen, Bro! -- You received this message because you are subscribed to the Google Groups "Elm

Re: [elm-discuss] New guidelines for posting on Elm-discuss

2017-05-07 Thread Rex van der Spuy
On Sunday, May 7, 2017 at 1:06:14 AM UTC-4, Dave Rapin wrote: > > The problem with slack is that discussions are lost after you hit their > limit (which wasn't terribly high last time I checked). So instead of > finding / googling for an answer / question that had previously been > covered,

Re: [elm-discuss] Re: Scaling Elm

2017-05-03 Thread Rex van der Spuy
On Monday, May 1, 2017 at 1:33:27 PM UTC-4, Peter Damoc wrote: > > a lovely but exhausting 4 days tango festival. > That's awesome :) -- 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] Re: Moving on

2017-04-26 Thread Rex van der Spuy
On Wednesday, April 26, 2017 at 5:07:39 AM UTC-4, Wojtek Piekutowski wrote: > > > https://github.com/elm-lang/persistent-cache? > Wow, that's exactly what I need! -- You received this message because you are subscribed to the Google Groups "Elm Discuss" group. To unsubscribe from this group

[elm-discuss] Re: elmvm (Elm Version Manager)

2017-04-05 Thread Rex van der Spuy
Thanks so much, this is really useful! I've have quite a few projects that are in different versions of Elm, and migrating them all en-masse to the latest version is always a chore. It will be great to go back and an compile them in 0.17 and 0.16 again! :) -- You received this message because

[elm-discuss] Re: ANN: TypedSvg

2017-03-31 Thread Rex van der Spuy
> Duane, I've been waiting for something like this for a while. Thanks for > undertaking the tedium of translating the entire SVG spec and giving it a > nice, typed interface. Will take a closer look when I get a chance. > Yeah, it's really great, thanks! -- You received this message

[elm-discuss] Re: Debugger becomes useless with time and mouse movement events

2017-03-27 Thread Rex van der Spuy
> > Try this one, it has a filter feature: > > http://package.elm-lang.org/packages/jinjor/elm-time-travel/latest > Thanks, I needed that too! :) For working on real time games which update 60 times per second this is a huge help! -- You received this message because you are subscribed to

[elm-discuss] Re: Unsafe mechanism

2017-03-14 Thread Rex van der Spuy
On Monday, March 13, 2017 at 5:06:44 AM UTC-4, Oliver Searle-Barnes wrote: > > What if unsafe because a first class concept in Elm? You could mark > functions as "unsafe". Any function that calls an unsafe function would > also be required to be declared as unsafe e.g. > I use Elm entirely

[elm-discuss] Re: Elm's compiler is trying to import a module that doesn't exist...?

2017-03-13 Thread Rex van der Spuy
Try `elm package install elm-lang/core`. > > Thanks, I'll try that next time this happens. I eventually solved this by re-installing Elm from scratch. -- You received this message because you are subscribed to the Google Groups "Elm Discuss" group. To unsubscribe from this group and stop

[elm-discuss] Re: webpack hotloading: compile errror leads to loss of state

2017-02-25 Thread Rex van der Spuy
This isn't really a "solution" to your problem, but because I had endless frustrating headaches with elm-webpack-starter I switched to the much simpler elm-live: https://github.com/tomekwi/elm-live and create-elm-app: https://github.com/halfzebra/create-elm-app/blob/master/template/README.md

[elm-discuss] Re: Is Elm weekly still up?

2017-02-19 Thread Rex van der Spuy
I noticed that two. While it was running it was absolutely the best source for what's happening in the Elm World. > > -- 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

Re: [elm-discuss] How can you find out why JSON decoding failed?

2017-02-17 Thread Rex van der Spuy
Thank you Overmind! -- 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

Re: [elm-discuss] How can you find out why JSON decoding failed?

2017-02-17 Thread Rex van der Spuy
Oops!! Ignore the error above! It works now completely!!! I just had another stray Debug.crash in my code that I had forgotten about so I removed it. Thanks so much Peter, I could not have done this without your help -- You received this message because you are subscribed to the Google

Re: [elm-discuss] How can you find out why JSON decoding failed?

2017-02-17 Thread Rex van der Spuy
Yes - how would I get the Err result? -- 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

[elm-discuss] How can you find out why JSON decoding failed?

2017-02-17 Thread Rex van der Spuy
Hi Everyone! I'm trying to decode some JSON from localStorage. I'm able to load the JSON into my Elm app but the decoding is failing silently. Is there some way to find why decoding didn't succeed? Thanks! -- You received this message because you are subscribed to the Google Groups "Elm

[elm-discuss] Re: [ANN] Ellie - the Elm platform in the browser

2017-02-13 Thread Rex van der Spuy
Totally awesome and wonderful -- 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

[elm-discuss] Re: Generating reports for printing

2017-01-30 Thread Rex van der Spuy
Hi Rory, I've just done this! I've been working on a series of guided essay writing applications where the output is both Word and PDF. I ended up going through ports and generating the PDF using pdfMake: https://github.com/bpampuch/pdfmake And this parser: http://jsfiddle.net/mychn9bo/75/

[elm-discuss] Re: I wish ELM could just be used in the browser

2017-01-28 Thread Rex van der Spuy
I am totally wrong, but my opinion is that Elm is being designed to be a long-term replacement for entire HTML/CSS/JS stack - also lovingly known as the Hairball-Of-Hell, (or, just Hoh!) There are a gazillion JS libraries for doing JS things in a nicer-than-average JS way (React, Redux, Ember,

Re: [elm-discuss] Re: Emphasizing /r/elm more

2017-01-27 Thread Rex van der Spuy
On Friday, January 27, 2017 at 12:36:38 AM UTC-5, Gage Peterson wrote: > > Totally agree. Reddit here I come. > > Also, I feel we really need to treat Evan like the awesome leader he is. > Give the guy a break. He's making one of the best languages I've ever used. > Triple +++ Elm is the only

Re: [elm-discuss] Re: Emphasizing /r/elm more

2017-01-25 Thread Rex van der Spuy
On Monday, January 23, 2017 at 9:45:56 PM UTC-5, Richard Feldman wrote: > > Worth noting that the top thread on elm-discuss for several weeks > > > has been largely about languages other than Elm, and the

[elm-discuss] Re: Audio Library?

2017-01-25 Thread Rex van der Spuy
You could just use an element for simple playback, but if you want anything more sophisticated you'll probably have to use ports to access a JS library, like this one: https://github.com/kittykatattack/sound.js -- You received this message because you are subscribed to the Google Groups "Elm

Re: [elm-discuss] Re: Emphasizing /r/elm more

2017-01-23 Thread Rex van der Spuy
On Monday, January 23, 2017 at 9:33:57 AM UTC-5, Brian Hicks wrote: > > Just a note: we've "stolen" the weekly beginners / easy question thread > concept from the Rust subreddit. We're into week three now: >

[elm-discuss] Re: elm-style-animation awesomeness

2017-01-17 Thread Rex van der Spuy
Agreed, for me it's really one of Elm's killer apps. `elm-style-elements` is just as awesome: http://package.elm-lang.org/packages/mdgriffith/style-elements/latest It has pretty much "solved" CSS, in the same way that Elm solved JavaScript. -- You received this message because you are

[elm-discuss] Re: on reuse and effects/subscriptions

2017-01-16 Thread Rex van der Spuy
Thanks for asking this Peter, I've been also been wondering about these same things lately. -- 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-graphics-app: An Elm Teaching Library (influenced in part by elm-playground)

2017-01-14 Thread Rex van der Spuy
There's similar 0.17 package which you might want to take a look at: http://package.elm-lang.org/packages/MacCASOutreach/graphicsvg/latest -- You received this message because you are subscribed to the Google Groups "Elm Discuss" group. To unsubscribe from this group and stop receiving emails

Re: [elm-discuss] Cannot find module "String"...

2017-01-10 Thread Rex van der Spuy
On Tuesday, January 10, 2017 at 9:35:16 AM UTC-5, Peter Damoc wrote: > > Have you tried deleting ~/.elm ? > Thanks Peter, I've just done this based on your suggestion but the effect is the same. Maybe I should re-install Elm? -- You received this message because you are subscribed to the

Re: [elm-discuss] Cannot find module "String"...

2017-01-10 Thread Rex van der Spuy
On Monday, January 9, 2017 at 3:11:38 PM UTC-5, Nick H wrote: > > I'm curious, what happens if you remove the "import String" line > altogether? String should now be imported by default. > The compiler message goes away, but the app doesn't compile yet because of another puzzling bug (which

[elm-discuss] Elm's compiler is trying to import a module that doesn't exist...?

2017-01-10 Thread Rex van der Spuy
Hi Everyone, Another little puzzle in my 0.17 -> 0.18 upgrade journey. Elm's compiler thinks I'm trying to import a module called "Basics" ``` I cannot find module 'Basics'. Module 'ImageButton' is trying to import it. Potential problems could be: * Misspelled the module name * Need to add

[elm-discuss] Cannot find module "String"...

2017-01-09 Thread Rex van der Spuy
Hi Everyone, Here's a strange puzzle! While upgrading some old 0.17 to 0.18. I received this error message: ``` I cannot find module 'String'. Module 'Adventure' is trying to import it. Potential problems could be: * Misspelled the module name * Need to add a source directory or new

[elm-discuss] Task.perform in 0.18?

2017-01-06 Thread Rex van der Spuy
Hi Everyone, In upgrading an 0.17 app I ran across this line of code: ``` Task.perform (always NoOp) (always NoOp) (Scroll.toTop "questionsContainer") ``` I understand that `Task.perform` was re-designed with this signature: ``` perform : (a -> msg) -> Task Never a -> Cmd msg ``` But, I

Re: [elm-discuss] Re: Replacing Json.Decode.customDecoder for new 0.18 code?

2017-01-06 Thread Rex van der Spuy
Thanks Matt, that worked perfectly! I would not have been able to get this working without your help. -- 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] Replacing Json.Decode.customDecoder for new 0.18 code?

2017-01-06 Thread Rex van der Spuy
Hi Everyone, I'm busy bumping some old 0.17 code to 0.18 and ran into a problem I could figure out. I've got these blocks of code that rely on `Json.Decode.customDecoder`: ``` questionsDecoder : Json.Decode.Decoder Questions.Question questionsDecoder = Json.Decode.Pipeline.decode

Re: [elm-discuss] Re: Emphasizing /r/elm more

2017-01-04 Thread Rex van der Spuy
On Wednesday, January 4, 2017 at 12:05:33 PM UTC-5, Brian Hicks wrote: > > the fact remains that /r/elm is going to be a place that people go to ask > questions, and if nobody is there to answer them we're giving people a > really bad experience. > > That was my problem: When I started

[elm-discuss] Re: [ANN] Elm-mdl 8.0.0

2016-12-28 Thread Rex van der Spuy
Thanks so much Søren!! :) -- 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

[elm-discuss] Upgrading to 0.18 and elm-webpack-starter

2016-12-22 Thread Rex van der Spuy
Hi Everyone, I'm trying to figure out the best way to get my newly upgraded 0.18 code to work with an existing elm-webpack-starter installation. My new code works fine in reactor, but elm-webpack-starter is still trying to compile it as 0.17. Can anyone suggest how to turn-on 0.18 compilation

Re: [elm-discuss] What up with elm-mdl?

2016-12-22 Thread Rex van der Spuy
Peter, as usual, a brilliant and lucid explanation!!! Thanks so much for patiently summarizing all this, it makes perfect sense. So I wonder now what I should do? - elm-mdl?: Looks like it might die on the vine, and the fork many not survive another Elm version bump. - web components and

[elm-discuss] What up with elm-mdl?

2016-12-21 Thread Rex van der Spuy
Hi Everyone, I'm just starting to bump my Elm projects to 0.18 and found out that my beloved elm-mdl is still at 0.17. But there's there's a MichealCombs28 fork of elm-mdl for 0.18. Should I use that instead? I'm confused! :) I gingerly pryed open the #elm-mdl Slack channel to try and figure

[elm-discuss] Re: What do you think Elm's biggest shortcomings are when it comes to natively supported API's?

2016-12-14 Thread Rex van der Spuy
Oh, one more important thing: Touch. Ideally, if we just had access to a universal Pointer (that applies to both touch and mouse) that would be perfect. -- You received this message because you are subscribed to the Google Groups "Elm Discuss" group. To unsubscribe from this group and stop

[elm-discuss] Re: Design concepts. Too many Msg's?

2016-12-13 Thread Rex van der Spuy
One of the things I like most about Elm is how programs are organized around messages. You can almost read them like a table of contents to your program, or like book chapters. They act as a high-level map to your program, so the more the merrier :) -- You received this message because you are

Re: [elm-discuss] What do you think Elm's biggest shortcomings are when it comes to natively supported API's?

2016-12-12 Thread Rex van der Spuy
> For me, these things would be nice to have: > * WebAudio API > That's a big one for me too because I use Elm exclusively for game and "interactive multimedia" development. At the moment I have to drop into ports for Audio - I'd love to it all in Elm. -- You received this message

[elm-discuss] Re: Simple Fade In/Out effect?

2016-12-08 Thread Rex van der Spuy
On Tuesday, October 4, 2016 at 2:46:50 PM UTC-4, Joaquín Oltra wrote: > > Here's a mini-example for posterity > http://jsbin.com/hipeba/edit?html,css,js,output > Thanks Joaquín, I just had an opportunity to use your code snippet and it was extremely handy! -- You received this message

[elm-discuss] Re: Why not components?

2016-12-05 Thread Rex van der Spuy
Thanks so much, your simple button example is extremely helpful!! -- 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

[elm-discuss] Re: Dynamically switching video source and browser caching problem....

2016-12-05 Thread Rex van der Spuy
... Oh, no worries!! I solved my own problem. The trick is to change the `src` property on the `video` tag, *not* the in the `source` element. (I found the answer in one of the comments here: http://stackoverflow.com/a/3732711/1282216) So, something like this works: videoElement =

[elm-discuss] Dynamically switching video source and browser caching problem....

2016-12-05 Thread Rex van der Spuy
Hi Everyone, On the current project I'm working on I'm trying to dynamically switch the `src` in a video element based on the application state (The project is a simple conversation chatbot). For example, I have function like this that returns the correct video element to use: videoElement =

[elm-discuss] Re: Why not components?

2016-12-04 Thread Rex van der Spuy
Thanks so much for writing that up! This is exactly the point in my Elm learning that I'm struggling with at the moment, so this extremely helpful. In the past I've always made my "components" as self-contained M/U/V modules - that was great because I could re-use them in other projects just by

[elm-discuss] Re: What's the best way to chain updates?

2016-12-02 Thread Rex van der Spuy
Oh, now it seems obvious! :) Thanks so much! On Friday, December 2, 2016 at 12:28:40 PM UTC-5, Simon wrote: > > I think you want to do something like: > > { model | -- update the record properties -- } > |> update SecondThing > |> update ThirdThing > |> update FourthThing > > ​ > -- You

[elm-discuss] Re: How to Modularize Big Files?

2016-12-02 Thread Rex van der Spuy
On Friday, December 2, 2016 at 11:46:49 AM UTC-5, Matthew Griffith wrote > > > First, (and this is kinda unrelated to organization) but I'd recommend > using elm-format and having type signatures. > ... guilty as charged! :) I actually could never get elm-format to integrate with Sublime Text

[elm-discuss] Re: How to Modularize Big Files?

2016-12-02 Thread Rex van der Spuy
On Friday, December 2, 2016 at 11:44:42 AM UTC-5, Max Goldstein wrote: > > I would want to move all of the view code to a new module, exposing only > the view function itself. In order to do that, you'll have to move the > definition of Model and Msg to a module imported by both Main and View.

[elm-discuss] What's the best way to chain updates?

2016-12-02 Thread Rex van der Spuy
Hi Everyone, Usually when I want a series of updates to chain in sequence, I'll write some code like this: FirstThing -> let newModel = { model | -- update the record properties -- } in update SecondThing newModel SecondThing -> let newModel = { model | -- update the record

[elm-discuss] Listening for a video's "ended" event?

2016-12-02 Thread Rex van der Spuy
Hi Everyone! I'm hoping you can all help me figure out the best strategy to handle this problem: It's probably not complicated, but I would love to hear your ideas on the best solution. I have a video tag in my `view` that looks like this: ``` video [ width 400, height 300, autoplay True,

[elm-discuss] Re: ANN: style-elements v2 published

2016-11-28 Thread Rex van der Spuy
This is AWESOME!!! :) About 75% of my time debugging Elm apps is actually spent debugging the mind-bending quirks in CSS - I can't wait to try this :) -- You received this message because you are subscribed to the Google Groups "Elm Discuss" group. To unsubscribe from this group and stop

Re: [elm-discuss] What Elm needs to move forward

2016-11-25 Thread Rex van der Spuy
Also, I just sent a request to Elm Weekly to > post their newsletter here on the mailing list. Because everybody should > know about it! > Yes, Elm Weekly is ground-zero in Elm world. Subscribe, everyone!! -- You received this message because you are subscribed

[elm-discuss] [JOB] Interactive Media Specialist at TV Ontario

2016-11-25 Thread Rex van der Spuy
Hi Everyone, TV Ontario, the company I currently work for, is hiring 4 new Interactive Media Specialists: https://careersen-tvo.icims.com/jobs/1846/interactive-media-specialists-%284%29/job (I believe you have to be a Canadian citizen to apply.) The job is essentially making educational

Re: [elm-discuss] Rename Just to Something, as the counterpart to Nothing?

2016-11-23 Thread Rex van der Spuy
On Wednesday, November 23, 2016 at 12:15:50 PM UTC-5, Daniel Walker wrote: > > My opinion on this isn't nothing, it's just that just makes the most sense. > Maybe. -- You received this message because you are subscribed to the Google Groups "Elm Discuss" group. To unsubscribe from this

[elm-discuss] Re: Tell me how to teach Web Apps

2016-11-23 Thread Rex van der Spuy
I agree - 100% JavaScript (node on the backend) if finding jobs is important. I would stay away from TypeScript in an introductory course because it's important for students to learn how to problem-solve the deficiencies of working in raw JS. -- You received this message because you are

[elm-discuss] Re: Passing properties as arguments to messages?

2016-11-22 Thread Rex van der Spuy
Thanks so much for explaining that. -- 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

[elm-discuss] Re: Passing properties as arguments to messages?

2016-11-22 Thread Rex van der Spuy
Thanks for all your replies everyone!! I'm glad to have confirmation that this really is impossible and it's not just me. I think for now I'm just going to leave it as is. It's nice and simple and I understand it :) But, can anyone explain why Elm doesn't let us do this? -- You received this

[elm-discuss] Passing properties as arguments to messages?

2016-11-21 Thread Rex van der Spuy
Hi Everyone, Is it possible to pass model properties as message arguments and use those arguments to construct a new model? For example, the only difference between these two messages is the model's properties: AnimateQuestion animMsg -> let (newStyle, cmds) =

[elm-discuss] Re: ANN: update-clock for fixed-time-step game loops

2016-11-16 Thread Rex van der Spuy
Wow, that's absolutely brilliant!!! (My username was `d13` by the way - so that was me!) Congratulations!!! -- 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: Convincing my team that Elm isn't just going to die like CoffeeScript

2016-11-07 Thread Rex van der Spuy
Just a few comments: > The one thing I'm not really sure I'm prepared to answer is how I can be sure that Elm isn't just another CoffeeScript or Dart, and in 2 or 3 years we'll have an impossible time hiring anyone > > who knows how to use it because everyone's going to go back to JavaScript.

[elm-discuss] Re: Teaching children Elm

2016-10-05 Thread Rex van der Spuy
On Tuesday, October 4, 2016 at 9:08:45 PM UTC-4, Tanya Bouman wrote: > > We have also developed our own graphics library > http://package.elm-lang.org/packages/MacCASOutreach/graphicsvg/latest/GraphicSVG > > which makes it easy to use notifications. > This is awesome!!! -- You received

[elm-discuss] Re: Simple Fade In/Out effect?

2016-10-04 Thread Rex van der Spuy
> (newStyle, cmds) = > Animation.Messenger.update > animMsg > model.storyTextStyle > in > ( { model > | storyTextStyle = newStyle >} > , cmds > ) > > > > On Monday, October 3, 2016 at 2:09:57 PM UTC

[elm-discuss] Simple Fade In/Out effect?

2016-09-30 Thread Rex van der Spuy
Hi Everyone! Just a quick question: Can anyone suggest a simple way to fade out some old text and fade in some new text when a `model.text` value changes? I did this once a few apps ago where I created 2 `div` layers: `currentText` and `previousText` Then, when the text value changed, I moved

[elm-discuss] Re: Does CSS model the right problem?

2016-09-26 Thread Rex van der Spuy
So far the best solution I've seen for CSS is Elm's own Graphics.Element: http://package.elm-lang.org/packages/elm-lang/core/3.0.0/Graphics-Element A little more granularity, and integration with elm-html, and it would be killer. > -- You received this message because you are subscribed to

[elm-discuss] Re: Upgrading 0.16 `Effects.task <| Task.succeed` to 0.17

2016-09-19 Thread Rex van der Spuy
Thanks for the advice and links! I realized I could greatly simplify all my code by recursively calling `update` rather than batching Tasks - that's what I've done and it's working great. -- You received this message because you are subscribed to the Google Groups "Elm Discuss" group. To

[elm-discuss] Re: Permission denied: Elm package install

2016-09-14 Thread Rex van der Spuy
This happens to me too! :) I delete `elm-stuff` and then run `elm package install` an arbitrary number of times until it inevitably starts working. -- You received this message because you are subscribed to the Google Groups "Elm Discuss" group. To unsubscribe from this group and stop

Re: [elm-discuss] Re: Basic behavioral composition

2016-09-05 Thread Rex van der Spuy
Hadn't noticed this section in the guide before. Great explanation > ... It's just been added :) -- 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 Package Skimmer

2016-08-29 Thread Rex van der Spuy
Wow, that's beautiful, thanks so much!! -- 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

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

2016-08-29 Thread Rex van der Spuy
> > > For newcomers to Elm, *wouldn't it be better to change the scaling from 1 > to multiple counters in the guide in a different way? * > E.g. > >1. Build everything in 1 module, e.g. save a copy of counter.elm as >counter-list.elm >2. Change every building block (Model, Msg,

[elm-discuss] Re: Should I have a CSS file for my made-with-Elm web app?

2016-08-26 Thread Rex van der Spuy
On Friday, August 26, 2016 at 12:10:30 PM UTC-4, Thibaut Assus wrote: > > I think css stylesheets are useless in Elm. Inline styles are a lot better > imo for reactive procramming. I plan to write a blogpost on that soon. An > exemple of my ideas in a repo : >

[elm-discuss] Re: Old browsers

2016-08-26 Thread Rex van der Spuy
On Thursday, August 25, 2016 at 3:14:17 PM UTC-4, Luke Westby wrote: > > You're welcome! I apologize for the terseness of my previous comments, was > in a hurry and let that get in the way of friendliness. > Sir, no need to apologize! Your posts are always extremely friendly and helpful :)

[elm-discuss] Re: Old browsers

2016-08-24 Thread Rex van der Spuy
Just wish to alert everyone that Elm's port code will not work with any version of IE without a ployfill for `Object.assign` (https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Object/assign) -- You received this message because you are subscribed to the Google

[elm-discuss] Re: Composability without extensible records

2016-08-24 Thread Rex van der Spuy
> > Just break it into modules so your similar functions are grouped together > in files. Use them just like you already are. > The part I don't understand is: how do you create UI components that maintain their internal state without nesting them as child components? -- You received this

[elm-discuss] Re: mdl layout

2016-08-20 Thread Rex van der Spuy
> It only works when it is the top-most > element in your app. > That makes sense :) I've been playing around with 7.4/5 all week and it's a delightful experience! What so nice is that it's effortless to mix and match elm-mdl components with elm-html elements. -- You received this

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

2016-08-13 Thread Rex van der Spuy
Thanks so much Richard, that's absolutely fascinating! The way that I've been building my current generation of Elm apps has been modelled on the Counter/Pair example. So it's not uncommon for me to have apps with nested M/V/U models 3 levels deep (For example, a "page" containing a "panel"

[elm-discuss] Re: Which text editor do you prefer for Elm?

2016-08-10 Thread Rex van der Spuy
I've found the HTML5 based editors like Atom and Lightable a bit laggy in the past (maybe things have changed?) so for me it's Sublime all the way down :) -- You received this message because you are subscribed to the Google Groups "Elm Discuss" group. To unsubscribe from this group and stop

[elm-discuss] Re: public keyword instead of exposing

2016-08-08 Thread Rex van der Spuy
On Monday, August 8, 2016 at 3:44:30 AM UTC-4, Robin Heggelund Hansen wrote: > > There's one thing that has always bothered me with Haskell, and now also > Elm, and that is how functions are exposed. My problem with the way it > currently works is that you have go to the top of the file to

[elm-discuss] Re: [ANN] elm-mdl 7.0.0 — supports all components of Material Design Lite

2016-08-08 Thread Rex van der Spuy
> > > You should be using the " 7.0.0 <= v < 8.0.0" constraint and you should > also set your elm version constraint to `"elm-version": "0.17.1 <= v < > 0.18.0"` because it requires at least elm 0.17.1, which I am betting you do > not have based on your error message. > > That was exactly

[elm-discuss] Re: [ANN] elm-mdl 7.0.0 — supports all components of Material Design Lite

2016-08-05 Thread Rex van der Spuy
This is brilliant, thanks so much! I use elm-mdl everyday, for everything :) I have one question about upgrading. I ran `elm package install debois/elm-mdl` and received this message: Error: This is a tricky update, you should modify elm-package.json yourself. Package debois/elm-mdl is already

[elm-discuss] Re: Elmx

2016-07-30 Thread Rex van der Spuy
Hi, "Elmx" is just ordinary Elm functions that happen to have exactly the same names as HTML tags. So, it's 100% first class, if that's what you mean...? Those functions just take two parameters: a list of attributes and a list of child nodes.

Re: [elm-discuss] Touch module in Elm 0.17

2016-07-27 Thread Rex van der Spuy
On Tuesday, July 26, 2016 at 1:35:07 PM UTC-4, Janis Voigtländer wrote: > > I guess because it’s much less clear for it than for the other three > mentioned modules what the “final” API will look like. > Would it make sense to combine both mouse and touch into a single `pointer` object? --

Re: [elm-discuss] Parsing JSON — one more victim

2016-07-27 Thread Rex van der Spuy
On Tuesday, July 26, 2016 at 7:27:25 AM UTC-4, Eduardo Cuducos wrote: > > You could be very mean due to my typo. > This is the Elm Community, we don't do mean here :) I had a similar, infuriating JSON decoding bug due to a simple typo that took me hours to find ... argh! :) Peter, I didn't

[elm-discuss] Ports failure with Elm + webpack in IE 10?

2016-07-21 Thread Rex van der Spuy
Hi Everyone, I was doing some browser testing and discovered my ports weren't working in IE Apparently IE 10 doesn't understand `Object.assign`, which appears in this block of code (I've highlighted the occurrence): ``` function wrapPorts(elm, portSubscribes) { var portNames =

[elm-discuss] Re: Trying to understand the community overlap between Elm and Elixir

2016-07-18 Thread Rex van der Spuy
> > Can someone help clarify why Elixir is appealing to Elm developers > specifically (as opposed to Elixir being appealing on its own merits)? > Actually, Elm is appealing to Elixir developers, not the other way around ;) A lot of the talk you see around Elixer in Elm's discussion forums

[elm-discuss] Re: html formatting words in string

2016-07-17 Thread Rex van der Spuy
Hi, what's the bigger picture that you're trying to accomplish? Have you looked at Elm's Markdown package? http://package.elm-lang.org/packages/evancz/elm-markdown/3.0.0/ Markdown will format any words surrounded by double asterisks as bold text, like this: **this is bold** -- You received

[elm-discuss] Re: Elm not for my use case

2016-07-16 Thread Rex van der Spuy
On Friday, July 15, 2016 at 5:24:48 AM UTC-4, Matthieu Amiguet wrote: > > I realized that writing proper parsers for my json files would be at > least as much work, and probably twice as much code, as the rest of the > project. > This is also my biggest hurdle with Elm at the moment. --

[elm-discuss] Re: I dislike the names of certain standard library functions.

2016-07-15 Thread Rex van der Spuy
One thing that's always bothered me about programming languages in general is that being able to understand English is an entry requirement. I guess that most users of Elm do no speak English as their first language, and many (or most?) future beginner users will not speak English at all. Does

[elm-discuss] Re: [ANN] elm-mdl 6.0.0 released

2016-06-29 Thread Rex van der Spuy
Brilliant! Multi-line textfields... that's just what I needed, thank you!! :) On Monday, June 27, 2016 at 10:58:18 AM UTC-4, debois wrote: > > Dear all, > > Version 6.0.0 of elm-mdl is out—check out the live demo > . The new version comprises multiple >

[elm-discuss] Re: Communicating from parent to child and child to parent

2016-06-29 Thread Rex van der Spuy
Hi Everyone! I'm confused about why this needs to be so complex? For example, let's say you have a button child that needs to to communicate its state to its parent. You could create a `currentMsg` property on the child button model like this: type alias ButtonModel = { currentMsg : Msg }

[elm-discuss] Re: Interested in updating the 2DCanvas API

2016-06-25 Thread Rex van der Spuy
This is a great project! We really need a library with 100% coverage of the Canvas Drawing API. -- 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

Re: [elm-discuss] Re: How to convince your boss to start using Elm in the company

2016-06-22 Thread Rex van der Spuy
> > > I found the upgrades from 0.15 -> 0.16 -> 0.17 were a pain, but less of a > pain then the bugs that I would have had to track down with something like > angular or ExtJS > This!! Elm will save you countless endless hours (days? months?) of nail biting debugging in comparison to using

Re: [elm-discuss] Re: State of CSS in Elm

2016-06-15 Thread Rex van der Spuy
> > > I haven't used elm-css yet but I'm really looking forward to it - It > sounds like it will make working with CSS much more bearable. > Just replying to my own comment: I played around with elm-css for an afternoon, but realized it was adding more complexity than my (tiny) app was

Re: [elm-discuss] Re: State of CSS in Elm

2016-06-07 Thread Rex van der Spuy
> > > Layout for a web app IS part of the critical information. It encapsulates > a lot from the UX of that app. > - This is exactly what I've found to be the case with the apps I've been building. > -- You received this message because you are subscribed to the Google Groups "Elm

[elm-discuss] Re: Discussion on improving Graphics.Collage

2016-05-29 Thread Rex van der Spuy
I actually think that Graphic.Collage and Graphics.Element are a better paradigms for making interactive media than elm-html. It was in fact the genius behind those APIs that attracted me to Elm in the first place. I only work in HTML-land because Collage/Element aren't as performant or

[elm-discuss] Re: Elm 0.16 access

2016-05-26 Thread Rex van der Spuy
Hi Mark, Until Elm reaches 1.0, frequent, breaking API changes with every new release are what we all sign-up for if we choose to use Elm. In fact, that's part of the fun :) I would just jump headlong into 0.17 and enjoy it. - Rex On Tuesday, May 24, 2016 at 12:26:31 PM UTC-4, Mark Hamburg