Fork me on GitHub
#announcements
<
2021-11-22
>
vlaaad12:11:45

I’m proud to present an initial release of tweet-def library — tweet as a dependency! 🎉 https://github.com/vlaaad/tweet-def 🎉 Using this library you can depend on one-liners tweeted by other Clojurists!

🤪 23
metal 5
clojure-spin 4
😂 10
🎉 1
imre12:11:41

😢

user=> (tweet/def "")
Execution error at io.github.vlaaad.tweet-def/def (tweet_def.clj:53).
EOF while reading

borkdude12:11:47

@U47G49KHQ will you also make an extension for tools.deps.alpha? it has extensible multimethods. I'm sure the community will make good use of it.

vlaaad12:11:13

I think this is a great idea, and I asked in #tools-deps yesterday about it

vlaaad12:11:17

@U08BJGV6E I released a hotfix: v2 works on your tweet

❤️ 2
imre12:11:19

🎉

; clj -Sdeps '{:deps {io.github.vlaaad/tweet-def {:git/tag "v2" :git/sha "134a803"}}}'
Checking out:  at 134a8033b371cbb783ff4011175666388fca6dec
Clojure 1.10.3
user=> (require '[io.github.vlaaad.tweet-def :as tweet])
nil
user=> (tweet/def "")
#'user/<<-
user=> (def a 1)
#'user/a
user=> (<<- (if (odd? a) 1) 3)
1

😆 3
imre12:11:53

the example in the readme is slightly off, though

vlaaad12:11:52

what’s wrong there?

pez12:11:02

OMG, this is awesome, @U47G49KHQ!

😄 2
imre12:11:14

ah no sorry, I confused the readme with the comment block in tweet_def.clj :s

vlaaad12:11:21

ah yeah, that comment now is a bit weird

pez12:11:32

I challenge the immutability of tweets, though. 😃 They can be deleted and also made private/followers only.

vlaaad12:11:38

This is a first truly social dependency! Where else can you go to definition of some function and leave reply to it with some memes

metal 1
vlaaad12:11:02

@U0ETXRFEW, your critique equally applies to git dependencies

pez12:11:22

True, true

borkdude12:11:41

gists can already be used as gitlibs

vlaaad12:11:50

why not straight to ethereum chain layer 1

vlaaad12:11:11

“pay $100 to deploy your oneliner”

😂 1
vlaaad12:11:16

but then it’s forever

pez12:11:37

A better choice is probably #convex then.

borkdude12:11:42

I think I'll just stay with tweet-def

borkdude12:11:08

I mean, what more do you need, if a library is longer than a tweet, it's obviously too complex

👏 2
bananadance 1
pez12:11:32

So then you won’t vote for a feature request that tweet/def should unwind twitter threads?

borkdude12:11:51

Put it in a tweet and then we can build a JIRA around tweets

borkdude12:11:05

if your proposal is longer than a tweet, it's not a good one

💯 4
vlaaad12:11:39

it’s like amazon’s 6 pagers, but shorter

borkdude12:11:28

although I think there is a place for unwinded tweets to store base64-encoded blobs... tweet-def-lfs

vlaaad16:11:18

One downside of twitter deps is unclear license for the code…

vlaaad16:11:37

looking at the twitter’s terms of service it seems by default tweet deps can be used only by twitter inc 😄

robert-stuttaford07:11:40

what could go wrong lol

imre15:12:33

now I think I might want to have this on my dev classpath