#HTML developing, editing dirty HTML produced by a Word Perfect export, is so much better with #Clojure hiccup and structural editing. This is a powerful, easy, much less repetitive solution. As someone who has done his fair share of HTML editing (even with good tooling!) I can definitively say, this is how HTML was meant to be.
- syntax far cleaner. `[:div.someclass ,,,]` instead of `<div class='someclass'> ,,, </div>`
- Clojure comment syntax, #_ for commenting out an entire branch of the dom, or just an arg of an HTML element
- Lisp structural editing: lisp syntax is ideal for manipulating trees like the DOM. Add, remove, translate DOM sections, easily moving a complex many-branched element to/from within another many-branched element, never worrying about missing a tag closing or misplacing an opening.
- Reagent bonus: have React.js' help informing you about problematic structures
- Reagent + Figwheel/Shadow bonus: watch your html changes instantly shown in your other browser an the side
RT @the_lazy_folder
I'm not going to do a year-in-review blog post. I'm just going to say.
#Clojure changed my life.
It was the one of the best decisions I made in my life.
My only regret is that I didn't learn it sooner.
RT @enigma2a
#Clojure has been life changing for me too. I’ve been on the Clojure path for 6 years and counting. The benefits of immutability run far deeper than I would have guessed when I first started. It changes how you solve problems, and that affects all aspects of development! https://twitter.com/the_lazy_folder/status/1476746158793900033
@veer66 @aeveltstra @yogthos@mastodon.social So, are functional languages the only ones that have immutability? I'm not sure...
@PsychoCod3r Yes, but Twitter does all kinds of occult stuff to factor those in to algorithms that determine which stuff is prioritized on your feed, with the end result that things retweeted by people are more likely to be seen by others, even discounting friend status
It isn't mentioned much, but Clojure's form comment syntax is absolutely fantastic. With a `#_` you can comment out a sexps which are valid #Clojure syntax, but no good for some other reason. It makes regexp find-replace great for removing things breaking my reagent (reactjs) manufactured code.
Although https://github.com/tristanstraub/garden-mower is inspired by use with Tailwind, I just used it to easily, rapidly import an arbitrary CSS file into my #Clojure #Clojurescript Garden files. Beautiful!
Also, it was my first project in which I've used deps.edn instead of Leiningen. Cider started it notably quickly. Success on two fronts!
Issue trackers are a godsend. If I couldn't write up the various ideas I have while working on other things, I'd never get anything done. Either I'd be flitting around to lower-prio tasks or I'd be constantly tripping over issues that I happened upon earlier or I'd straight up forget to do things.
TODO lists help, but I've never managed to consistently review and clear my TODO lists. That's more often where tasks go to die.
#programming #softwarengineering
Heres something to think about. I don't have much patience for artificial scarcity , but believe that immutability is usually a good thing
---
RT @raganwald
Hackers, 1981:
"We are building a post-scarcity world with open source. Just watch us!"
Hackers, 2021:
"We are restoring scarcity with immutable ledgers. Just watch us!"
https://twitter.com/raganwald/status/1476343520709562372
I am gradually making a registry of great and horrible web apps. Slack makes a case in point: I use their desktop webapp in browser practically all day every day. On mobile, though, they literally don't even try to make a web app mobile-friendly: it actively redirects you to the app store at every attempt. Unacceptable, @slack!
Disney has a long history of being an enemy of content freedom, most notably how they twisted and manipulated copyright law to something distincly NOT in public interest, for their own pocketbooks. Disney+ is the climax of that same ignoble mission so far. https://www.defectivebydesign.org/blog/idad-2021-counteracting-disneys-attack-culture
I'm always interested in web frameworks, especially #lisp ones. Here is Artanis, GNU Guile. Reagent it isn't, but it's a start https://web-artanis.com/about.html
Full Stack Clojure web app engineer