Using Emacs 63 - ClojureScript
Вставка
- Опубліковано 17 лис 2024
- This is more a tutorial about ClojureScript than Emacs but does show how I use Emacs for ClojureScript development.
Blog post: cestlaz.github.....
Series page: cestlaz.github....
Emacs config: github.com/zam...
more, definitely more! I always learn something new watching your vids. Curious to see how electron development works with clojurescript
Neat little intro. Small semantic mistake regarding the hot-reload. When you change the code and save the file it does not reload the page. It just reloads the namespace(s) that you changed. Since you declared (def counter (r/atom 0)) in it your state is lost since you basically redeclare it. If you instead use (defonce counter (r/atom 0)) it is not redeclared and your state is kept.
D'Oh!! Right. Thanks for catching that and pointing it out.
+1 on components and the Electron app. Also interested on the server side. Thanks so much for this video!
great content. learned a few tricks, thanks man. looking forward to more on clojure
more videos on cljs would be really really cool and appreciated! personally i think all of the stuff you mentioned at the end sounded super interesting.... in particular i'd love to learn more about how to build reusable GUI components.... generally..... how to do front-end-stuff using cljs, because, like you said, there is really no single right and agreed upon way to do that in cljs,.... and that can be a bit confusing.... some things that have been on my mind for quite a while now.... where i am not yet quite sure what to make of them.... and where i'd really really love to see youtube-videos on..... are for example....
strategies for dealing with state.... how valid is for example the single / global ratom approach paired with reagent-cursor-backed mutation.... how serious is for example the scope issue there.... what are your thoughts on frameworks like re-frame, om etc....
strategies for dealing with styling / layouting components..... responsive web-design.... css frameworks and how to use them with cljs.... for example.... how to approach building a SPA on top of bulma / bootstrap.....
strategies for dealing with animating components....
....so... basically everything related to front-end-dev using cljs would be really really helpful!
( p.s. feels a little weird to "order" know-how and insight like this :-).... but you kind of asked for it, right? :-)... )
I can't say I feel qualified to talk about the right way to do all of the above but will probably make some videos on at least some.
@@mzamansky cool! really looking forward to it! ( by the by, i have also been watching and ENJOYING! many of your other videos on emacs... perhaps not hitting that like button / commenting as much as i should have... so i guess i just wanted to quickly make up for that, by explicitly complimenting / thanking you on / for doing all of those!... that stuff is really really great!... so...and again... thx!... and... keep 'em coming :-)... your videos are awesome!!! )
I'm having some issue with evaluating froms from the source buffer. My repl is connected to the browser, but my source doesn't seem connected to the repl.
Thank you. This is really helpful
I love Clojure (& cljs)! You may find 'The Lisp Curse' interesting. Clojure suffers less, I think, since it has a clearer use-case than many dialects, but it's still there.
You may enjoy the 'parinfer' package for Emacs, it's almost magic to me.
using Clojure to write html, js and css seems a little overkill, right? My understanding is that Clojure is used to write functional programming in Lisp and implement it in java .. for concurrency.. am I right?
Yep, keep going please. Thank you!
Now I can finally use clojurescript. Thanks for the video.
Really a great video, thank you. You highlight point of the clojurescript that I'm struggling with, so I can say that you make my day :)
I'm also really interested by the link of shadow-cljs to the server side of a project (I'll soon need to dealing with this blur aspect of my project).
look better than reactjs