• 4 Posts
  • 26 Comments
Joined 1 year ago
cake
Cake day: July 22nd, 2023

help-circle

  • According to tab autocomplete…

    $ git
    zsh: do you wish to see all 141 possibilities (141 lines)?
    

    But what about the sub options?

    $ git clone https://github.com/git/git
    $ cd git/builtin
    # looking through source, options seem to be declared by OPT
    # except for if statements, OPT_END, bug checks, etc.
    $ grep -R OPT_ | grep --invert-match --count -E \
    "OPT_END|BUG_ON_OPT|if |PARSE_OPT|;$|struct|#define"
    1517
    

    Maybe 1500 or so?

    edit: Indeed, maybe this number is too low. git show has a huge amount of possibilities on its own, though some may be duplicates and rewords of others.

    $ git show --
    zsh: do you wish to see all 489 possibilities (163 lines)?
    $ man git-show | col -b | grep -E "^       -" --count
    98
    

    An attempt at naively parsing the manpages gives a larger number.

    $ man $(find /usr/share/man -name "git*") \
    | col -b | grep -E "^       -" -c 
    1849
    

    Numbers all over the place. I dunno.


  • Huh, TIL.

    To be fair, git switch was also derived from the features of git checkout in >2.23, but like git restore, the manual page warns that behavior may change, and neither are in my muscle memory (lmao).

    I’ll probably keep using checkout since it takes less kb in my head. Besides, we still have to use checkout for checking out a previous commit, even if I learn the more ergonomically appropriate switch and restore. No deprecation here so…

    edit: maybe I got that java 8 mindset

    edit 2: Correction – git switch --detach checks out previous commits. Git checkout may only be there for old scripts’ sake, since all of its features have been split off into those two new functions… so there’s nothing really keeping me from switch.


  • It probably is, but I think their main point is the protest against the age-old delineation into “GUI vs CLI” camps. I’m not saying that you’re elitist, even if your statement might be interpreted as such (it’s hard to communicate tone online but the quotations around “their workflow” could appear mocking), but regarding the structure of your statement, I had a “Windows users are all button-presser noobs” phase and would’ve typed something similar about the Git CLI if time was decently rewound (sans the kindness of a “use what you like” statement). They could be interpreting your statement as a propagation of the anti-GUI stereotyping.

    Evidently they prefer GUI but can effectively use the CLI – no one disagrees that the CLI is more functional.


  • You prevent them from waking up earlier, huh? Youngsters definitely have infinite energy at the odder times. I sure did my fair share of waking up early to increase the fraction of the day I gamed for.

    This is a pretty convincing stance in favor of timers, actually. The idea of transferring video-watching from the iPad to the television is a friendly way to prevent an unchecked iPad-kid situation. My opinion shifted a little. :P

    Do you have timers on the iPad for any mobile games, or just YouTube?


  • Your stance on the age-inappropriate reminds me of what @southsamurai commented! I’ve definitely seen a lot of “Don’t protect your child too hard by concealing the inappropriate from them” lately. I wonder how many modern parents are shifting to that ideal.

    “Kids respond well to being treated seriously.” (from Vox, “Why safe playgrounds aren’t great for kids”, 3:17)

    You mention that there are some cases where parental controls would help, but you also mentioned that, (1) regarding inapproriacy, you shouldn’t baby children and (2) regarding screen time, BananaKing’s take is the best route. Doesn’t that cover both aspects of where parental controls would be used? What cases would you say parental controls would help with?


  • Someone downvoted but I want to hear your differing stance so I upvoted. (Come on fellow lemmings ` . ` let’s melting-pot a little!)

    Anyway – your belief is interesting, though I feel like I might disagree! Seems similar to @Contramuffin’s upbringing, but more extreme.

    How would you train them beforehand? Or would you just drop them into the archetypal sink-or-swim? Don’t you think the kid would feel lonely, say, if they stumbled on a jumpscare video and got the heebie-jeebies but you didn’t help? Everyone makes mistakes. And outside of scarring – what if your kid turns into one of those YouTube Kids jockeys?

    Is your hypothetical “Tough shit, deal with it and get stronger” approach similar to how you were raised?


  • Click to view diffs is super ergonomic; on the other hand, I actually have a story about the Git CLI trumping the GUI (spoiler: reflog).

    In high school we had gotten the funding to build a robot, and one of the adults in charge – guy was brilliant – was using GitHub Desktop to conduct a feature merge with the student who served as team lead. The thing was, he was used to older codebases, so all of his experience was with CVS instead of Git – so when the two slightly messed up the git merge, they discussed recloning everything instead of wasting time plumbing the error (relevant xkcd).

    That was one of the earliest times I had the cajones to walk up to a superior and say “No, you’re doing this totally wrong. You don’t have to do that.”

    He looked at me and nodded. “What would you do instead?”

    “Reflog.”

    “Reflog? I’ve never heard of it before. Can you show us?”

    I hopped onto the laptop and clicked around GitHub Desktop, but couldn’t manage to find any buttons related to reflog… so I went straight to cmd.exe instead.

    git reflog
    git reset --hard "HEAD@{7}"
    

    “Done. We can continue rebasing.”

    And after that, the advisor complimented me for using the command line tool!

    “Lots of GUI apps are just limited frontends to the real meat and potatoes, the command line. Nice job!”

    I felt like a wizard! And so I became the team’s Git guy.

    edit: pruned story




  • Someone downvoted you but I’d like to hear differing opinions, so I upvoted.

    By teaching the child how to circumvent these measures, what do you mean by that? Do you teach them to break your router rules? And when would you do that – when they appear mature enough to you? Of course, there’s the chance that they don’t like tech.

    Imaginarily, my kid and I could have some arms-race fun, but I don’t know how realistic that is.


  • Hah! Faraday Cage, nice. Location spoofs too!

    Interestingly, the route my mother took was, when I went off to college, she asked me if she could track me. We discussed privacy (who has my location?) and security (Is the protection endeavor proportionate to the threat chance?), and I demonstrated a basic location spoof (I am in control of my data).

    In the end, we agreed to allow some monitoring.

    That’s different of course – it’s a rare (I think) circumstance and consent, and isn’t quite parental control, as both parties had equal grounds to form said consent.

    I wonder if such a conversation could happen among younger children. 12 to 13 y/os maybe? Depends of course.









  • Oh I love the “walk me through what I’m about to do” concept. Dry runs should be more common – especially in shell scripts…

    The world would be a better place if every install.sh had a --help, some nice printf’s saying “Moving this here” / “Overwrite? [Y/N]”, and perhaps even a shoehorned-in set -x.

    Hope your r/w wasn’t eaten up by the subfolder incident (that I presume happened) :P


  • I think I disagree with a lot of the comments here. The “trying to sound smart” feeling only really occurs when there’s a mismatch in decorum – someone is trying to appear Higher and More Logical – but that can happen with any word, especially adverbs.

    Technically, your argument is fallacious.

    “Technically” is a useless crutch word (techy!), and “fallacious” is hella overused outside of formal logic stuff, so here it’s a mismatch in decorum. (What’s the fallacy? Does the other just… disagree with you, or are you using a converse error like A implies B, therefore B implies A?)

    Well, you don’t always have to do that, per se, but you can irregardless.

    A lot of crutch words are just innocent habits, too. masterspace@lemmy.ca mentioned something like that… though there are always people who up their jargon levels for no reason other than To Be More L33t. and_screw_irregardless

    On the other hand, some words commented here are needed. For example, if a reviewer calls Grossman’s The Magicians “erudite”, it fits perfectly – the book

    Tap for spoiler

    uses a metaphor for an archetypal Harvard. In one word we sum up the cloistered, elite, difficult, rich, status-chasing-ness combined with sophistication the metaphor entails.

    Continuing on that feeling of summed-up-in-one-word-ness – what alternatives do we really have for “whataboutism” or the “algorithm” or “milquetoast”? Those words hit hard, they sum things up.

    The algorithm is an alt-right pipeline, of course he’ll have that phase.

    Great, another video on the most milquetoast youtuber drama I’ve ever heard.

    Those words are concise, they roll off the tongue and evoke feeling! Don’t shorten words just to sound more colloquial when you have a choice that really fits! And likewise, equally – don’t be grandiloquent just for the sake of it.

    Or else you’ll face floccinaucinihilipilification :3