[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 wh

[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 Di

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, yo

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 emai

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 a

[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 y

[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 becaus

[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 the

[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 be

[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 rece

[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 email

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 https://groups.google.com/d/

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 Gro

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 https://gr

[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 Discu

[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 https://groups

[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/ pd

[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, A

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-specif

[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: > https://www.reddit.com/r/elm/comments/5of78c/easy_questions_beginners_thread_week_of_2017

[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 subscribe

[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+unsubscr.

[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 f

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 Goog

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 I've

[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 depend

[elm-discuss] Re: Task.perform in 0.18?

2017-01-09 Thread Rex van der Spuy
On Friday, January 6, 2017 at 4:23:03 PM UTC-5, OvermindDL1 wrote: > > Ahh, see that there, the return type of `Scroll.toTop` is `Task.Task > Dom.Error ()`, this in this case also change `Task.perform` to > `Task.attempt`. :-) > > Thanks so much, that did the trick!! -- You received this me

[elm-discuss] Re: Task.perform in 0.18?

2017-01-06 Thread Rex van der Spuy
Thanks Overmind! I've done as you suggested and removed one `(always NoOp)` - that's makes sense to me! The compiler now gives me this error message: `` The 2nd argument to function `perform` is causing a mismatch. 215| Task.perform (always NoOp) (Scroll.toTop "questionsContainer") ^

[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 have

[elm-discuss] Re: Elm events 2017

2017-01-06 Thread Rex van der Spuy
> Doesn't seeem to be much on meetup.com outside of the USA, although there > do seem to be plenty Elm user groups in Europe. > ...for anyone in Toronto, there is now an Toronto Elm meetup group: https://www.meetup.com/Elm-Toronto/ -- You received this message because you are subscribed

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+

[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 Questions.Q

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 learning

[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 https://groups.google.

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

2016-12-22 Thread Rex van der Spuy
It's possible that your elm-webpack-loader is pointing to the wrong > executable. > Thanks Nathan! Everything else seem fine so it seems that this is likely the problem. Do you know where this needs to be set? I noticed this from the README in elm-webpack-loader but I wasn't sure where or

[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 i

[elm-discuss] Re: DOM geometry / SVG library

2016-12-22 Thread Rex van der Spuy
> Currently the solution seems to be 1) compute the bounding box manually > inside the update function whenever the selection is modified, 2) keep > the bounding box data in the model and 3) use the bounding box from the > model when the update function performs other operations on the model

[elm-discuss] Re: DOM geometry / SVG library

2016-12-22 Thread Rex van der Spuy
> 1. Is someone working on an higher-level SVG library than elm-lang/svg ? > Im thinking about support for path intersection, bounding box operations, > etc. > > I don't know if this is what you're looking for, but it's excellent: http://package.elm-lang.org/packages/MacCASOutreach/graphicsvg

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 Polym

[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 out

[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 rece

[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 because

[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 because

[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 m

[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 = ca

[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 rece

[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] How to Modularize Big Files?

2016-12-02 Thread Rex van der Spuy
Hi Everyone, Over the past few months I've been follow the Best Practice recommendations in Elm World to not use nested Model/Update/View modules. The general consensus seems to be just to keep one giant M/U/V engine running, and farm out specialized work to helper functions. Cool, that make sen

[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, loop

[elm-discuss] Re: elm-make: Map.!: given key is not an element in the map

2016-11-28 Thread Rex van der Spuy
> I'm assuming this should actually never happen. > Yes, "have you tried deleting elm-stuff?" is a bit of oral tradition folklore that can magically cure all manner of ailments. It's Elm's take on "Have you tried turning it off and on again?" It burned me as a beginner too, and has been a pr

[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 receiv

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 t

[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 interac

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 grou

[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 subs

[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 https://grou

[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 m

[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) = Ani

[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-di

[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: Suggested small edit to official Elm guide (for beginner-friendliness) ... and maybe the Elm error message?

2016-11-03 Thread Rex van der Spuy
Just for interest, I had exactly the same problem with that example when I fist started learning Elm about a year ago. -- 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 emai

[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 thi

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

2016-10-04 Thread Rex van der Spuy
pdate >>> animMsg >>> model.storyTextStyle >>> in >>> ( { model >>> | storyTextStyle = newStyle >>>} >>> , cmds >>> ) >>> >>> >>> >>&g

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

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

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

2016-10-03 Thread Rex van der Spuy
Thanks everyone, I like these ideas! Here's what I've got so far - but it's not working... yet! :) Could any of you with more experience with elm-style-animation let me know what I'm doing wrong? I've imported Animation and Animation.Messener, exposing State: ``` import Animation import Animat

[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 t

[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 th

[elm-discuss] Re: Post mortem for my first attempt at using Elm in a real app.

2016-09-20 Thread Rex van der Spuy
On Tuesday, September 20, 2016 at 10:18:02 AM UTC-4, OvermindDL1 wrote: > > SCSS helps 'some' of the CSS woes at least. I keep my CSS outside of elm > and in SCSS and it works decently(ish). > > For me SCSS helps in the way that TypeScript or Coffeescript helps JavaScript - it's still just p

[elm-discuss] Re: Looking for feadback on API design for my upcoming 2d game library

2016-09-19 Thread Rex van der Spuy
Hi, Have you had a look at Pixi? http://www.pixijs.com/ It's not perfect, but its API very practical, usable and flexible. Also, a resource loader and texture cache/manager would be a definite requirement. -- You received this message because you are subscribed to the Google Groups "Elm Di

[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 unsu

[elm-discuss] Re: Post mortem for my first attempt at using Elm in a real app.

2016-09-19 Thread Rex van der Spuy
Peter, Having now done a few moderate sized "production" Elm apps (2-3k loc) in the past year (with invaluable help from you!) I agree with all your points absolutely. I specifically agree with your point about CSS. CSS is hell-on-wheels: the most time I've spent debugging my Elm apps have not

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

2016-09-15 Thread Rex van der Spuy
Hi Everyone! I'm upgrading some complex old 0.16 code to 0.17 and came across this in my `update` function: ``` ( model'' , Effects.batch [ Effects.task <| Task.succeed FadeOutOldPage , Effects.task <| Task.succeed FadeInNewPage , Effects.task <| Task.succeed (UpdateInfo

[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 receivin

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+u

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

2016-08-31 Thread Rex van der Spuy
Thanks so much everyone! There's lots of great stuff here to dig into :) -- 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.

[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 https://

[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, updat

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

2016-08-28 Thread Rex van der Spuy
On Sunday, August 28, 2016 at 4:14:43 AM UTC-4, Richard Feldman wrote: > > >> I gather that this is has to do with an interaction between two update > functions...is there some way to rephrase it in terms of how those two > update functions interact? > Richard, this has been a huge area of con

[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 : > https://github.com/tibastral/elm-

[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 :) I'm

[elm-discuss] Re: Old browsers

2016-08-25 Thread Rex van der Spuy
> Rex, you should file an issue with elm-hot-loader about their use of > Object.assign() > Thanks Luke, that must be it! -- 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: 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 Groups

[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 message

[elm-discuss] Re: mdl layout

2016-08-20 Thread Rex van der Spuy
Yes, that video it's excellent - I didn't understand how layout worked until I watched it either. On a side-note: Is layout just applicable to the entire viewport window? I tried using it inside an MDL grid cell and it seemed to get confused about how wide things should be. -- You received thi

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" whic

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

2016-08-12 Thread Rex van der Spuy
Thanks, Richard, this is great advice: > >1. For a given page, start with one model, one view, and one update. >2. If one of those (model, view, or update) gets too big and starts >feeling unwieldy, *subdivide only that thing.* For example, if view >feels too big, split it into s

[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 r

[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 see/

[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 the

[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 li

  1   2   >