News for hackers. Stuff that matters.
Re:The Elm Architecture by napsterbr on Sunday August 26, 2018 @12:23PM (#17846551)
Just pulled an all-nighter deciding what to use instead of Elm. We have a 45kloc codebase in Elm and, despite having some big pros, the closed source development it goes through, along with the 0.19 debacle, just pushed us over the edge. The team is very motivated to ditch elm over something else.

So, Bucklescript seems great (and it's wonderful how OvermindDL1 explains in the open his design decisions. An openness that I've missed in Elm), and IMO superior than Typescript, and comparable with Fable (in that case being mostly a matter of personal taste: F# vs ocaml).

But, as long as we are trying new stuff, I've decided to use Clojurescript with Reagent and re-frame. The tooling around it seems very mature (even more so than Elm, but I may be wrong), with a good community and macros!

For anyone in a similar position, several good options out there, but the best two that I've found, in my opinion, are Bucklescript (ReasonML/Ocaml) and Clojurescript. Cheers!

Re:The Elm Architecture by skybrian on Sunday August 26, 2018 @12:53PM (#17846684)
Why lose sleep over this considering that 0.18 still works? (Genuine question, not criticism.)
Re:The Elm Architecture by napsterbr on Sunday August 26, 2018 @01:41PM (#17846889)
0.18 works, but compilation takes too long - and apparently that was fixed in 0.19.

We've waited for this fix a long time (over a year), but we can't upgrade because the only (AFAIK) library that connects to Elixir's Phoenix Channels stopped working. In fact the language (0.19) currently has no websocket support.

During this whole year of development, we could not compile the 0.19-dev. It was somewhere closed. We couldn't even see the commits. Pretty sure there's a nice and long post somewhere explaining how "outsiders" would slow down the progress by giving, how dare them, feedback.

We could wait a little bit more, but, even though I was deeply in love with elm, the language that made me not dread frontend development anymore, I am now totally uninterested at it, driven away by 1) lack of transparency and 2) total blocking of genuine and constructive user feedback, which feels like censorship - or simply a closed-source, proprietary software.

The language is good though. Has some minor flaws, but I believe over time they will get fixed. Though it lacks some powerful features that will never be implemented. But ovoverall, we were able to tackle complexity quite nicely. I guess we - me and my team - just got tired of how it is handled.

Oh, and Elm is way too verbose. Pretty sure that 45kloc codebase will be about 15-20kloc in cljs!

Re:The Elm Architecture by rtfeldman on Sunday August 26, 2018 @03:44PM (#17847493)
I'm sorry to hear that you are unhappy with Elm, but I hear great things about CLJS and wish you the best with it.

I have one comment and one question, if you have time to respond.

> During this whole year of development, we could not compile the 0.19-dev. It was somewhere closed.

It was on GitHub under elm/compiler on the "dev" branch, which is the branch name Evan uses for in-progress work. Many people compiled and tried it out during this time, and some left comments directly on GitHub.

This was not a secret, but I can understand that maybe it felt like one since it was not on the "master" branch.

> total blocking of genuine and constructive user feedback, which feels like censorship - or simply a closed-source, proprietary software.

I understand that you've moved on, but it would help us out if you could link to an example of genuine and constructive user feedback being blocked like this, so we can learn from it.

We've tried to lock topics that have a well-known history of devolving into unconstructive flame wars, but I'm always open to the idea that we might have missed the mark.

Re:The Elm Architecture by senorsmile on Sunday August 26, 2018 @06:53PM (#17848373)
This is a great response. I've only recently started learning Elm (and webdev in general... coming from a systems programming background). I chose ElmConf for the preconf to strange loop this year. Why not learn a new language.

I've seen quite a few people with fairly negative things to say about the community. I had my very first thread locked on elm just a couple of days ago. Apparently there were some deleted comments that were not so nice. Unfortunately, by the time I saw my posting locked, that meant it was too late for me to engage in any sort of conversation to figure out exactly what went wrong.

Let me be clear; the core of a community are the ones responsible for creating and maintaining the culture of the community, and of course protecting the community members from abuse. I understand this... But I don't understand how stopping conversations that "have a well-known history of devolving into unconstructive flame wars". It seems that is punishing people before they've actually done anything that violates that rules of the community. At least, that's certainly how I feel.

Regardless, I'm looking forward to my journey of learning Elm and using it to build some UI's my teams are going to be needing.

As I said, I'm attending ElmConf. I look forward to meeting you and others in the Elm community.

Re:The Elm Architecture by rtfeldman on Sunday August 26, 2018 @08:22PM (#17848671)
> It seems that is punishing people before they've actually done anything that violates that rules of the community. At least, that's certainly how I feel.

That's really good feedback, thank you! I have passed this along to the moderator team.

> As I said, I'm attending ElmConf. I look forward to meeting you and others in the Elm community.

Likewise - looking forward to meeting you!

I'll be there a few days before the conference, so if you'd like to meet up ahead of time, send me a DM!

Re:The Elm Architecture by throwaway237468 on Sunday August 26, 2018 @02:33PM (#17847156)
> 2) total blocking of genuine and constructive user feedback, which feels like censorship - or simply a closed-source, proprietary software.

For those looking for examples, check out the recent post on /r/elm: https://www.reddit.com/r/elm/comments/9a0hc6/elm_019_broke_u...

It was locked and deleted from the front page within hours. There are many many more such posts that have been deleted. The only posts allowed on /r/elm are those praising Elm.

They always invite the users to discuss this in the Elm Discourse which is not constructive because threads about the "forbidden" topics (Native Code) are either locked or completely deleted within hours.

Re:The Elm Architecture by rtfeldman on Sunday August 26, 2018 @03:41PM (#17847480)
> The only posts allowed on /r/elm are those praising Elm.

The Reddit thread you linked shows many posts that are critical of Elm, so this can't be the explanation.

As others have noted, you can see what was deleted using this link:

https://snew.github.io/r/elm/comments/9a0hc6/elm_019_broke_u...

Removed posts included both praise and criticism. What they have in common is that they broke other rules, e.g. personal attacks.

Re:The Elm Architecture by throwaway237468 on Sunday August 26, 2018 @04:01PM (#17847560)
Thanks, I'll let everyone decide for themselves whether the deleted posts were personal attacks or not. Personally I don't see anything wrong with at least half of them.

Why do the moderators invite everyone to discuss on Discourse when you know you'll delete or lock a thread as soon as it's posted?

Re:The Elm Architecture by rtfeldman on Sunday August 26, 2018 @04:11PM (#17847612)
> Thanks, I'll let everyone decide for themselves whether the deleted posts were personal attacks or not. Personally I don't see anything wrong with at least half of them.

Okay, but "personally I would have only deleted half of those posts" is a much different claim than "The only posts allowed on /r/elm are those praising Elm," which is what you said above.

You really shouldn't make such serious claims if you don't mean them.

> Why do the moderators invite everyone to discuss on Discourse when you know you'll delete or lock a thread as soon as it's posted?

I understand that you're trolling me, but just for the record - of course we don't do that.

Re:The Elm Architecture by throwaway237468 on Sunday August 26, 2018 @11:01PM (#17849199)
Ok, it's not literally "only" but most. /r/rust is a great example of healthy community. They only delete obvious troll/personal attack comments. You can go there right now and post a post similar to what you deleted on /r/elm and I bet it won't be deleted or locked.

> I understand that you're trolling me, but just for the record - of course we don't do that.

I'm not trolling. I'll bet $100 that you've at least deleted 3 threads about native code and locked at least 5. Latest example: https://discourse.elm-lang.org/t/elm-0-19-released-what-has-...

Moderator quote:

> Finally, a moderation note: I’m going to lock this thread since discussions on this topic have the unfortunate tendency to spiral out of control and we have already debated this past the point of productive return. If you have things you need to upgrade, we’re of course happy to help… let’s just do them in separate threads. :slight_smile:

Please don't suggest users of locked Reddit threads that they're welcome on Discourse. Just say the truth - you don't want any discussions about this anymore. There's no harm in being honest.

Re:The Elm Architecture by rtfeldman on Monday August 27, 2018 @09:24AM (#17851341)
I see where you're coming from!

To me, those two mod notes are consistent and sincere. Both are saying "this particular topic has been debated to the point where discussions no longer make progress, they just take up people's time and energy. That said, by all means please feel free to start a new thread about something more specific if you'd like to discuss that."

I see this as analogous to React and JSX. When React came out, many people said "putting HTML in JavaScript is Wrong, and React shouldn't do this."

At first, whether React should use JSX was a reasonable thing to debate. In 2018, this has long since been settled. A 2018 thread arguing that React should abandon JSX is going to take up people's time but it's not going to change the outcome of a decision that was settled years ago.

This is how it is with things like Native and typeclasses in Elm. Maybe you disagree, but I think there comes a point where it's reasonable to say "it is not a good use of everyone's time to re-litigate an issue that has been settled for years. You may still disagree with the final decision, but that ship has long since sailed."

I can understand the argument that "people must be free to waste everyone's time, because anything else is tyranny" and I can also understand the argument that "the Internet is full of places to post whatever you please, but this forum is focused on collaboration, sharing, and learning, not wasting time." It seems reasonable to me for a given forum to embrace either one of those moderation philosophies.

This is why I see the two mod notes as consistent and sincere. They are both saying "these broader design decisions have long since been settled, and we're locking the topic because they are a magnet for contentious discussions that don't go anywhere. That said, you are genuinely welcome to start a fresh thread about a more specific topic to your particular situation."

Again, maybe you disagree with this moderation philosophy, but it's simply not true that mods are inviting people to post only to lock whatever the follow up would be. That would be ridiculous.

Re:The Elm Architecture by throwaway237468 on Monday August 27, 2018 @02:34PM (#17853296)
Here's a quote:

> If you'd like to discuss Elm's trade-offs, both pro and con, there are plenty of people who are willing to talk openly about them in a calm way. I'd recommend opening a thread on Elm Discourse if you're interested in that.

Please edit it to say that discussions about cons like native code will not be tolerated and will be locked or deleted without warning.

Re:The Elm Architecture by throwaway237468 on Monday August 27, 2018 @02:38PM (#17853318)
One more thing, why did you lock and delete the whole thread instead of just deleting the comments you found offensive? Was the dev.to post also something that shouldn't be discussed in Elm communities?
Re:The Elm Architecture by wolco on Sunday August 26, 2018 @04:35PM (#17847754)
From what I understood:

10 posts have been deleted. 5 of them are obvious racist/spam. 5 of them are anti elm.

All anti Elm threads get deleted regardless of how much spam is also deleted

Re:The Elm Architecture by rtfeldman on Sunday August 26, 2018 @04:51PM (#17847835)
> All anti Elm threads get deleted regardless of how much spam is also deleted

From the same thread, here are several posts that are strongly critical of Elm:

1. @Sagan_on_Roids explains what he disliked about Elm and why he stopped using it: https://www.reddit.com/r/elm/comments/9a0hc6/elm_019_broke_u...

2. @eriklott agrees with the criticisms of the OP, and explains what he did after leaving Elm: https://www.reddit.com/r/elm/comments/9a0hc6/elm_019_broke_u...

3. @KittensInc curses about the state of websockets on Elm 0.19's release: https://www.reddit.com/r/elm/comments/9a0hc6/elm_019_broke_u...

4. @HelloAnyong questions why anyone would ever use Elm given its breaking changes: https://www.reddit.com/r/elm/comments/9a0hc6/elm_019_broke_u...

It's debatable whether some of the deleted posts were or weren't over the line, but it can't possibly be true that Elm mods are deleting all content that is critical of Elm.

Critical content is all over that thread, plain as daylight.

Re:The Elm Architecture by detaro on Monday August 27, 2018 @09:34AM (#17851389)
I don't think that's an entirely fair argument (although I agree that at some of these comments are easily justified for removal). Yes, there's still critical comments... In a thread that was completely hidden from the subreddit.

So the worst comments were deleted, and everything else, including the link to the blog post, hidden, and the existing participants stopped from continuing their discussion. Technically not being deleted is a small step.

Re:The Elm Architecture by leshow on Sunday August 26, 2018 @04:12PM (#17847623)
The post itself was removed by moderators and locked for nothing more than being critical of Elm.
Re:The Elm Architecture by rtfeldman on Sunday August 26, 2018 @04:56PM (#17847866)
> locked for nothing more than being critical of Elm.

Why do you say that? (There was a long note explaining why it was locked.)

Re:The Elm Architecture by Touche on Sunday August 26, 2018 @05:16PM (#17847973)
Total ousider here. The reason given for locking it are just points of disagreement with the article. The reason doesn't point to anything within the article that is against the subreddits rules.
Re:The Elm Architecture by rtfeldman on Sunday August 26, 2018 @06:26PM (#17848275)
Oh, I saw those as referring to the thread itself (e.g. the deleted posts). Hm.
Re:The Elm Architecture by dsissitka on Sunday August 26, 2018 @02:46PM (#17847209)
You can use Ceddit to see the comments the moderators removed:

https://snew.github.io/r/elm/comments/9a0hc6/elm_019_broke_u...

Re:The Elm Architecture by skybrian on Sunday August 26, 2018 @02:48PM (#17847220)
I'm not that concerned that /r/elm is tightly moderated, given that there are other places to discuss it. (Such as here.)
Re:The Elm Architecture by senorsmile on Sunday August 26, 2018 @06:55PM (#17848384)
Ah yes. That was the thread I started and was locked. I was and still am confused.
Re:The Elm Architecture by throwaway237468 on Sunday August 26, 2018 @02:25PM (#17847124)
There are tons of bugs in 0.18 compiler and 0.18 libraries that will never be fixed. Many of those have / had pull requests by the community members open for more than a year but they were never merged. These are tiny fixes, not 200 lines of code adding a new feature. There's no way to fork a package and apply a patch in 0.19 if the package contains native code. All you can do is report the bug and hope Evan fixes it before your deadline (which ranges from 1 week to 3 years).

Edit: Using a throwaway so I don't get banned from Elm Discourse and /r/elm. I still have production applications using Elm.

Re:The Elm Architecture by jnbiche on Sunday August 26, 2018 @05:29PM (#17848029)
> There's no way to fork a package and apply a patch in 0.19 if the package contains native code.

Yeah, if for no other reason than this I would never use Elm for a production site. The entire reason for using open source for me is being in control of the code, and not having to depend on a third party for a fix if things get bad enough.

Re:The Elm Architecture by technion on Sunday August 26, 2018 @07:02PM (#17848409)
Can someone clarify this? I've seen several references to how only a certain team can write modules using certain code.

If someone else can do it, why can't you?

Re:The Elm Architecture by rtfeldman on Sunday August 26, 2018 @09:48PM (#17848943)
Re:The Elm Architecture by sridca on Sunday August 26, 2018 @06:01PM (#17848175)
> Edit: Using a throwaway so I don't get banned from Elm Discourse and /r/elm. I still have production applications using Elm.

It's pretty sad that you have to do this. Any community that has the effect of instilling such fear doesn't seem healthy to me.

Re:The Elm Architecture by ppseafield on Sunday August 26, 2018 @02:11PM (#17847047)
I imagine because 0.19 has several backwards-incompatible changes and will probably not see updates or community interest/support.

I can't blame them - I worked on an SPA where the company used an older version of a javascript framework. After that version's docs went offline completely (they were actually for a slightly newer version with some extra functionality we couldn't use), the only existing docs were a PDF and the source code. Not a great position to be in.

Re:The Elm Architecture by throwaway237468 on Sunday August 26, 2018 @02:35PM (#17847164)
> community interest/support

The community is interested but PRs for 0.18 stopped being merged months before 0.19 alpha was released. I know I'm interested in a couple of patches, I'm also willing to write the code, but I won't because there's no chance they'll be merged and released. I'm using a private fork of those packages in my app for over a year now.

Re:The Elm Architecture by boubiyeah on Sunday August 26, 2018 @02:13PM (#17847061)
I think it's just that while it works, they don't want to bet on Elm's future and would rather learn new techs.
Re:The Elm Architecture by sixstringbudha on Sunday August 26, 2018 @12:42PM (#17846640)
> We have a 45kloc codebase in Elm and, despite having some big pros, the closed source development it goes through, along with the 0.19 debacle, just pushed us over the edge.

Can you clarify in concrete terms what the closed source development and 0.19 thing had cost you?

Re:The Elm Architecture by napsterbr on Sunday August 26, 2018 @01:46PM (#17846918)
I guess I've replied on the sister thread. 0.19 was just the final push. Closed development plus complete blocking of contrary feedback just does not feel like open source. The lack of transparency removed all the trust we had in the project, and although our app is relatively big, it is still viable to change to something else - that we trust.
Re:The Elm Architecture by sixstringbudha on Monday August 27, 2018 @02:29AM (#17849784)
So it seems that it was just a matter of trust (but it is not clear what trust you were looking for) and frustration with your feedback not getting heard?
Re:The Elm Architecture by somlor on Sunday August 26, 2018 @03:15PM (#17847345)
ClojureScript with re-frame is fantastic. I also use it on a production app with an Elixir backend, it's a great fit. Be sure to check out re-frisk and re-frame-10x.
Re:The Elm Architecture by atrilumen on Sunday August 26, 2018 @04:55PM (#17847864)
I've lost touch with Elm to be honest, (been using Choo)... but hey: wouldn't it be easier (and probably better) to upgrade and use ports?
Re:The Elm Architecture by kuwze on Sunday August 26, 2018 @04:06PM (#17847581)
Could you go into more detail, maybe listing the pros and cons for ReasonML and ClojureScript considering your use case?
Re:The Elm Architecture by TheSmoke on Sunday August 26, 2018 @03:49PM (#17847508)
first and foremost, you get to experience figwheel, an amazing interactive tool for the repl and browser. you'll see how you and rest of the team get productive in such a short time.