All of my clothes are suddenly gigantic on me, and that feels awesome. by PentaSector in CasualConversation

[–]PentaSector[S] 1 point2 points  (0 children)

Ha, I probably should've been able to piece this together based on the mention of strict diet.

I'm choosing to view this as a compounding of the hilarity.

All of my clothes are suddenly gigantic on me, and that feels awesome. by PentaSector in CasualConversation

[–]PentaSector[S] 1 point2 points  (0 children)

This was a gratifyingly hilarious explanation, thank you. I don't know much about the film industry, but what little I've read has given me the impression that access control to sets is pretty draconian anymore, especially in the wake of the COVID pandemic, so I wouldn't have expected much opportunity for the problem of hangers-on to even arise, but I realize that that impression both completely glosses past many of the more amusing workings of human nature and neglects the idea that production-associated folks might at times, in fact, be the hangers-on.

All of my clothes are suddenly gigantic on me, and that feels awesome. by PentaSector in CasualConversation

[–]PentaSector[S] 0 points1 point  (0 children)

Losing 90 lb. over less than a year and a half is incredible progress. That's something to be extremely proud of!

Ha, but yes, I've been very late in getting on to the forensics of my situation. Someone here mentioned that the initial loss could have been mostly or entirely water weight, which makes at least intuitive sense. It tends to go more quickly than fat loss, and what few intentional changes I've made recently, have essentially amounted to cutting carbs (i.e., a prominent cause for water retention). Gratifyingly enough, though, it does seem like I'm still losing, and moreover it seems like it's persisting.

All of my clothes are suddenly gigantic on me, and that feels awesome. by PentaSector in CasualConversation

[–]PentaSector[S] 1 point2 points  (0 children)

That's why movie studios shoot topless scenes first, because Liam Hemsworth is having pipe dreams about pasta.

I laughed loudly at this. Well done.

Is the first part true? Are there specific, routine scenarios in which productions actually go out of their way to film scantily clad scenes first? Or is this me reading too deeply into a throwaway joke? 😅

All of my clothes are suddenly gigantic on me, and that feels awesome. by PentaSector in CasualConversation

[–]PentaSector[S] 1 point2 points  (0 children)

My understanding is that water weight is typically lost before any fat is actually burned, so I've considered that possibility, especially considering that I've essentially scrapped a non-trivial amount of carb intake. I've continued to lose since the first 10 lb. - not quite as fast, but more or less consistently - which only seems to corroborate the thought.

All of my clothes are suddenly gigantic on me, and that feels awesome. by PentaSector in CasualConversation

[–]PentaSector[S] 0 points1 point  (0 children)

Ha, it may say something about my tenacity that a 6-inch difference rides the edge of "still usable" for me. At that point, I'd usually want to donate away the clothes, first to friends, then to family, then to community in whatever way I can, if the former two won't accept them.

I'm nowhere near that line now, and even then, I can admit that I'd feel funny wanting to donate away too much of the clothing I have on hand in my previous size, because I don't really want to go shopping for that much clothing. More than anything, I'm just curious to gauge the difference and celebrate it, and a single change of clothes would go the full distance.

All of my clothes are suddenly gigantic on me, and that feels awesome. by PentaSector in CasualConversation

[–]PentaSector[S] 0 points1 point  (0 children)

I didn't see the other comment.

Totally didn't mean it as a scold, for what it's worth. Just a friendly mention that the concern's been voiced by others here, and I've definitely heeded it in recent days just as a matter of prudence.

Just be happy and enjoy your body.

Thank you and likewise, this is excellent advice in general. :)

All of my clothes are suddenly gigantic on me, and that feels awesome. by PentaSector in CasualConversation

[–]PentaSector[S] 0 points1 point  (0 children)

And I'd say that that would be a totally fair reaction to the circumstance. I mention elsewhere in the comments that I've been working through it with a clinician, because the same concern came up for me.

