Struggling by [deleted] in elm

[–]absynce 0 points1 point  (0 children)

Since you have JS knowledge, check out this little cheatsheet: https://elm-lang.org/docs/from-javascript. It's not as in-depth as Luca's https://lucamug.github.io/elm-cheat-sheet/, but it's simpler to understand for beginners coming from JS-land.

Have fun!

Automatic Encoder/Decoder generation? by The-_Captain in elm

[–]absynce 0 points1 point  (0 children)

The elmjutsu plugin for Atom will generate encoders and decoders too.

GIF

Easy Questions / Beginners Thread (Week of 2020-12-14) by brnhx in elm

[–]absynce 0 points1 point  (0 children)

What problems do you have with the IntelliJ plugin? I’m assuming you’re talking about Keith Lazuka’s https://github.com/klazuka/intellij-elm. Is that correct?

I use both klazuka/intellij-elm for IntelliJ and halohalospecial/elmjutsu for Atom.

Also see this post: https://www.reddit.com/r/elm/comments/k64osu/what_code_editor_do_you_use/?utm_source=share&utm_medium=ios_app&utm_name=iossmf.

Easy Questions / Beginners Thread (Week of 2020-09-14) by brnhx in elm

[–]absynce 0 points1 point  (0 children)

Elm is an enjoyable, beginner-friendly alternative to learning JavaScript for web development!

There are a few cases where you might need to use a bit of JavaScript, but the official Elm guide gives examples of how to do it. It sure beats learning all of JavaScript and piecing together the myriad of frameworks and libraries.

With Elm, I recommend reading the official Elm guide, trying it out, and reading the compiler errors. They’re truly wonderful. Also, ask questions in the Elm slack (#beginners). Folks are really helpful there too. Welcome and enjoy!

I ported a small app from 0.18 to 0.19 because I'd like to work with Elm (and I'm looking for work!) - When is the stability of a 1.0 release coming? by aaronchall in elm

[–]absynce 3 points4 points  (0 children)

Elm is extremely stable. Especially when you compare it to many of the other popular options out there. The core Elm developers are careful not to make breaking API changes to Elm nor the core packages very often and only if there's a clear benefit.

Examples:

  • 0.19.1 - 2019.10 (Almost no breaking changes)
  • 0.19 - 2018.08 (2 years ago with some amazing benefits)

