Fork me on GitHub
#off-topic
<
2021-01-15
>
Harley Waagmeester00:01:46

Thank you for contacting the White House. We are carefully reviewing your message.

Harley Waagmeester00:01:15

What did the rest of you do today ?

Harley Waagmeester00:01:03

I am a great American.

Stuart01:01:18

Well, today I was incredibly tired, and since I work from home now I decided to take an afternoon nap. I was working till about 1:30am the other morning so I thought I can take an hour to sleep without feeling guilty. 10/10 experience. I would definitely nap in the afternoon again. Even if we ever go back to working in actual offices, being allowed to have a kip in the break room should definitely be a thing.

andy.fingerhut02:01:36

Some work places allow that sort of thing. I've done it.

Harley Waagmeester03:01:13

fact: bears can run 35 million miles per hour

vemv12:01:14

naps are gold. sometimes even a 5m one can reset my brain clearing it of accumulated fatigue :)

3
👍 3
jcburley20:01:09

I think they (naps) also give short-term memory an opportunity to persist to long-term memory. I’ve recently used some “strategically” by studying a topic just as I’m getting sleepy and then taking a nap. Got me through a test I took a couple of months ago (got a 92% on it, which was better than I expected and better than I’d done taking any of the sample tests). Not sure to what extent the naps really helped though…. I do usually practice piano late at night, not long before going to bed, and sometimes find myself not only visualizing doing it as I fall asleep or in dreams, but increasingly seeing the actual (and correct) notes on the page, where my fingers are supposed to be, etc.

🙂 3
Ben Sless20:01:15

sadly they just make me cranky =\

vemv20:01:03

what you say resonates with the concept of "background mind" that rich explains in his Hammock talk

borkdude12:01:04

I've never been good at napping. I sleep maybe 10 minutes in total during day time over an entire year.

borkdude12:01:53

day time being the time after wake up and before going to bed at night

vemv12:01:41

that's quite few 9's availability

dgb2313:01:35

I’ve become a “TODO: maybe refactor it this way…” programmer… I have a tendency to overthink things, this really helps to just keep going, but my code is getting littered with these comments.

Mno13:01:05

I have that tendency as well and the best way I found to solve it was, with as many flaws as it has, agile-ish tickets with deadlines. Since it lets me adjust how much time I can put into things. Generally I’ll tend to go for a “make it once then make it better” approach.

👍 3
manutter5113:01:29

TODO: go thru code and clean out all the TODOs I'm never gonna do

😂 18
Timur Latypoff15:01:40

Commit date in git blame: 2015-02-11 03:44:10

seancorfield17:01:22

I like that VS Code's Jira integration pops up a suggestion to create an issue in Jira any time you write ;; TODO: ... 🙂

blak3mill3r00:01:57

EN-715812: Eliminate all the old Jira tasks which we're never going to do

seancorfield00:01:14

Heh, I regularly prune our backlog and hassle the product manager about tickets that look like we'll never get to them. I don't like to see more than 100 tickets in the backlog.

Mno13:01:18

I can adjust my problem solving strategy to the alotted time. I even use trello for solo projects for this very reason.

dgb2313:01:23

Yeah, I/we often have a “discuss TODOs” and then a “clean up TODOs” task

Mno13:01:23

Todos are just tickets that haven’t been made yet 😛

Stuart15:01:04

I do this too for work stuff, but that's because at work we are pushed to work like that. If it comes down to coding a solution or thinking about a better solution, we've basically to always choose code something. No thinking on company time!

😞 3
👍 3
jcburley20:01:44

Weeks of coding can save hours of planning!!

😆 12
Chase16:01:54

Any of you folks on Slack today and seeing all the super helpful people that you forgot to call out in that awesome question at the end of the survey? Preemptive apologies @borkdude, etc.! I am really glad they added that though. Such a great community

Alex Miller (Clojure team)16:01:04

you can always appreciate people in person too! :)

bronsa16:01:00

back in 2019 at least

😖 3
Alex Miller (Clojure team)16:01:14

well, virtually in person :)

jumar17:01:48

Do you use Google Tag Manager at work? What’s your take on its potential security and performance implications? Do you have a particular process in place for updating tags?

vemv18:01:24

