3 ms·
If you want it to feel more like backend development, give clojurescript a whirl. Best way to do that is start with this template: https://github.com/Day8/re-f
by bpicolo 10y ago
If you want it to feel more like backend development, give clojurescript a whirl.
Best way to do that is start with this template:
https://github.com/Day8/re-frame-template https://github.com/Day8/re-frame-template
Which is based on this library:
https://github.com/Day8/re-frame https://github.com/Day8/re-frame
ClojureScript is fantastic. Being immutable as a baseline makes it work so much better in the React world of things. That said, if you haven't used any Lisps it can be a bit intimidating (for me it still is, a bit), but you get to the point fairly quickly where things can be both daunting and productive at the same time.
If you prefer to stick with more raw JS, I recommend React without a data-framework until you find you need one. Raw react components are plenty to get you started.
- WhitneyLand 10y agoI would disagree. ClojureScript is very cool, but unless you're adept at functional languages it's another big jump for someone new to front end development. Plenty of time to do CS a little later.
- bpicolo 10y agoI mean, by that same metric if you aren't familiar with JS paradigms it's a leap on it's own, no? So I don't think that's the right metric on it's own. I also think that getting started with ClojureScript is pretty simple, even if you aren't super familiar with FP (though it will definitely stretch your brain a bit). ClojureScript gives you the opportunity to write code that's somewhat imperative, just with plenty of extra parentheses.
- Touche 10y ago> I mean, by that same metric if you aren't familiar with JS paradigms it's a leap on it's own, no? A smaller leap from a OO language to JS than to ClojureScript, surely you agree there.
- bpicolo 10y agoOf course! That said, I think the typical use with ClojureScript/re-frame doesn't lead you into an academic or pedantic world of heavy FP. The benefits of being functional are largely abstracted away. You're mostly going to be writing some HTML in DSL-style reagent(1), and mapping over lists/maps. That's largely why you can get productive reasonably quickly, even with the intimidation factor still present. (1): https://github.com/reagent-project/reagent#examples https://github.com/reagent-project/reagent#examples
- Touche 10y agoI think that's just a benefit of lisps in general, they don't focus on the academic "look at how smart I am" aspects of FP that the ML languages do.