Show newer

I've never done inline tests, instead keeping them in their own NS, but for unit tests this is worth considering
---
RT @pappapez
@VincentCantin @JonPMasters @sfyire I've seen pretty large systems where inlined tests are used throughout and where it helps a lot, and also other systems where the code get pretty much unreadable because you have to wade through a kilometer of tests to reach the implementation.
twitter.com/pappapez/status/14

... and, beautifully recursive solution:
---
RT @JBiserkov
@sfyire (defn one-edit-away? [a b]
(cond (= a b) true
(= (first a) (first b)) (recur (subs a 1) (subs b 1))
:else (= (if (>= (count a) (count b)) (subs a 1) a)
(if (>= (count b) (count a)) (subs b 1) b))))

code golf is amazing, thanks for this
twitter.com/JBiserkov/status/1

Level 3 learning Dvorak keyboard: write some regex replacements. Converting to data structures. I try to explain to folks how much a part of my daily life are regexp....

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!

RT @scicloj
Do you like and wish to know more about ?
Join our study session this Saturday.

(We're also continuing our usual path with data science study sessions on Sunday.) twitter.com/clojureverse/statu

RT @martensytema
Functions and Data.

That's it, that's the tweet.

Todo: write on this from a perspective. Should we make a Garden repo of canned styles? How do the mainstream preprocessors like SASS tie in to this?
---
RT @denicmarko
CSS generators can save you a lot of time and effort.

🧵
twitter.com/denicmarko/status/

RT @borkdude
This is a list of companies using , a linter for that sparks joy!

github.com/clj-kondo/clj-kondo

If your company or project is using clj-kondo, reach out here to get yours listed:

github.com/clj-kondo/clj-kondo

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!

are stable tech :-)

RT @davidvujic
When learning a new language, you bring good things to other areas. REPL Driven Development is something I’ve learned through .

I love it. 😍

Can we also do that in ?

Here’s some ideas:

davidvujic.blogspot.com/2021/0

RT @borkdude
This week I took a hard decision: I quit my long-time job to work more on OSS.

I wouldn't have done this without @RoamResearch, @cognitect, @usenextjournal, @AdGojiDSP, @health_samurai, @Pitch and I hope you or your company will follow!

github.com/sponsors/borkdude twitter.com/grzm/status/144394

This is a good thing. In and , 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 !
---
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
twitter.com/chriscoyier/status

RT @Remy_sajoR
Learn yourself a so you never deal with this sort of "yes, but actually no" shenanigans twitter.com/mathsppblog/status

RT @AdamHelins
Awesome, first Convex hangout on how to build dApps in @convex_world

RT @borkdude
The argument parsing code of neil is basic, short and effective. Subcommands + key/values. Every subcommand gets to pick their arguments from the set of key/values.

github.com/babashka/neil

I haven't heard it called "key-value" before, just referring to maps, Python dictionaries, JS objects. Some of these old lisps are awkward at making these things, though.

veer66  
@worldsendless Common Lisp has cadadr. http://clhs.lisp.se/Body/f_car_c.htm Anyway, it is not simple. 😛 I usually use key-value data instead in C...
Show older
Qoto Mastodon

QOTO: Question Others to Teach Ourselves
An inclusive, Academic Freedom, instance
All cultures welcome.
Hate speech and harassment strictly forbidden.