I've refrained from it in a couple jobs, since marketing people can always break UX or even global javascript execution, with the widget du jour :) Processes I've been involved in boiled down to "devs are in control of html" so any request would be inherently discussed/reviewed (assuming a typical PR workflow)

👍 3
jumar04:01:50

How did your marketing people handle it? They say it’s really crucial for them (in our company)

vemv14:01:50

Luckily those jobs of mine revolved around marketing, seo, etc so it was easy to have a relationship of mutual trust. I think I also promised that any widget request would be processesed with priority

vemv14:01:20

> They say it’s really crucial for them (in our company) Yeah these waters can be difficult to navigate :) IME sales/mkt people always make these exaggerated claims to devs, in hopes of exploiting our tendency to take things very literally (another example being deadlines) In the end what they want is a result, if you can offer sth equivalent to GTM you might succeed

amarnah19:01:00

[Posting this here since its not Clojure related] Hello guys, At work we use a Redis connection pool wrapper that we implemented, that has a fixed pool size. The downside of that is that whenever the class is initiated, all connections to Redis are opened even if nothing is using them. We haven't been impacted negatively by that, but I was thinking that as an exercise I wanna add support for dynamic pool size. However I have no idea where to start. I wanna follow Java's thread architecture and I am familiar with Rails' implementation of https://github.com/rails/rails/blob/914caca2d31bd753f47f9168f2a375921d9e91cc/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb (which has a dynamic pool size configuration). Can anyone recommend any readings/resources on that? Anyone familiar with a simpler implementation of a dynamic sized connection pool in Ruby?

cmowforth19:01:40

Previous place I worked rolled a redis-based connection pool based on ConnectionPool- IIRC it was basically copied & pasted from a high-ranking SO answer or blog post. I did some profiling on a couple of rails apps and with MRI, redis connection efficiency was so far off being the limiting perf factor I never really gave it much more attention

cmowforth19:01:23

just write it in clojure 😉

amarnah19:01:00

Hahaha we actually use carmine as our redis pool in Clojure, and it does support configurations like max pool size, number of idle connections and so on. I wanted to do it in Ruby because I thought it doesn't exist and it may help other people 😅

cmowforth01:01:57

You're not the first person to hit this prob in Ruby, I don't have examples on-hand but redis connection-pooling is a well trodden path with RoR and puma

cmowforth01:01:38

Mainly because Rails' throughput is so slow w/ MRI that Redis is heavily relied on as a crutch

sova-soars-the-sora20:01:44

Are there languages other than javascript that target the web browser?

paul.legato20:01:34

Yes, many languages (C/C++/Rust/Python/Ruby/etc.) can now compile to WebAssembly, a portable binary format / assembly language designed to be embedded into web browsers: https://en.wikipedia.org/wiki/WebAssembly WASM has limited but growing real world use. Many other languages (including ClojureScript) just cross-compile to JavaScript.

sova-soars-the-sora21:01:43

Web Assembly.... hmmmmmmmmmmmmmm

sova-soars-the-sora20:01:53

Am i taking crazy pills?

phronmophobic20:01:14

do html and css count? what do you mean by target?

manutter5120:01:55

Elm, coffeescript, and, um, Flash...

manutter5120:01:00

I've heard something about webasm but I'm not sure what that is.

jcburley20:01:09

I think they (naps) also give short-term memory an opportunity to persist to long-term memory. I’ve recently used some “strategically” by studying a topic just as I’m getting sleepy and then taking a nap. Got me through a test I took a couple of months ago (got a 92% on it, which was better than I expected and better than I’d done taking any of the sample tests). Not sure to what extent the naps really helped though…. I do usually practice piano late at night, not long before going to bed, and sometimes find myself not only visualizing doing it as I fall asleep or in dreams, but increasingly seeing the actual (and correct) notes on the page, where my fingers are supposed to be, etc.

🙂 3
paul.legato20:01:34

Yes, many languages (C/C++/Rust/Python/Ruby/etc.) can now compile to WebAssembly, a portable binary format / assembly language designed to be embedded into web browsers: https://en.wikipedia.org/wiki/WebAssembly WASM has limited but growing real world use. Many other languages (including ClojureScript) just cross-compile to JavaScript.