News for hackers. Stuff that matters.
Re:Vue.js vs. React: what happened in 2017 by dustingetz on Sunday December 24, 2017 @01:41PM (#16000683)
I write ClojureScript

A good indicator of if a technology is going to explode, is if emerging language users are excited about it, as good ideas tend to trickle down from the more advanced/research-y ecosystems which aren't as constrained by legacy. So for example React was built by a user of OCaml.

ClojureScript early adopted React.js through the Om project in 2013 and there is a growing number of competing React adapters, Clojure rewrites etc. I first saw virtual-dom in ClojureScript in 2012 (eight months before React came out).

Number of ClojureScript projects with traction that are based on vue? Zero, that I am aware of.

Re:Vue.js vs. React: what happened in 2017 by moomin on Sunday December 24, 2017 @04:40PM (#16001424)
Speaking as someone who writes ClojureScript themselves, ClojureScript is definitely in the category of technologies that show no sign of explosion whatsoever.

React and Vue are both great technologies, but with Teact the template syntax is optional, and no lisp user wants another syntax...

Re:Vue.js vs. React: what happened in 2017 by wirrbel on Sunday December 24, 2017 @06:06PM (#16001772)
I picked up ClojureScript at the end of 2013. I was a C++ developer then in a small firm and was tasked to write a web frontend. Outsourcing that project had failed before (2 times iirc), so my boss bet on me to do it. I knew HTML and had written probably < 1000 lines of Javascript code in my life before. Anyway, I needed to write an interactive single page app (basically it was a visualization of simulation results), so I needed Javascript. But it was so frustrating to write Javascript (also, tooling was mediocre back then or I didn't know it). So at the same time, I stumbled over ClojureScript and had a try (I new Scheme before and was especially outraged by JS syntax quirks, so I hoped S-expressions would rescue me). With ClojureScript in 2013 I had a module system that handled dependencies, an emerging library ecosystem that had what I needed for that specific case, I was pretty happy. This was more advanced than what I got with JS (I might not have found the viable options for such stuff with JS, but at least information on them wasn't widely found then).

Last year I had another look at ClojureScript and it felt like a ghost town. This saddens me. There are a few inspiring talks now and then, but nothing I found worth using in a project.

Re:Vue.js vs. React: what happened in 2017 by yogthos on Sunday December 24, 2017 @07:24PM (#16001999)
I'm really surprised by this assessment. I've been working with ClojureScript for the past three years, and I find the ecosystem is very vibrant. ClojureScript itself has been evolving rapidly. Lately there's been a lot of focus on Js ecosystem integration allowing you to do things such as consuming NPM modules directly. The compiler itself is very efficient doing things like dead code elimination and minification out of the box.

In terms of libraries, I haven't found anything that comes close to reagent/re-frame for building complex UIs.

Meanwhile, hot code reloading with Figwheel works beautifully, and you have a REPL for running code in the browser straight from the editor.

My team is very happy with the results of building ClojureScript based applications. I'd be curious to hear why you feel that there's nothing that's worth putting in a project.

Re:Vue.js vs. React: what happened in 2017 by subatomic on Sunday December 24, 2017 @06:32PM (#16001837)
Not sure about the inspiring talks or whatnot, but I've been writing clojure/clojurescript (reagent, re-frame et al.) professionally for a couple of years and there's nothing I can't find that I need in a project. With simple js interoperability, native use of js/react components in reagent and ease of wrapping any vanilla js library, there really is nothing you can't do with clojurescript. You should take a closer look!
Re:Vue.js vs. React: what happened in 2017 by christophilus on Sunday December 24, 2017 @09:48PM (#16002366)
I really enjoy ClojureScript, and haven't found it to be a ghost town at all. Reagent and re-frame + Figwheel are a killer combo. ClojureScript's JS interop is stellar.

I guess compared to the frantic pace of the JS ecosystem, the ClojureScript ecosystem does feel tiny and slow-paced. But I don't mind that.

Re:Vue.js vs. React: what happened in 2017 by dustingetz on Sunday December 24, 2017 @08:20PM (#16002164)
I also find the ClojureScript ecosystem vibrant and growing
Re:Vue.js vs. React: what happened in 2017 by dustingetz on Sunday December 24, 2017 @06:49PM (#16001889)
1) I didn't say that, I said good ideas trickle from research ecosystems to industry ecosystems, because legacy

2) Ruby (1995) showed no signs of explosion whatsoever, first rails had to come out (2005), and then industry had to realize that it was a good idea (Rails 3 is the first version I ever used, that was in 2009?). So that's 10-14 years. ClojureScript is 6. Give it a chance!

Re:Vue.js vs. React: what happened in 2017 by owebmaster on Sunday December 24, 2017 @02:30PM (#16000920)
This is my reasoning too. Until someone creates a better reagent and reframe and renatal I'm gonna stick with React
Re:Vue.js vs. React: what happened in 2017 by yogthos on Sunday December 24, 2017 @07:25PM (#16002004)
What do you find missing in Reagent currently that works better in React?
Re:Vue.js vs. React: what happened in 2017 by owebmaster on Monday December 25, 2017 @02:52PM (#16005446)
Nothing (?!).
Re:Vue.js vs. React: what happened in 2017 by yogthos on Monday December 25, 2017 @03:06PM (#16005480)
So what would you expect to see in a better reagent and reframe and renatal that would make you switch from React?
Re:Vue.js vs. React: what happened in 2017 by owebmaster on Monday December 25, 2017 @08:32PM (#16006545)
No, what I mean is that I'd only switch from reagent with react for a better-than-reagent fw based on vue.
Re:Vue.js vs. React: what happened in 2017 by yogthos on Monday December 25, 2017 @09:00PM (#16006629)
Ah sorry, I completely misread your original comment. :)
Re:Vue.js vs. React: what happened in 2017 by lsdafjklsd on Sunday December 24, 2017 @04:34PM (#16001401)
I think it's really people's experience. I'm in your camp, I write functional javascript, I learned clojure, I think about writing software in a way where react-redux (and re-frame) fit the paradigm and get out of the way. Vue seems like Backbone v2 after drawing inspiration from Ember and Angular
Re:Vue.js vs. React: what happened in 2017 by bpicolo on Sunday December 24, 2017 @03:37PM (#16001207)
Ehhh, I don't think that's really telling in this case. Clojurescript layers plenty on top React, so it's really just a library layer over which cljs devs write entirely different DSLs.

The Vue reactive and dom model is pretty much entirely the same as React, it's just its layout for frontend applications that's wildly different. Even if you wanted the component-file style thing in clojure (or html-templates), you wouldn't need Vue to do it.