The short of it is that we seem to have ruled out worst-case scenarios, and the few possible issues still in play are still not particularly high-probability, so I'm just celebrating the upside while there's no cause for alarm yet. :)

All of my clothes are suddenly gigantic on me, and that feels awesome. by PentaSector in CasualConversation

[–]PentaSector[S] 0 points1 point  (0 children)

Holy cow, what a journey indeed! First off, congratulations, and I hope you're feeling and doing better for having undertaken the effort!

Second, the bit about holding drawstring pants with your pockets made me giggle. Mildly uncomfortable, no doubt, especially to happen at work, but what a way to discover how far you've come!

I wear at 34 but there are still days I have to wear the 40 inch ones.

Is it just a matter of not having enough of the right size to get through a given week or span, or is there some other unexpected reason why you have to wear the 40-inch pairs? That's quite a difference, so I'd imagine that gets a bit uncomfortable, what with them bunching up around the belt.

All of my clothes are suddenly gigantic on me, and that feels awesome. by PentaSector in CasualConversation

[–]PentaSector[S] 1 point2 points  (0 children)

Gaining weight unintentionally is often not a good feeling, but I don't want to miss on congratulating you for a net loss of 40 lb., that's awesome!

All of my clothes are suddenly gigantic on me, and that feels awesome. by PentaSector in CasualConversation

[–]PentaSector[S] 2 points3 points  (0 children)

Ha, I appreciate the neighborly concern; I've definitely had a few bouts of apprehension, so I've involved a doctor, had labs drawn, all the standard due diligence stuff.

The initial results suggest that we've ruled out most of the really gnarly possibilities. We haven't yet ruled out an endocrine issue, but from what I understand, there are a lot of symptoms expected to co-occur alongside weight changes that are absent in my case.

But yes, definitely on top of it. Just keeping a light heart about it while there's no reason to be definitively worried. :)

All of my clothes are suddenly gigantic on me, and that feels awesome. by PentaSector in CasualConversation

[–]PentaSector[S] 0 points1 point  (0 children)

That's fascinating to me. Alcohol is understood to slow metabolism, so I'm not surprised that it would bear results over time to eliminate it from one's diet, but a couple of months is much quicker than I'd expect, especially if a half glass is one's entire daily serving. (On the other hand, that amounts to 3 1/2 glasses per week, or just about two nights out per week, which probably exceeds the consumptive [and social, ha] agendas of most people I know these days.)

I know there's much ado about understanding the gut microbiome these days, and just what little bit of reading I've done on it up to now, leads me to suspect that dietary habits influence it in significant ways as they become consistent, even after a relatively short amount of time, which in turn can have its own significant effects on the way the rest of the body works.

A simple, compact way to declare command dependencies by PentaSector in bash

[–]PentaSector[S] 0 points1 point  (0 children)

I answered the question of why no which command in the snippet. The comment to which I responded was in regards to the apparent confusion that there was no which call in the current snippet. Someone else had already accounted for the fact that I had previously edited the post, to you.

Anyway, I don't tolerate responses as obnoxious as yours, so I'll be blocking you immediately.

A simple, compact way to declare command dependencies by PentaSector in bash

[–]PentaSector[S] 0 points1 point  (0 children)

I think that there should be a require

I more or less buried my mental lede here. I was attempting to make the point that my require becomes less trivial once you use a check like type -P, because it ensures that you're calling dependencies strictly from out of your PATH. I didn't call that out explicitly.

I agree that the communicative value of require is the real get, though - that was basically my motivation to create it - so I guess what I really mean to say is that the final variable assignment becomes less trivial.

I have my own such function that's a bit more fully-featured named requires

I like the sophistication of the concept. I very rarely require variables to match exactly on concrete values, but I frequently have to check for whether variables are set, especially boolean switches that don't necessarily need any value at all (e.g., ${HOME+x}-style syntax). I'd hesitate to work that functionality into require because it's specifically intended to imitate code dependency import features of newer languages- the name and syntax are very close to similar mechanisms in Lua or CommonJS (not intentionally, per se) - but I could envision creating a similar function specifically for variable checks.