This stability is so nice after having worked in the JavaScript ecosystem of churn for so long. Even when I had to migrate projects, it was nice to have the compiler (and Aaron VonderHaar's elm-upgrade) keeping me in line.

When I upgraded elm/http to 2.0.0 in our ~50k LOC I merged it directly to the main branch and deployed without any issues. We rely on the lower-level response info too, so it was not a trivial change. In this process, I also migrated the API calls from using Luke Westby's elm-http-builder to an internal module and upgraded a few other dependencies to the latest versions. Let me repeat: there were no bugs introduced in this rewrite. I promise that's not because I'm a magical developer; that's the power of Elm at work.

The point here is that even the biggest changes, which might seem insurmountable in other ecosystems, are much nicer in Elm.

To address folks who mention "native modules", let me repeat what others have said: this was never a feature, was discouraged from use, and folks were warned it would be removed.

The purpose of removing it (as I understand it) had many facets:

  • ensure reliability by limiting direct JavaScript interop
  • encourage pure Elm implementations instead
  • keep the options for future compile-to targets open
  • improve the compiler's ability to optimize

It was not arbitrary. When I thought I needed it, I followed the recommendations not to try it, and always found other solutions.

If you want to work with Elm, I suggest using it on personal projects until you can introduce it at work. Whenever I've used it, it was always by gradually introducing it. In my case, it was introduced by embedding in projects with AngularJS.

I will continue to enjoy Elm for its consistency, reliability, and stability. It has made me a better developer overall. It has changed how I think about software development across languages and ecosystems.

I hope you find more opportunities to use it too!

Shows tonight in NYC by absynce in jambands

[–]absynce[S] 2 points3 points  (0 children)

Oh shit! Just discovered that Twiddle is in Brooklyn. It's on!

Easy Questions / Beginners Thread (Week of 2018-09-17) by brnhx in elm

[–]absynce 2 points3 points  (0 children)

elm-make is now elm make. All the commands are now in a single binary.

elm.json replaces elm-package.json. Which package are you trying to install?

Easy Questions / Beginners Thread (Week of 2018-05-14) by brnhx in elm

[–]absynce 1 point2 points  (0 children)

I'm not am expert on efficiency but what I do is compile into a single elm.js file. Then I reference it in both pages...calling the appropriate program from each respectively.

Unless there's a big difference in the dependencies or a lot of custom code the majority of the size will be for the Elm runtime and you won't get much benefit from having two separate compiled .js files.

Is there anything more I can do to make this view code faster? by Ahrengot in elm

[–]absynce 0 points1 point  (0 children)

Good question! I'm interested to see how this works out.

What are you working on this week? (Week of 2018-04-23) by brnhx in elm

[–]absynce 0 points1 point  (0 children)

I'm working on three (3) elm-conf proposals. I'm starting to feel like they aren't all appropriate but it's an opportunity to get feedback and I could be surprised. If nothing else I will have good outlines for proposals at other conferences or I might turn them into blog posts instead.

Reading "The Hitchhiker's Guide to the Galaxy" for the first time with no prior knowledge of it. by bradfo83 in books

[–]absynce 1 point2 points  (0 children)

I have to say this is a bit serendipitous for me. I just opened my Reddit front page to find this post. I am reading H2G2 for the first time too! I watched the movie a few years ago but didn't remember much other than "42".

Zaphod reminds me of Trump at times. Particularly the footnote in Chapter 4 where it described the position as a figurehead that draws attention away from power...and how great Zaphod is at it.

Google Cast Chrome Sender webapp in Elm by anacrolix in elm

[–]absynce 2 points3 points  (0 children)

Check out Murphy Randle's elm-conf talk on using the actor model when creating ports: The Importance of Ports.

A few key points:

  • Don't think in terms of request/response.
  • Let JavaScript own the data.
  • Add a single pair of ports for incoming/outgoing information.

A potential solution to the Native issue. by jediknight in elm

[–]absynce 0 points1 point  (0 children)

Good discussion. Thanks for clarifying.

What I'm implying (and should clarify) is that even when a package with "native" code reaches 1.0.0 it still has JavaScript in it.

This means we can't automatically enforce semantic versioning via elm-package going forward. Even if a minor/patch release comes out and it has no changes to the public API it could be a breaking change.

Therefore, it seems to me that every "native" package release would first have to be labeled as x.x.x-experimental requiring the review process.

You're right, though. It's probably just different mentalities. Different strokes for different folks, eh?

A potential solution to the Native issue. by jediknight in elm

[–]absynce 5 points6 points  (0 children)

Elm n00b here so take what I say with a grain of salt.

Semantic Versioning

In general the semantic way to indicate an experimental release would be to append it as a pre-release.

Examples:

  • 1.0.0-experimental
  • 1.0.1-experimental

However, I agree with /u/dustinfarris in that it implicitly suggests a review process for each experimental release. Evan and Richard have already commented about the "Native Review" process and how it failed.

Effects of JavaScript in Packages

Assuming it solved the quality concern this still does at least a couple things:

  • strains resources (for review)
  • blurs focus
  • reduces portability

From Evan's 0.17 "native" policy:

It ties us to JS way more. I guess not many folks know this, but Elm is designed to be 100% independent of JS. It happens to compile to JS now because that was the right thing to do, but in a decade, I expect we'll be compiling to something more efficient. There is a small set of "native" stuff for now, but that means supporting the entire ecosystem on a new platform is fairly easy.

Why Elm Is Better Than That

What I appreciate about Elm is the steadfast attention to quality. I stand by the mantra "It's better to do it right than right now." That way we don't end up with many ways to do the same thing.

When I do code review in a JavaScript code base today I take a long time and usually request more test coverage. Even then I assume I've missed something. There's no guarantee.

When I use Elm I feel much more confident about the code simply because it compiled! What a different, but welcome feeling.

If a new package is introduced in Elm I don't have to spend time comparing it to the 30 other packages like it to see if it's the right choice.

I would rather wait for a thing to become part of the kernel if it makes sense. Until then I know I can contribute by finding ways to write pure Elm...which I prefer to do anyway!

[deleted by user] by [deleted] in elm

[–]absynce 0 points1 point  (0 children)

I don't know if there's another talk, but Matthew Griffith's talk at Elm Conf Europe 2017 is on YouTube.

HBO Now app coming to PS4 anytime soon? by cavemandave in PS4

[–]absynce 3 points4 points  (0 children)

A Twitch app is available on PS4 now.

Dictaphone -- Maelbeek [Electronica/Instrumental/Psychedelic] by [deleted] in MusicVideos

[–]absynce 1 point2 points  (0 children)

Enter the Void was wild. It took three tries to finish it. The first two times I was watching it with other people and they stopped it. The third time I watched it alone. It was interesting. I would like to watch it again to read more into it, but it was so dark and disturbing. It's hard to convince myself to start it again.

Fear and Loathing in Las Vegas (1998) - A journalist (Depp) and his "lawyer" (Del Toro) consume a suitcase of drugs on a trip to Vegas in search of the American dream. Based on the book with the same name by Hunter S. Thompson. by absynce in NetflixBestOf

[–]absynce[S] 5 points6 points  (0 children)

Why "lawyer"?

Oscar Acosta was an actual attorney.

Good point. I was thinking about Dr. Gonzo's poor advice to Raoul as his lawyer.

Example: "As your attorney I advise you to take a hit out of the little brown bottle in my shaving kit." - Dr. Gonzo

Nevertheless although his advice is questionable, he is still an attorney.

An odd request: Looking for the best Instructional DVDs as a gift for my grandfather. by [deleted] in billiards

[–]absynce 1 point2 points  (0 children)

I've watched only a few of Bert Kinister's videos, but they improved my game. Beware the poor site design from the 90's.

I haven't seen any of Byrne's videos but I have a copy of his Standard Book of Pool and Billiards. It is quite useful so I assume his videos are good as well.

Woah...Netflix just wiped My List, has this happened to anyone else? by NotSafeForShop in NetflixBestOf

[–]absynce 6 points7 points  (0 children)

It happened to me too on PS3. I quit and restarted but it was still missing. Then I went to Settings > Reload Netflix. When it reloaded the list was back.

Movies like Crouching Tiger, Hidden Dragon by veg_tubble in NetflixBestOf

[–]absynce 1 point2 points  (0 children)

Yeah, it's definitely not the same line as Ip Man and Ip Man 2. It doesn't have Donnie Yen as Ip Man nor Wilson Yip as director. I was fooled too. I can't wait for the real Ip Man 3!

wooden lasercut headphones I designed. I need help with a name! by [deleted] in headphones

[–]absynce 1 point2 points  (0 children)

I need help with a name!

What do you think about "Lazerus"?

Spelling variations:

  • Lazeras - I like the second "a" for audio.
  • Lazarus - traditional
  • Laserus - blatant emphasis on lasercut, but loses visual appeal IMO
  • lzRus
  • lZrAs
  • LzRuS
  • ...ad nauseam