I take my shitposts very seriously.

  • 41 Posts
  • 2.82K Comments
Joined 3 years ago
cake
Cake day: June 24th, 2023

help-circle

  • rtxn@lemmy.worldMtolinuxmemes@lemmy.worldit's just the worst
    link
    fedilink
    arrow-up
    15
    ·
    edit-2
    9 hours ago

    That isn’t incorrect, but it’s not as important as people make it out to be. Linux isn’t certified as POSIX-conformant either.

    People are way too stuck on POSIX regarding Fish specifically, but in shell scripting, POSIX compliance boils down to “can it run a pure sh script”. Bash is compliant. Zsh is partially compliant and needs to set an option to emulate sh. Fish uses a different syntax and is not compliant; if that is a problem, don’t execute sh scripts in Fish.

    POSIX compliance for shell scripts was important in the 80s and 90s when the #! directive wasn’t as commonly implemented and every script might be executed by the user’s $SHELL instead. That is no longer the case as virtually every Unix-like system’s program loader supports #!.






  • rtxn@lemmy.world
    shield
    Mtolinuxmemes@lemmy.worldOG pic of bobby drop tables
    link
    fedilink
    arrow-up
    26
    arrow-down
    9
    ·
    edit-2
    3 days ago

    I locked the other thread because this is not a community for politics, nor for airing out your issues with certain people. Those topics are specifically not allowed, and you would know that if you had read the rules. I’ve previously allowed such discussions to go on, in the vain hope that everybody would behave like cultured humans, but eventually they all devolved into exchanges of insults and accusations.

    This does not mean that I’m supporting or protecting those individuals. I’m just trying my pathetic best to keep the community clean. If you have an opinion that you must absolutely share with the world, find a community that allows it.






  • rtxn@lemmy.worldto196@lemmy.blahaj.zoneOh yes
    link
    fedilink
    English
    arrow-up
    3
    ·
    14 days ago

    My examples won’t work because they’re in code blocks. Code blocks are meant to render their content verbatim, without parsing Markdown tags. This span uses multiple formatting tags. ~~**_This is the same in an inline code span._**~~

    ~~**_This is the same in a code block._**~~
    

    Like I said, spoiler tags are not a standard feature. Whether they work depends entirely on the renderer used by the client.


  • rtxn@lemmy.worldto196@lemmy.blahaj.zoneOh yes
    link
    fedilink
    English
    arrow-up
    6
    ·
    15 days ago

    You’ll have to put that spoiler in a new paragraph. Unfortunately spoiler tags are not a standard Markdown feature. There are no inline spoilers in the Lemmy UI (which is a stupid ass decision, what the fuck devs), and no spoilers whatsoever on Mastodon.

    This works:

    :::spoiler Spoiler Title
    spoiler content
    :::
    

    This does not:

    :::spoiler spoiler content :::
    





  • Add it to the list of reasons to hate Henry Ford. When he needed a new screw standard to replace slotted screws in his factories, he went to Robertson first, but he wasn’t willing to sell production rights to Ford. His second choice, Phillips, took the offer. Phillips and similar cruciform screw heads (Pozidriv and JIS, both of which are superior to Phillips) proliferated globally because of this, and it would take a massive shift in the industry today to fully transition to Robertson or Torx.



  • let you build faster like Python

    I have to write so much boilerplate code to make sure my objects are of the correct type and have the required attributes! Every time I write an extension for Blender that uses context access, I have to make sure that the context is correct, that the context has the proper accessor attributes (which may not be present in some contexts), that the active datablock is not None, that the active datablock’s data type (with respect to Blender, not Python) is correct, that the active datablock’s data is not None… either all that or let the exception fall through the stack and catch it at the last moment with a bare except and a generic error message.

    I used to think that static typing was an obstacle. Now I’m burning in the isinstance/hasattr/getattr/setattr hell.