That's part of the beauty of #clojure. Since the same language is on the backend in JVM and front in #Clojurescript, the hosted transpiling sidesteps any "not real programmer" vibes. Not to mention, #lisp. They might hate your parens, but they know you're a programmer.
---
RT @bentlegen
It’s incredible how fast our industry went from “html isn’t real programming” to “rust programmer thinks publishing a website is too hard”
https://twitter.com/bentlegen/status/1448423119249608706
And then you learn immutable data, #clojurescript cond, no need for booleans, vectors and maps instead of arrays and objects, and if you don't get the magic back, at least it's even more fun now!
---
RT @TheJackForge
Before I knew web development, I thought the Internet was magic.
Then the magic fades once you realize that it's just arrays, objects, booleans, and IF/ELSE statements. 😅
https://twitter.com/TheJackForge/status/1448613801767489538
Cheers for documentation well done! Check out #clojure #clojurescript #re-frame docs: https://day8.github.io/re-frame/FAQs/Inspecting-app-db/#short-answer
Some readable #Clojure and #Clojurescript codebases. Discussing readability requires an obligatory mention of @elementsofclj book too.
- This project tangles orgmode to #clojure for literate programming. https://github.com/thi-ng/geom/blob/feature/no-org/org/src/viz/core.org
- For a major used library, I knew I couldn't go wrong with Corfield, so check out HoneySQL https://github.com/seancorfield/honeysql/blob/develop/src/honey/sql.cljc
- Here is a new in-development #ClojureScript one with the Lambda Island stamp of approval, asd seems pretty readable to me:
https://github.com/lambdaisland/deja-fu/blob/main/src/lambdaisland/deja_fu.cljs
- And here is a small old "finished" one where I recently read the code to figure out how to do what the docs didn't mention:
https://github.com/alandipert/storage-atom/blob/master/src/alandipert/storage_atom.cljs
Just read a libraries code to figure out how to supplement its Transit readers, easy peasy, because the docs haven't been updated in years and didn't include that tidbit. Feels good! #Clojure #ClojureScript
in #clojurescript
(clojure.string/replace "Hello World Johnny" #" " "")
---
RT @swapnakpanda
🚀 Problem Solving
Given a string input, you need to extract only non-whitespace characters and returns the string.
Example:
Input → "Hello World Johny"
Output → "HelloWorldJohny"
Can you write just a one-liner code for it?
Hint in JavaScript: You can use split, join etc.
https://twitter.com/swapnakpanda/status/1446029146853818368
RT @RobStuttaford
We shut down an internal content management tool today.
It was built by Clojure newbies (us in 2013). It served us for 8 years!
#clojure #clojurescript #datomic are stable tech :-)
RT @borkdude
This escalated quickly: Calva already published a new version where the #nbbjs nrepl-server works as expected.
See https://github.com/borkdude/nbb#nrepl.
#clojurescript #clojure #nrepl https://twitter.com/pappapez/status/1444234821912436739
These puzzles just disappear when you used immutable data. Problem solved. #ClojureScript
---
RT @ravinwashere
JavaScript Quiz 🏆
Comment the output of this code?
let x = 5;
let y = new Number(5);
console.log( x == y);
console.log( x === y);
Also, let me know the reason for your answer below!
A: true and false
B: false and false
C: true and true
https://twitter.com/ravinwashere/status/1443643154658316288
How long will #ClojureScript last? A few reasons in may stick around a while:
- great syntax
- good ideas, like immutable data and namespaces
- easy to use its host, so JS changes so it doesn't have to
- community culture of NOT BREAKING THINGS (just ask @stuarthalloway )
---
RT @CicmilJovan
When I started freelancing, jQuery was the most popular thing in the Javascript world.
When you asked Javascript questions on StackOverflow, …
https://twitter.com/CicmilJovan/status/1443849813146144768
This is a good thing. In #Clojure and #ClojureScript, all spaces are equivalent to one space, and that includes commas. I am not a fan of Semantic Whitespace like Python.
Need some extra space displayed on a page? For Heaven's sake, use #CSS!
---
RT @chriscoyier
how much space is a space?
i like how html is like...
one space? one space
2 spaces? one space
50 spaces?! one space
100000 spaces??? one space, bruv
https://twitter.com/chriscoyier/status/1443581984991707137
What a triumph of interface design and #ClojureScript! Not only a very, very cool UI creation, but a great way to explore some of the core library and to get a a visual understanding of Reverse Polish Notation (RPN). First-class work!
---
RT @ella_hoeppner
Here's a video that shows how it works: https://www.youtube.com/watch?v=1OcAUhe3E1E
https://twitter.com/ella_hoeppner/status/1439717777196126208
RT @ella_hoeppner
I've been working on a cool little #ClojureScript app for a month or two now, and it's finally ready for an initial release. Check it out here: http://vlojure.io
Basically, it's a visual interface for writing an evaluating ClojureScript.
Now have HTML5 local storage working in my #clojurescript app! I guess it is possible for the front-end to handle sessions, as long as they aren't anything confidential. Thanks to old mostly-finished things like https://github.com/alandipert/storage-atom. Transit had a couple loose ends, and now to figure out session timeout...
Question of the day: do you use any macros that have you write otherwise-invalid code in #ClojureScript? IE break the (function args) syntax?
Only one I can think is reagent, [function args]. But that barely counts.
---
RT @iamsegunajibola
Question of the day:
Do you still use semicolons in JavaScript?
https://twitter.com/iamsegunajibola/status/1442792196646719495
#clojurescript
---
RT @cemerick
all these parentheses in javascript are annoying af
https://twitter.com/cemerick/status/1442577396272705541
Someone recently suggested that beginners spend a year "grinding every day" to master the language. Putting in the time is critical, but I don't think #Clojure #ClojureScript are ever a grind. They are too fun for that!
Good tip. And before jumping in to #Clojurescript, complete at least 5 more in #Javascript.
This is the curse and the blessing of the #clojure philosophy -- know a little of your hosts first, but then reap the benefits
---
RT @mdjunaidap
Are you an aspiring front-end developer?
This tip is for you!
Before Jumping into Javascript, try to complete at least 5 Projects using plain HTML and CSS.
https://twitter.com/mdjunaidap/status/1442015587958358016
or we use immutable data and never have the question, "wait... did this get emptied?"
Interesting how the concept itself goes away.
#ClojureScript
---
RT @VladPasca5
JavaScript tip💡
You can use the syntax "array.length = 0" to empty an array
Here is how it works
👇
The #webdev community is largely single-line promotionals (mostly about the glories of #javascript) and threads of handy gee-whiz info. So, in proper #Clojure fashion, I've decided to use that community as Host and do all those same things, but #ClojureScript. Join us in the fun!
Full Stack Clojure web app engineer