Fork me on GitHub
#off-topic
<
2018-04-06
>
xtreak2906:04:38

Latest git release shows function context with -W which is highly useful. https://blog.github.com/#grepping-with-function-context

$ git grep try-get-as-pdf

src/pdfboxing/common.clj:  (if-let [pdf (try-get-as-pdf pdf-file-or-path)]

$ git grep -W try-get-as-pdf

src/pdfboxing/common.clj-(defn is-pdf?
src/pdfboxing/common.clj-  "Confirm that the PDF supplied is really a PDF"
src/pdfboxing/common.clj-  [pdf-file-or-path]
src/pdfboxing/common.clj:  (if-let [pdf (try-get-as-pdf pdf-file-or-path)]
src/pdfboxing/common.clj-    (try
src/pdfboxing/common.clj-      (not (nil? pdf))
src/pdfboxing/common.clj-      (finally
src/pdfboxing/common.clj-        (.close pdf)))
src/pdfboxing/common.clj-    false))

😍 4
pesterhazy08:04:55

@xtreak29 that's pretty cool indeed (and even cooler that it seems to be aware of lisp)

pesterhazy08:04:32

I now wonder if rg has the same feature

xtreak2908:04:30

Actually it sort of showed the entire ns I think. But it's configurable and Clojure is not supported by default. We can add custom ones at https://git-scm.com/docs/gitattributes#_generating_diff_text.

pesterhazy08:04:45

Yes that's what I see as well with 2.16 - it shows the entire file

jgh14:04:51

ot ot a friend of mine posted a pic of the throne of the prince of monaco on instagram today and it got me thinking about monarchies. And then I wondered if north korea is a monarchy, because it seems the difference between a monarchy and dictatorship is inheritance. But people saying no say so because they arent “traditional” or that they’re tyrannical. Which strikes me as splitting hairs. I mean look at the wars of the roses for example, a couple of warlords fighting to be king. The legitimacy of the rule is completely fabricated, its just whoever is strongest.

3Jane15:04:14

I remember an article about government systems in fantasy (as in books) and apparently monarchy is overwhelmingly portrayed as “how things should be” ¯\(ツ)

3Jane15:04:45

so it’s like there’s a strong association of monarchy with benevolence and divine right in collective unconscious

gklijs15:04:18

Most modern monarchies have only a very limited political role for the monarch, it’s almost only ceremonial.

3Jane15:04:15

it’s weird, though. in the UK the Queen is the head of the (national) church, and high-ranking members of the same church are on a governmental body (the house of lords, which also incidentally contains hereditary members - and wikipedia just enlightened me that most of these positions cannot be inherited by women).

4
3Jane15:04:14

like with coffee or alcohol, there’s a lot of cruft that everyone accepts because it’s always been that way, but if you tried to introduce a new X with the same rules/properties, you’d be met with a huge outcry.

dpsutton15:04:13

It looks like North Korea is a democracy: https://en.wikipedia.org/wiki/Elections_in_North_Korea 100.00% of the votes went for the party alliance of the Democratic Front for the Reunification of the Fatherland with 99.97% turnout

dpsutton15:04:28

airquotes ommitted

✌️ 8
john15:04:01

Is there a channel focused on Clojure Bridge-like coordination? Or the resources to build a Clojure Bridge workshop?

john16:04:02

I may want to leverage https://github.com/robert-stuttaford/bridge too if/when it's ready. That looks like a pretty interesting greenfield clj-tool/cljs.main project to get familiar with.

dominicm21:04:16

Edge may also be something you want to look at :)

john21:04:59

Nice! Thanks. I'll check it out.

jgh17:04:05

> so it’s like there’s a strong association of monarchy with benevolence and divine right in collective unconscious Yes, it seems like people associate monarchies with benevolence and conveniently ignore that they’re authoritarian regimes.

jgh17:04:28

modern monarchies are different of course for the most part

jgh17:04:52

other than notable examples like Saudi Arabia and Thailand

jgh17:04:45

The divine right is just a cult of personality under the guise of religion

fellshard19:04:49

Not necessarily personality; maybe moreso in modern times, but I'm sure tradition can also weigh in as well.

borkdude17:04:08

Clojure surpassed Scala in the TIOBE index… 😄 https://www.tiobe.com/tiobe-index/

Alex Miller (Clojure team)18:04:59

Of all the broken invalid language indexes, tiobe is now my fav

😄 52
❤️ 8
sveri19:04:52

You know, like the gardner quadrants for everything over the moon and the sun. I bet there is a gardner quadrant for every top 500 company on Earth / continent / country 😄

fellshard19:04:15

Time for a metaquadrant of quadrants.

theeternalpulse20:04:49

has anyone read this http://www.smashcompany.com/technology/object-oriented-programming-is-an-expensive-disaster-which-must-end I saw it on my twitter a while back, more of a rant (as the author himself claimed)

seancorfield21:04:08

@theeternalpulse Yeah, I think I read it when it came out, and I've seen similar "rants" before and since by a number of people. I agree, for the most part, despite having been primarily an OO programmer professionally from around '92 to maybe 5-10 years ago (and a C, COBOL, and assembler programmer before that -- at least, professionally).

seancorfield21:04:10

But then I was exposed to FP back at university in the early 80's so I'd already seen "better ways of doing things" by the time I started my career 🙂

qqq22:04:35

compared to other languages, is Forth code trivial to decompile? it seems like if programs are lists of words to be interpreted, they should be fairly easy to read off (compared to other languages)

andy.fingerhut22:04:14

@theeternalpulse Wow that is a long article. I don't think I have the stamina to finish it, and I have spent many hours transcribing Rich Hickey and Stuart Halloway talks on similar topics 🙂

theeternalpulse23:04:11

Haha, I forget the poster but I follow him because of his involvement with unity and Arcadia in clojure