home.social

Search

1000 results for “stupid”

  1. When will people realize that data-centers are NOT growth accelerators or permanent job providers. Instead they reduce the tax base (think subsidies and tax breaks), guzzle up scarce resources (think water and electricity) and drive up costs (think real estate gobbled up). Utah voter, tell our cowardly governor to grow a spine and stand up to tech-bros and the corrupt felon POTUS.

    sltrib.com/news/2026/05/17/mil

    #datacenters #Utah #UtahPolitics #GOP #stupidity

  2. 'Stupid' Trump working overtime to kill the GOP: analysis #AlterNet twp.ai/E5BxPi

  3. Ladies and gentlemen: the “I don’t need no stinking stairs stairs”
    #funny #ouch #fail #stupidity

  4. I was thinking about FORTRAN's arithmetic-if statement
    `if (expr) linenumber1, linenumber2, linenumber3`

    I think the closest you could get to that in a non-FORTRAN language still in use would be in C with GCC's labels-as-values extension:
    `goto *(result = (expr)) < 0 ? &&label1 : !result ? &&label2 : &&label3;`

    If the original FORTRAN code didn't go spaghetti (and if `expr` is an integer expression), then you could do it with a C switch-case statement (using GCC's or C2Y's case-ranges):
    ```
    switch (expr) {
    case INT_MIN ... -1:
    ...
    case 0:
    ...
    case 1 ... INT_MAX:
    ...
    }
    ```
    or Java's classic switch-case:
    `switch (Integer.signum(expression)) { // use cases -1, 0, 1`

    If there's no fallthrough, then you could use Java's "enhanced" switch-case or Python's match-case:
    ```
    match expr:
    case k if k < 0:
    ...
    case k if k == 0:
    ...
    case k if k > 0:
    ...
    ```

    godbolt.org/z/dx9dr6oKT

    My point? I don't think there is one.

  5. I was thinking about FORTRAN's arithmetic-if statement
    `if (expr) linenumber1, linenumber2, linenumber3`

    I think the closest you could get to that in a non-FORTRAN language still in use would be in C with GCC's labels-as-values extension:
    `goto *(result = (expr)) < 0 ? &&label1 : !result ? &&label2 : &&label3;`

    If the original FORTRAN code didn't go spaghetti (and if `expr` is an integer expression), then you could do it with a C switch-case statement (using GCC's or C2Y's case-ranges):
    ```
    switch (expr) {
    case INT_MIN ... -1:
    ...
    case 0:
    ...
    case 1 ... INT_MAX:
    ...
    }
    ```
    or Java's classic switch-case:
    `switch (Integer.signum(expr)) { // use cases -1, 0, 1`

    If there's no fallthrough, then you could use Java's "enhanced" switch-case or Python's match-case:
    ```
    match expr:
    case k if k < 0:
    ...
    case k if k == 0:
    ...
    case k if k > 0:
    ...
    ```

    godbolt.org/z/dx9dr6oKT

    My point? I don't think there is one.
    #StupidCompilerTricks

  6. Stupid #accessibility question: let's say you have a product card that contains among others, the old price (visually crossed out) and the new price with the discount applied. What's the best way of communicating to a screenreader user which is the price they'll pay?

    Thanks!

    #a11y

  7. Stupid #accessibility question: let's say you have a product card that contains among others, the old price (visually crossed out) and the new price with the discount applied. What's the best way of communicating to a screenreader user which is the price they'll pay?

    Thanks!

    #a11y

  8. Stupid #accessibility question: let's say you have a product card that contains among others, the old price (visually crossed out) and the new price with the discount applied. What's the best way of communicating to a screenreader user which is the price they'll pay?

    Thanks!

    #a11y

  9. Stupid #accessibility question: let's say you have a product card that contains among others, the old price (visually crossed out) and the new price with the discount applied. What's the best way of communicating to a screenreader user which is the price they'll pay?

    Thanks!

    #a11y

  10. Stupid #accessibility question: let's say you have a product card that contains among others, the old price (visually crossed out) and the new price with the discount applied. What's the best way of communicating to a screenreader user which is the price they'll pay?

    Thanks!

    #a11y