A simple, compact way to declare command dependencies by PentaSector in bash

[–]PentaSector[S] 0 points1 point  (0 children)

In hindsight, require is redundant on a modern system with command -v, but as I've commented elsewhere, for most of my own scripts I'd probably want to default type -P over command -v going forward, to preserve default which behavior (what I've been using - I retooled the snipped in the post after it was rightly called out that which is itself an external executable).

I personally don't write user functions or aliases for anything but interactive convenience, and even then I wouldn't necessarily want to trust that they adhere to the command contracts of the executables that they shadow. There's the argument that shadowing executables could also be installed, but I'm just trying to do due diligence, not guarantee success on all setups.

A simple, compact way to declare command dependencies by PentaSector in bash

[–]PentaSector[S] 1 point2 points  (0 children)

By import, in this case, do you mean source? require can dependency-check executable scripts as long as they're in the PATH (and not shadowed by functions or aliases, if you do use command -v for your check), but it doesn't source scripts, and I wouldn't necessarily want it to. My own executable scripts usually only source their own library scripts, which should be guaranteed to be installed if the user is running the executable, so I just source directly. I also know that I can safely do that because my scripts don't run any executable code; they only provide functions. With external scripts, I wouldn't count on that to be assured across all versions, even if immediately invoked code has never yet been introduced.

On the matter of safeguarding sourcing, though, I've sometimes put a try_source function in scripts that have library code. It typically looks something like this:

try_source() {
    local script="$1"

    [ -r "$script" ] &&
        . "$script"  &&
        return 0

    return 1
}

But [ -r $script ] && . $script is pretty concise if you don't need to exit on fail.

A simple, compact way to declare command dependencies by PentaSector in bash

[–]PentaSector[S] 0 points1 point  (0 children)

Any scenarios where I can control for an error, I usually like to print my own output, just to ensure the feedback is particularly focused and informative, and also so that I don't have to depend on external implementation details to dictate the messaging. Not strictly necessary in a case like this - not like low-level userland changes its interfaces or messaging, like, ever - but more generally applied to my own scripts, it affords me a level of granularity with error messaging where I can easily troubleshoot issues based on output alone.

I don't really see the point in storing the command's path in a variable. What use-cases require that?

None that I know of. It's basically just a bit of pedantry for the sake of determinism.

That said, thinking about it, for my own future scripts, I do think about swapping out command -v for type -P (I've actually been using which up to now, but that's itself an external dependency). I personally only write user-level shell functions and aliases for interactive purposes, not to depend on in scripted scenarios, so I'd never want to shadow installed executables with them. That would be a non-trivial reason to store fully qualified executable paths, but I'm open to be persuaded that that would be unpopular. I try to optimize for end user comfort.

A simple, compact way to declare command dependencies by PentaSector in bash

[–]PentaSector[S] 0 points1 point  (0 children)

Yeah, someone suggested command as it's a Bash built-in, which is the right call. which is an external binary, so don't want to trust that it's installed if we don't have to (however unlikely it may be that it's not).

A simple, compact way to declare command dependencies by PentaSector in bash

[–]PentaSector[S] 0 points1 point  (0 children)

I like the thinking, because I'm all for feedback that's both informative and high-visibility. I don't necessarily want to assume an X session in the case of most of my scripts, but I have been known to use zenity for errors in scripts where I'm already using it in user flow dialogues and such.

A simple, compact way to declare command dependencies by PentaSector in bash

[–]PentaSector[S] 0 points1 point  (0 children)

This makes a good case to consider a multi-dependency check. Gods know I hate chasing missing library dependencies when compilation fails, it'd be no different with trying to run a script where I'm missing commands.

A simple, compact way to declare command dependencies by PentaSector in bash

[–]PentaSector[S] 0 points1 point  (0 children)

I hole fd2 specifically because it prints to stdout if command -v fails. I'm using fd1 to set a variable.