Fork me on GitHub
#clojure-europe
<
2022-07-14
>
robert-stuttaford05:07:45

hello! looks like a gorgeous summer day ☀️

😎 1
reefersleep07:07:54

Good morning! Seems I was finally let into the Clojure group on Linkedin, I guess? Can’t even remember applying.

reefersleep07:07:52

Do you guys use LinkedIn for social stuff? An old colleague once told me that he didn’t bother using Facebook now, since he had LinkedIn. They’re two totally different beasts, imo. I weakly tried entering interest groups, but it never caught on with me.

slipset07:07:02

I don't use LinkedIn nor fb much, but I also see them as two different beasts. LinkedIn is work related. Fb is personal. My most used platform was Twitter, but Larely I've lost interest. Now it's almost just Clojurians.

👍 1
reefersleep07:07:07

I never really “got” Twitter from a personal/social standpoint. Seems like you have to be incredibly active to get any interaction.

slipset07:07:54

Yeah, I used it as an information source, but even that takes time, you need to find the interesting people to follow. And for me, it was important to keep my feed at a reasonable size, I guess around 150 tweets pr day.

reefersleep07:07:18

I’ve seen gold there, but I hardly know how to dig for it. Seems so messy and random. Following the “right” people probably helps, but I never got past the hurdle of finding them 🙂

reefersleep07:07:12

Perhaps there are options for improving the feed as well.

slipset07:07:51

That's I guess where the algos could come in handy, but they're not really created for the consumer, but rather for Twitter itself, I'd say. And, they're deffo not good enough to give me a feed that I'd accept :)

💯 2
simongray07:07:12

LinkedIn as a social media I just don’t get. It’s just a bunch of people doing one-way communication in the same language they’d use to write a job application. Twitter is a cesspool, but I do actually use it. My main issue with Twitter is that you get the politics mixed in with everything else, so even if you follow someone e.g. for their hobby you might suddenly get a period with lots of political stuff. Also, every time there is any kind of noteworthy political event in the US, Twitter is absolutely dominated by it for several days. Facebook is dead. Just ads and forwards from grandma.

👍 2
simongray07:07:24

My time is wasted on Hacker News and a few subreddits… and on Clojurians Slack 😛 I mainly use Twitter to follow the war in Ukraine and Clojure people.

slipset07:07:46

Facebook is essential to me as a lot of school social stuff for the kids happens there. Also, there are some groups that I follow there for my hobbies.

simongray08:07:46

True. Our co-op also uses a Facebook group to communicate.

dharrigan08:07:36

For twitter, nearly all of my follows are for tech I use, so I can see releases. I deleted my facebook and linkedin account a long long long time ago and have never ever missed them. I use RSS quite a bit to follow interesting tech news. For a bit of downtime, my favourite channels on reddit are todayilearned. explainlikeimfive, movies, space, askscience and oldschoolcool.

javahippie08:07:37

I am using LinkedIn quite some bit, mostly to keep in touch with “colleagues” from old client-projects, which worked for different companies. So sometimes it’s business-social (publishing a status what I am doing, or if I am visiting a city for business and see if sbd wants to meet for a coffee) or commenting on posts of other people in a similar way. It’s a low-effort way to maintain a network of people in the industry, and two or three times it lead to new project engagements. So the goal is my business, but it’s mostly chatting about this and that

simongray08:07:00

LinkedIn definitely does work for the purpose of getting a job/recruiting for one.

reefersleep08:07:27

Other than for those social gatherings with people you already know in flesh space, Facebook actually has some awesome groups for knowledge and experience sharing. My girlfriend is a member of a bunch of groups that have to do with different aspects of parenting. She’s said many times that if it weren’t for them, she’d feel so lonely and lost and unsure about everything.

reefersleep08:07:41

@U4P4NREBY I feel the same about LinkedIn! I feel like those people who say that it’s about anything other than hiring and self-promotion are gaslighting themselves.

reefersleep08:07:45

@U0N9SJHCH 😅 but that’s just my feel of it; if people are getting real social value from LinkedIn, then great!

javahippie08:07:26

@U0AQ3HP9U No, I completely agree. I keep in contact on a social level, but would not do it if it wasn‘t for my service-business with the goal to get some leads

2
reefersleep08:07:53

I feel like I can never let go of Hacker News, it’s such a great aggregation of interesting stuff. I came for the tech stuff (mostly programming languages), but stayed for the odd-niche-of-the-day stuff.

1
simongray09:07:22

