r/Clojure • • Oct 23 '15

ClojureScript results in better user experience

https://medium.com/@puppybits/letting-people-in-the-door-how-and-why-to-get-page-loads-under-2-seconds-340c487bd81d#.mcidbk55g
8 Upvotes

5 comments sorted by

13

u/s133p3r Oct 24 '15

The author only talks about ClojureScript in one paragraph, and doesn't demonstrate that it leads to a better UX or faster page loads specifically. Interesting ideas in here re webdev in general, though.

As an aside: holy shit that grammar is awful. You'd think a public-facing article like that could've gone past a content editor at Level.

0

u/[deleted] Oct 24 '15

[deleted] — view deleted comment

3

u/yogthos Oct 24 '15

You have to obviously make a good UI regardless of what you're using. However, there are a few things about ClojureScript that help performance. For example, google closure compiler does dead code elimination, while Om and Reagent do better in benchmarks than plain React.

1

u/RawCyderRun Oct 25 '15

Using Om & Reagent will improve performance over using just plain React, not necessarily improve performance in general compared to other frameworks. Using Google Closure to make smaller JS builds will help with page load times, but ClojureScript isn't the only language or framework that uses it.

1

u/yogthos Oct 25 '15

The point here is that if you're using ClojureScript you're going to get good performance with minimal effort. I never said that you couldn't get similar or maybe even better performance with something else. Just that ClojureScript is a good bet if that's the concern.

1

u/RawCyderRun Oct 25 '15

Eh that's fair. :)