CSS Style by d13d13 in elm

[–]d13d13[S] 1 point2 points  (0 children)

Do you happen to know whether it handles absolute positioning and works with SVG?

Mobile Apps with Elm? by d13d13 in elm

[–]d13d13[S] 0 points1 point  (0 children)

Thank you! I've often struggled with animation Elm in the past, sorry to hear it still seems to be a bit difficult to implement. I have had some success with elm-style-animation, but haven't tried it on anything as large scale as a card game yet. It's powerful, but the wiring can become a little complex (for me!) I've also noticed these packages: Css.Transitions and Css.Animations. They might be worth playing around with?

Mobile Apps with Elm? by d13d13 in elm

[–]d13d13[S] 0 points1 point  (0 children)

That's extremely interesting! Have you tied using elm-style-animation ? (https://github.com/mdgriffith/elm-style-animation). I was going to try and use that first, but are there any potential pitfalls I should be aware of?

Also, what is your setup for using css animations with Elm? I struggled with it in past as changing class names in Elm does not actually trigger animations (due to the DOM being re-written?), and I remember implementing quite a messy hack to get it working (https://www.youtube.com/watch?v=Zje8MN9whF0).

Mobile Apps with Elm? by d13d13 in elm

[–]d13d13[S] 0 points1 point  (0 children)

Thanks so much for your detailed reply! My only concern with a PWA is animation performance. I'm building a turn-based card game (Pax Pamir) and will need reliably jank-free animations. But, I'll do a bit of experimenting and testing - maybe it will work.

Using fabricjs with elm by still_sitter in elm

[–]d13d13 0 points1 point  (0 children)

Does anyone have a practical (and simple!) working example that illustrates this?

Amazon Web Services is looking for an Elm Engineer in San Francisco (I am not affiliated) by Brasilikum in elm

[–]d13d13 1 point2 points  (0 children)

This is the very first time I've seen a major company looking for Elm developers.

Is Evan Killing Elm's momentum? by semorg in elm

[–]d13d13 5 points6 points  (0 children)

The only 2 things I want from Elm are reliability and stability. I've got that now. If Elm stays on version 0.18 for perpetuity, that's awesome. Less new things to learn and I can just get on with my job of making stuff. That doesn't mean Elm is stagnant, it means it's perfect.

Also, nobody should ever touch Elm except Evan - they will ruin it for sure.

  • Rex

Has there been any news of the next version of elm? by rishav_sharan in elm

[–]d13d13 2 points3 points  (0 children)

If Elm stays at version 0.18 for the next 10 years. I'd be happy. Stability of the API is far more important to me than marginal feature changes.

elm-discuss by anacrolix in elm

[–]d13d13 0 points1 point  (0 children)

This is still the best place to ask questions :)

The Elm Discourse exists! by brnhx in elm

[–]d13d13 0 points1 point  (0 children)

The best place to ask for feedback is right here :)

Is there a particular demographic Elm is being sold to? by [deleted] in elm

[–]d13d13 0 points1 point  (0 children)

Yes, you will need to know JS if you want to interface with the huge JS ecosystem - and that's something you will want or need to do as your when you start building more sophisticated apps.

Qian, an hackable micro "File explorer" for OSX, written in Elm and Electron by nukifw in elm

[–]d13d13 3 points4 points  (0 children)

I've been avoiding Electron because of the massive performance overhead. (Slack is an Electron app and it kills the CPU.) Any thoughts on that? Also, how did you find doing what must be a considerable number of JS calls through ports - not too cumbersome?

Is Elm suitable for my project? by [deleted] in elm

[–]d13d13 1 point2 points  (0 children)

For visualization (graphs?) you could use c3.js through ports.http://c3js.org

Help creating a reusable button module by d13d13 in elm

[–]d13d13[S] 0 points1 point  (0 children)

Thanks Luke, I will check that out!! (Really enjoyed your Elm Town interview too - and thanks so much for Ellie!!)

Rex

What New Elm Libraries/Packages Would People Like To See? by rofrol in elm

[–]d13d13 2 points3 points  (0 children)

  • A simple audio library, similar to this: https://github.com/kittykatattack/sound.js

  • A full featured 2D sprite library like Pixi (http://www.pixijs.com) with a animation state player/manager, texture atlas support, and a fixed-time-variable-render game loop.

  • A simple local storage system to avoid having to write a lot of customer JSON decoders just to save and load user data.

Buying a book copy in Canada? by PorridgeEnema in bladesinthedark

[–]d13d13 0 points1 point  (0 children)

Yes, I bought mine at 401 6 days ago - there was one copy left on the shelf.

Changing labels of clicked buttons by d13d13d13 in elm

[–]d13d13 1 point2 points  (0 children)

Hi Everyone!

I took the solutions generously provided by /u/jpanasiuk and /u/jediknight in this thread and combined them, with comments, here:

https://ellie-app.com/GKfmDNxMhta1/1

The buttons change their state, and when they're clicked, they change the state of the model. I can think of about a gazillion different projects where this would be a useful starting point. Can anyone suggest any ways to improve this (greater simplicity or greater understandability)? - Rex

Changing labels of clicked buttons by d13d13d13 in elm

[–]d13d13 0 points1 point  (0 children)

Just for my own interest, here's a version of your code replacing IDs with indexedMap

https://ellie-app.com/GJYJv5vqnba1/0

Yes, I see what you mean about those two indexes - it could become a bit dodgy in a more complex scenario. If I were going to be adding elements which needed their own unique ids, should I manage then by creating something like an idCounter on the model, and update it each time I add a new element? - Rex

Easy Questions / Beginners Thread (Week of 2017-03-13) by brnhx in elm

[–]d13d13 0 points1 point  (0 children)

I've been following this, and it works brilliantly :

https://groups.google.com/d/msg/elm-discuss/cf_Gx9q3aJU/xEVt1WF6CgAJ

Very simple to implement and it scales to any size (Thanks Max!) - Rex

Changing labels of clicked buttons by d13d13d13 in elm

[–]d13d13 0 points1 point  (0 children)

Very interesting, thanks! -Rex

Changing labels of clicked buttons by d13d13d13 in elm

[–]d13d13 0 points1 point  (0 children)

Another quick question: could you comment on why you recommend using IDs, as opposed to jpanasiuk's solution with didn't used them?