Yup, same. Furthermore, despite the HN comments being mostly written by a bunch of Mr. Spock-like know-it-alls, they’re still better than almost every other comment section on the Internet.

javahippie09:07:10

I had to trick my brain and hide the comment section on HN via custom CSS. I like to browse the news, but I’m getting drawn into the comments all the time

reefersleep09:07:11

There’s so much gold there. I tend to read the comments before the articles. I think that mostly, the comments actually act as a filter/substitute, and I never read the article!

mccraigmccraig09:07:49

for me: fb: non-work, family, friends and some interest groups (i post in some groups, but never public), twitter: news-source and random interesting stuff (i'm a pure lurker), slack: clojurians and some ex-colleagues groups and other interest slacks - post reasonably often, linkedin: i have an account, but i do not use it because i pretty much hate it because it's so spammy

mdallastella09:07:25

Linkedin is quite lame... Fb too. I lurk on HN, Reddit and Mastodon. A bit of Instagram too.

agigao10:07:24

Morning

🙌 1
❤️ 3
Adam Helins10:07:12

Woaw, where is this?!

robert-stuttaford13:07:09

man that is awesome

agigao13:07:05

Schiederweiher, Austria

agigao06:07:24

Had a short trip through the Alps last 4-5 days, and gave me the impression that people here, know how to take care of the nature. That lake is in Hinterstoder, where driving was prohibited for everyone but locals.

val_waeselynck12:07:37

Morning! National Day here in France.

val_waeselynck12:07:51

(mx/array
  (->> (+
         (* i 100)
         (* j 10)
         k)
       (for [k [1 2 3 4]]) (vec)
       (for [j [1 2 3]]) (vec)
       (for [i [1 2]])))

val_waeselynck12:07:08

Would you call this code dirty?

🚀 1
reefersleep12:07:44

I would call it hard to read 😮

1
reefersleep12:07:17

Why not write it out as one for?

val_waeselynck12:07:34

Because that wouldn't work!

reefersleep12:07:44

I can’t tell 😄 can’t decipher it

reefersleep12:07:47

(and haven’t run it)

val_waeselynck12:07:20

This returns a 3-dimensional structure, one single for would be a 1-dimensional seq

jcf12:07:16

@U06GS6P1N I think that code’s pretty hard to grok. The reversal of the for loops and the vec ops on the same line obfuscate what’s going on.

(for [i [1 2]]
  (vec
   (for [j [1 2 3]]
     (vec
      (for [k [1 2 3 4]]
        (+ k (* i 100) (* j 10)))))))
The flow there is easier for me to follow.

1
jcf12:07:52

I’m guessing you can’t just go with the plain data as some calculation is required?

[[[111 112 113 114] [121 122 123 124] [131 132 133 134]]
   [[211 212 213 214] [221 222 223 224] [231 232 233 234]]]

jcf13:07:12

(let [rs   [1 2]
      cs   [1 2 3]
      vs   [1 2 3 4]
      func (fn [r c v] (+ v (* r 100) (* c 10)))]
  (mapv (fn [r]
          (mapv (fn [c]
                  (mapv #(func r c %) vs))
                cs))
        rs))
Playing with some options, and I’ve come up with the above, but I’m not sure if that’s an improvement. :thinking_face:

jcf13:07:04

Avoiding the use of lazy sequences we’re immediately throwing away might have merits.

jcf13:07:13

I’m trying to separate out the generation of the structure from the generation of the values because those concerns seem orthogonal, and might enable code reuse. Maybe overthinking things however.

jcf13:07:28

What would really help is knowing why we’re writing this code in the first place! 😄

jcf13:07:58

If this were me writing code like that for work, I’d be thinking about comments to explain what we’re doing, and maybe wouldn’t stress on the cleanliness too much.

reefersleep13:07:59

I was considering something like what you wrote, @U06FTAZV3. It’s not pretty either way. Is nestedness ever? 😄

🙈 2
💯 1
val_waeselynck13:07:42

Definitely not production code, don't make too big a deal of it

🙂 1
mccraigmccraig14:07:44

i had to run it through macroexpand-1 to figure out what was going on

jcf14:07:48

I feel like there's an abstraction I'm missing for making the intent clearer. The opposite of Meander that declares the structure we’ll emit. :thinking_face:

mccraigmccraig14:07:43

i do find the macroexpanded output easier to grok:

(for
  [i [1 2]]
  (vec
    (for
      [j [1 2 3]]
      (vec (for [k [1 2 3 4]] (+ (* i 100) (* j 10) k))))))