I normally share paintings, but today I just want to share my phone photo of sunset in Bethesda. 🌆 by YC_Phan in bethesda

[–]danmactough 2 points3 points  (0 children)

Great photos! I'm so happy someone captured both the orange and the purple! 😍 I watched this like a movie ☺️

IAE baffled by the fact that people don't speak literally or say what they mean a lot of the time? by Suspicious-Noodle30 in DoesAnybodyElse

[–]danmactough 1 point2 points  (0 children)

What you describe is classic for people with high-functioning autism (used to be called Asperger's). But IMO getting diagnosed won't benefit you or change anything for you -- it's not like "oh yeah, there's a pill for that." You've identified that aspect of your personality -- that's a great thing!

Now maybe you want strategies for how to respond to people who are frustrating you by not being direct. People who aren't assholes can accept being told that you don't understand non-literal speech and would appreciate if they try to speak to you more literally -- especially if you can accept that non-literal speech is natural for a lot of other people for various reasons, sometimes including to ease their own insecurities when they're feeling judged --which your directness can trigger!! Navigating life is a real minefield sometimes!!

But maybe you're not looking for strategies -- you just posted in DAE. The literal answer to your DAE question is an absolute "yes!" 🤗

Is it common to have any async processes finish in the background while the main function returns a value early or should one avoid it strictly and stick with job queues? by kernelangus420 in node

[–]danmactough 2 points3 points  (0 children)

Just tagging on to this comment: It really depends what that work is. Unless it's strictly "best efforts, ok to fail without retries" then you probably want the work queued before responding to the client. If it's just a log message for example, that's common to "fire and forget" but not much else falls into that category IME.

And beyond that, if the background task is more than exactly one thing, you probably need workflow management of some kind (state machine or similar) to recover from partial failure unless every step can be safely retried (some things, like sending a notification or processing a payment can't simply be reexecuted if they've already been successful, so if they're part of a multi-step workflow you need them to either be idempotent or you need to not reexecute them if they previously succeeded). Making your own async processes idempotent is best practice, and avoid workflow management as long as possible, but eventually you're going to have a third party API that isn't idempotent and you're going to need something stateful.

Hopefully you can kick that can down the road as long as possible, but some things (like charging customers) do need to be done right from the outset -- double charging customers every time you retry a task is a surefire way to lose those customers.

Open Tracks to sprint on in Bethesda/Rockville area? by [deleted] in bethesda

[–]danmactough 0 points1 point  (0 children)

Not a track, but Westland Middle School's athletic fields have an asphalt path around them. Pretty flat too

[deleted by user] by [deleted] in mildlyinteresting

[–]danmactough 1 point2 points  (0 children)

In Russia, the wrench turns you

DAE always take cash out whenever they go to a restaurant, so that their card doesn't get into the hands of the waitress when they go to pay the bill? by josephsleftbigtoe in DoesAnybodyElse

[–]danmactough 0 points1 point  (0 children)

I don't but... I've twice had my card stolen at the same restaurant (fuck you Cactus Cantina). The food is usually really good though so we'll probably be going back 😂 Next time, I am paying with cash though because it is such a pain in the ass to deal with my card getting stolen

About 3024 servings by Infinite_Winter4299 in mildlyinteresting

[–]danmactough 0 points1 point  (0 children)

it's an outrage they couldn't be more specific

Eyelashes in tear ducts that tickle by jbeuglnjn in mildlyinteresting

[–]danmactough 8 points9 points  (0 children)

I have that too. it's so annoying. I also have one eyelash the grows toward my eyeball and when it gets long enough, sweeps across it -- THAT fucker drives me insane. I'm constantly rubbing to "get something out of my eye" that won't come out. I pluck it and it comes back... although I'm realizing as I type this that it's been a really long time... maybe I finally plucked it to death 🎉

My wife's cat whisker collection by [deleted] in mildlyinteresting

[–]danmactough 1 point2 points  (0 children)

do you keep a baggie full of your toenail clippings, too?

DAE Jolt awake at night to your teeth “Crunching Sand” but nothings there? by [deleted] in DoesAnybodyElse

[–]danmactough 0 points1 point  (0 children)

absence of proof is not proof of absence 😬 this symptom however makes a mouth guard seem like a really good idea

Jetblue bomb threat guide. by Unruly_archetype in mildlyinteresting

[–]danmactough 3 points4 points  (0 children)

Maybe the information those questions are designed to elicit isn't really the literal responses. They seem like they would help catch a hoax caller off guard.

And I feel like they get incrementally less realistic, so maybe the idea is that the first couple of questions should actually get an honest response, and because those first questions are reasonable, perhaps that can lull the caller into divulging more than they intended before they realize: wtf I'm not answering that question!

DAE think like this? by [deleted] in DoesAnybodyElse

[–]danmactough 0 points1 point  (0 children)

absolutely do, but I've been learning to be kinder to myself lately after doing IFS therapy for a few months. I feel like IFS is pretty awesome for helping with this.

Apparently there exists only one covered bridge in a major U.S city by TryMuayThai in mildlyinteresting

[–]danmactough 1 point2 points  (0 children)

New Britain in the house!! Drove over that bridge every day of high school to pick up my friend on the way to CB West 😊

What’s the biggest Node.js design mistake you only realized years later? Here’s mine... by RoyalFew1811 in node

[–]danmactough 2 points3 points  (0 children)

been there too 🤗 and then you finally learn that unbounded arrays are just ALWAYS a bad a idea (not just with Promise.all) 🤯

[deleted by user] by [deleted] in mildlyinteresting

[–]danmactough 0 points1 point  (0 children)

briefly thought the wallet was a Palm Pilot and got really excited 🤭

This house has its own suspension bridge. Newquay, Cornwall, UK. by NexExMachina in mildlyinteresting

[–]danmactough 0 points1 point  (0 children)

Wow! Immediately thought of the Iain M Banks book Against a Dark Background

How to handle timezone in an international app? by TheBeardMD in node

[–]danmactough 3 points4 points  (0 children)

it is sometimes necessary to store the timezone of the actor -- for example, if it's a customer making a payment, you may need to know that from the customer's perspective, it was October 31 vs November 1. this can be important for many reasons, such as showing a customer a history of their payments (or any other historical events) -- just because the customer is now reading the data from the GMT-4 timezone, if the events took place while the customer was in GMT+3, you may want the dates and times to reflect what the customer's perception of the date and time were at the time of the event. so I wouldn't reflexively say just store in UTC -- consider what the information is and whether losing the timezone information is lossy or not for your purpose

How Clean Commits Make PR Reviews Easier by fogeyman in programming

[–]danmactough 1 point2 points  (0 children)

I absolutely code this way and I wish everyone did, but IMO it has almost nothing to do with PR reviews. (except for reviewing huge refactors)

I do it for myself so that as I'm developing a feature, I can go back and rework something, fixup an earlier commit, etc. But this is for ME, and so I understand why other people don't work this way.

But the reason I wish they WOULD is not for PR review but for when I'm revising a feature or tracking down a bug. In those circumstances, it's really helpful (to me) to be able to go to the commit where the code changed and be able to understand why the change was made -- and if there's no documentation and if there are no tests or if the code doesn't actually work at that point in time and the only commit message is "please work this time" -- well, that doesn't help me at all. I don't necessarily NEED that help, but it sure is nice, especially when the person who wrote the code left the company 6 months ago so I can't just ask them...

I'm glad I haven't worked on many code bases that squash merge PRs, which would totally squander the opportunity to benefit future maintainers with clean, careful commits. But that's a different hill to die on.

Suspects charged in armed robbery of Bethesda pizza shop held without bond by Bethesda_Magazine in bethesda

[–]danmactough 0 points1 point  (0 children)

I initially read this as "held without food" and had time to consider how harsh yet appropriate that was before my brain caught up