[–] 1 point 15 hours ago

I presume your idea is they want to prove he is an unstable pervert fooling around instead of a calculated strategy to exfiltrate secrets to China.

Or it's just China doing that. Maybe Jensen is not the chinese spy but the board members are? Once he is ousted they can claim to have fixed the problem and NVIDIA continues selling secrets because the real mole is somewhere in the board or adjacent to it.

  • source
  • parent
  • context
  • A database is a store for globals only if we don't care too much about introducing complexity.

    Globals often need to have the following properties:

    1. Need to persist for the duration of the program.
    2. Everybody needs the latest value out of the global variable.

    Now both of these things don't need to be explicitly a "global variable" in the programming sense. Logically speaking we just need code that implements the behaviour of the global variable well enough to satisfy our requirements.

    most DBs are most often an overkill for our requirements of a global variable.

    sqlite is a fantastic fit for this use-case if one wants some level of ACID properties.

    One can go with a redis cache or some other kind of disk caching KV store.

    Or simply just go with a global variable and measure how it does before doing all this crap.

  • source
  • [–] 17 points 2 weeks ago

    Not related to the PHP thing. It's e-mudhra incident. They were (yes, they voluntarily shutdown their business) a Certificate Authority (Who sell SSL certificates like Cloudflare or Let's Encrypt). They generated 8 security keys that were something like 4, 8, ... Which can be guessed easily. In effect when you go to your bank's website, how do you know the website is actually your bank and not some scammer pretending to be? Based on the SSL certificate. Usually to prove this, websites use a 384-digit number that cannot be guessed easily by anybody else. '4' is easy to guess and can be used by other people to pretend to be your bank.

  • source
  • parent
  • context
  • [–] 1 point 1 month ago* (last edited 1 month ago)

    the grand unifying architecture of the fronted is either wrapping a 40x inside a 200; or for everything.

    ^/s^

    Edit: But on a serious note, yes that's how I have always simplified webdev for myself. I have been reluctant to enter the js ecosystem only dipping my toes into react frontend as recently as two months ago.

    My goto backend is python + flask. Naturally I started with jinja templates for the frontend. I have now gravitated away from fully relying on templates into having a partially REST API with JSON payloads and asynchronous requests. This is nicely fits with the three layering transformation that this blog endorses and is optimal from a manageability perspective.

  • source
  • [–] 3 points 1 month ago*

    Modern society is built on destruction and cruelty. Doesn't mean I can advice somebody to give up living in society and sound smart.

    To suggest that "compromising on ideals for practicality" is the same as "roll-over and accept it" is dishonest and only done by people who want to win the argument by attrition so they get what they want.

  • source
  • parent
  • context
  • [–] 0 points 2 months ago

    Replying from my alt:

    I was trying to make a joke but seems it rubbed off the wrong way. Although I do think there's a philosophical discussion of complexity to be had here.

    The problem with thinking "We have now simplified xyz software" is software developers have this bad habit of often assuming that the world updates to the latest and greatest version of software the moment they deploy it and they erase any semblence of past versions, shortcomings, or even workarounds that others may have deployed and trained their muscle memories on.

    Complexity actually goes up the more versions of software that are released in the world.

    You now have neovim <= 0.12, <= 0.13, 0.13 to keep in your head if someone comes to you for advice on how to setup this cool editor on their distro and they may or may not be able to upgrade to the latest version.

  • source
  • parent
  • context
  • [–] 9 points 2 months ago

    It's not just "woke". DHH actively longs for the London of old with less brown people. Which is a bit tone deaf when you don't understand that white people meddling in the middle east and africa are reasons why said brown people came as refugees on boats to Europe.

    Allowing only raw resources to flow from these regions but putting up a wall for people is un-just.

  • source
  • parent
  • context
  • [–] 2 points 2 months ago

    no complexity

    to be fair i am often scared by the direction CSS is going.. it was supposed to be just styling and then it added states like hover and hidden to cover html semantics.. but then that lead to state management and before you know it we have a Turing complete language with variables and interactio with HTML.

    Sure nobody HAS to use all of that but sometimes I feel like having all of that seems overkill.

    But then who am I to complain.. I do my frontend with Jinja2 and flask so pure CSS animation is tame in comparison.

  • source
  • parent
  • context
  • [–] 2 points 2 months ago (2 children)

    as someone who types out their own html and css.. the struggle with setting up hugo, fighting against it's directory layout format and a lot of magic invocations that the docs refuse to explain within 100 lines of "get started" title has simply made me appreciate the w3c group and the joy it is to writing my own html and css and how readable it is. copying it to the server as the CI/CD pipeline is an added bonus.

  • source
  • view more: next ›