• 2 Posts
  • 412 Comments
Joined 1 year ago
cake
Cake day: January 3rd, 2024

help-circle

  • Mastodon doesn’t by design, so they’re gonna have a much, much harder time there.

    In theory, yes. But what early switching folks are reporting is that the total impressions are much lower on Mastodon, but the total engagement is much higher, for the same effort.

    Which is confusing unless we factor in what we know about Twitter farming bot account on purpose to create a false appearance of success.

    Of course, there’s still the matter of Twitter genuinely has orders of magnitude more users. So as an either/or proposition, no way does it, yet, make sense to ditch Twitter for Mastodon.

    But for the value-to-reach ratio, with the same effort applied to both, anyway, Mastodon is actually already a better value than Twitter.

    All that to say, yeah, Twitter is better, purely due to the user base, and Mastodon’s algorithm actually treats creators better. Which we kind of already knew, as it was created by people fed up with Twitters abusive algorithms.








  • Fair enough.

    Here’s what I remember: invoking SQL containing inserts from bash has resulted in lost data, when fairly unsurprising database things happened, since bash didn’t really expect to be in charge of logging the details of the attempted change. For the error, it wasn’t something surprising - maybe it was “max connections reached”, stuff that will just happen sometimes.

    The data loss was probably solveable in bash, but the scripter didn’t think to (and probably would have needed more effort in a full development tool).



  • but how do people have the patience to deal with all of that in the beginning?

    Whenever I was frustrated with a stupid undecipherable error message, I would just tweak my vim config a bit.

    Within a few minutes, my rage at the error would be completely replaced with rage toward vimscript.

    Then I would revert my vim config change, and return to the undecipherable error message with a fresh perspective. mainly relief that at least it’s not vimscript.

    Joking aside, I really did learn vim mostly during coffee breaks or while waiting on some long running build process.






  • That’s a great point.

    I post long enough responses already, so I didn’t want to get into resilience planning, but your example is a great highlight that there’s rarely hard and fast rules about what will work.

    There certainly are use cases for bash calling database code that make sense.

    I don’t actually worry much when it’s something where the first response to any issue is to run it again in 15 minutes.

    It’s cases where we might need to do forensic analysis that bash plus SQL has caused me headaches.



  • What do you suppose bash could do here?

    • For the love of all that is holy, it’s not 1970, we don’t need to continue to tolerate “if … fi”
    • Really everything about how bash handles logic bridging multiple lines of a file. (loops, error handling, etc)

    I’m sure there’s space for a clear alternative to arise though, as far as scripting languages go.

    The first great alternative/attempt does exist, in PowerShell. (Honorable mention to Zsh, but I find it has most of the same issues as bash without gaining the killer features of pwsh.)

    But I’m a cranky old person so I despise (and deeply appreciate!) PowerShell for a completely different set of reasons.

    At the moment I use whichever gets the job done, but I would love to stop switching quite so often.

    I hold more hope that PowerShell will grow to bridge the gap than that a fork of bash will. The big thing PowerShell lacks is bash’s extra decades of debugging and refinement.


  • it’s (bash) good enough for small tasks that you don’t expect to grow in complexity.

    I don’t think you’ll get a lot of disagreement on that, here. As mention elsewhere, my team prefers bash for simple use cases (and as their bash-hating boss, I support and agree with how and when they use bash.)

    But a bunch of us draw the line at database access.

    Any database is going to throw a lot of weird shit at the bash script.

    So, to me, a bash script has grown to unacceptable complexity on the first day that it accesses a database.


  • That said, I don’t necessarily agree that bash is bad from a maintainability standpoint.

    My team uses bash all the time, but we agree (internally as a team) that bash is bad from a maintainability perspective.

    As with any tool we use, some of us are experts, and some are not. But the non-experts need tools that behave themselves on days when experts are out of office.

    We find that bash does very well when each entire script has no need for branching logic, security controls, or error recovery.

    So we use substantial amounts of bash in things like CI/CD pipelines.