• 0 Posts
  • 1.44K Comments
Joined 3 years ago
cake
Cake day: June 21st, 2023

help-circle

  • TehPers@beehaw.orgtoProgramming@programming.devMultiline comments in POSIX sh
    link
    fedilink
    English
    arrow-up
    0
    arrow-down
    1
    ·
    edit-2
    22 hours ago

    Both HTML and CSS (when together) are turing complete, and JSX syntax only supports HTML comments in many places.

    JavaScript having single line comments isn’t really relevant. Multiline comments are in heavy use there, arguably moreso than single line comments.

    Edit: and I should add that “programming languages” is moving the goalpost. The person I responded to didn’t qualify their statement to programming languages.


  • Multiline comments are a bit of an anti-pattern at the best of times.

    If you’re making this as a general statement, it varies from language to language. For example, CSS (and arguably HTML and Markdown) only supports multiline comments, and multiline comments are often used for documentation (as with jsdoc and, though only comments in the same way that heredocs to /dev/null are, Python).

    But yeah, if you actually do this in Bash, wat.








  • For software not exempted, the California Digital Age Assurance Act takes effect on 1 January 2027 for requiring age collection at device setup time and age-bracket signals for applications.

    As a reminder, the law doesn’t require age verification, only attestation. It’s a really stupid law that accomplishes nothing for the services that now require age verification and nothing for the people opposed to it. It just makes some OSs (but apparently potentially no longer Android?) ask your age on account creation.

    I still have no clue how this will work for Windows server (and the cursed Mac servers), but honestly it’s on you for using that over a Linux server.









  • Imagine a system that runs as normally (either first past or a sensible voting system) unless >50% of eligible voters fail to vote or vote ‘none’ or something like that, and then a random citizen is put in power.

    This is actually interesting, but I’d change it a bit. Every voter who doesn’t vote is treated as a vote towards “none”, and candidates must defeat the “none” category as well. If “none” wins, then that means none of the candidates won, and you resolve it through some other means (like lottery).


  • On the one hand, you can’t really believe the US government these days. On the other, the same can be said about the Chinese government.

    You know what would solve this, though? Make the government actually exciting to work for. Get people excited to work there, and you’ll find some talented security people who can lock things down. Instead, all the good positions are offered by companies, and the government isn’t on anyone’s radar especially after Trump/Musk fucked around with it and fired everyone.

    For all the money spent pointlessly on military, you could hire the most talented people in the country to run government services and you wouldn’t even need to sacrifice anything in the military if you just allow them to shop around and buy from the companies that won’t bend them over and make them beg for it. Hell, you could do all that and still provide healthcare to the entire nation.