• 1 Post
  • 36 Comments
Joined 1 year ago
cake
Cake day: June 19th, 2023

help-circle



  • According to a different source shared by @giriinthejungle, the attorney who has taken the case is suing the entire operating unit and expects whoever instructed the girl to drill the hole to be liable for assault. That is also the estimation of the chief regional patient attorney, provided the incident happened as reported by the media.

    The neurosurgeon as well as one other doctor have already been let go by the hospital.
    Police have not yet charged anyone, their investigation is still ongoing as of the time of the article (2024-08-26).




  • wols@lemm.eetoProgrammer Humor@lemmy.mlGot no time to code
    link
    fedilink
    arrow-up
    1
    arrow-down
    1
    ·
    6 months ago

    Bonus: good tests can also serve as technical documentation.

    Though I have to disagree with the notion that documentation is as important or more so than code.
    Documentation is certainly near the top of the list and often undervalued. I’ve worked on a project where documentation was lacking and it was painful to say the least.
    Without documentation, changing or adding features can be a nightmare. Investigating bugs and offering support is also very difficult. But without code, you have nothing. No product, no users, no value.

    There are (inferior) substitutes for documentation: specialized team knowledge, general technical expertise. These alternative pools of knowledge can be leveraged to create and improve documentation incrementally.
    There’s no replacement for the actual functionality of your applications.


  • I don’t share the hate for flat design.
    It’s cleaner than the others, simpler and less distracting. Easier on the eyes, too. It takes itself seriously and does so successfully imo (nice try, aero). It feels professional in a way all the previous eras don’t - they seem almost child-like by comparison.

    Modern design cultivates recognizable interactions by following conventions and common design language instead of goofy icons and high contrast colors. To me, modern software interfaces look like tools; the further you go back in time, the more they look like toys.

    Old designs can be charming if executed well and in the right context. But I’m glad most things don’t look like they did 30 years ago.

    I’m guessing many people associate older designs with the era they belonged to and the internet culture at the time. Perhaps rosy memories of younger days. Contrasting that with the overbearing corporate atmosphere of today and a general sense of a lack of authenticity in digital spaces everywhere, it’s not unreasonable to see flat design as sterile and soulless. But to me it just looks sleek and efficient.
    I used to spend hours trying to customize UIs to my liking, nowadays pretty much everything just looks good out of the box.

    The one major gripe I have is with the tendency of modern designs to hide interactions behind deeply nested menu hopping. That one feels like an over-correction from the excessively cluttered menus of the past.
    That and the fact that there’s way too many “settings” sections and you can never figure out which one has the thing you’re looking for.

    P S. The picture did flat design dirty by putting it on white background - we’re living in the era of dark mode!





  • This works as a general guideline, but sometimes you aren’t able to write the code in a way that truly self-documents.
    If you come back to a function after a month and need half an hour to understand it, you should probably add some comments explaining what was done and why it was done that way (in addition to considering if you should perhaps rewrite it entirely).
    If your code is going to be used by third parties, you almost always need more documentation than the raw code.

    Yes documentation can become obsolete. So constrain its use to cases where it actually adds clarity and commit to keeping it up to date with the evolving code.



  • If their password was actually good (18+ random characters) it’s not feasible with current day technology to brute force, no matter how few PBKDF2 iterations were used.

    Obviously it’s still a big issue because in many cases people don’t use strong enough passwords (and apparently LastPass stored some of the information in plaintext) but a strong password is still good protection provided the encryption algorithm doesn’t have any known exploitable weaknesses.



  • There’s no need for something that complex.
    Someone with access to a chess engine watches the game and inputs the moves into the engine as they’re played. If there’s a critical move (only 1 or very few of the options are winning/don’t throw the game) they send a simple signal to let him know. That can be enough to give you an advantage at that level. If you really want, you could send a number between 1 and 6 to represent which piece the engine prefers to move, but it’s likely not necessary.

    That said, all the evidence he actually did anything like that is at best circumstantial (mostly statistical evidence supposedly showing how unlikely his performance was given his past performance and rating at the time, as well as known instances of past cheating by him - though the only confirmed ones were several years ago when he was still a kid and online rather than in person).


  • wols@lemm.eetoProgrammer Humor@lemmy.mlIn case you forgot.
    link
    fedilink
    arrow-up
    13
    arrow-down
    1
    ·
    1 year ago

    Extra steps that guarantee you don’t accidentally treat an integer as if it were a string or an array and get a runtime exception.
    With generics, the compiler can prove that the thing you’re passing to that function is actually something the function can use.

    Really what you’re doing if you’re honest, is doing the compiler’s work: hmm inside this function I access this field on this parameter. Can I pass an argument of such and such type here? Lemme check if it has that field. Forgot to check? Or were mistaken? Runtime error! If you’re lucky, you caught it before production.

    Not to mention that types communicate intent. It’s no fun trying to figure out how to use a library that has bad/missing documentation. But it’s a hell of a lot easier if you don’t need to guess what type of arguments its functions can handle.


  • wols@lemm.eetoMicroblog Memes@lemmy.worldYup
    link
    fedilink
    English
    arrow-up
    1
    arrow-down
    1
    ·
    1 year ago

    You’re missing the point.

    The “villain” in this situation is a system that allows a minority of people to attain huge amounts of wealth and power and incentivizes them to keep increasing both as much as possible without regards for others. It’s not the people that follow the incentives.
    Unfortunately one of the incentives when you’re part of the owning class is wanting to perpetuate the system: it’s working pretty well for you.

    Individual members of the owning class can be great people. But as the original comment stated: most people will usually put their own interests above yours. The problem isn’t that they do so, the problem is that their interests are in opposition to yours.

    The analysis isn’t (as you seem to think) at the level of “you’re part of the owning class, therefore you’re evil and we hate you”, but “there should be no owning class, its existence leads to needless conflict and suffering”.

    Let’s not get it twisted though: while the real villain is capitalism, it’s always one class that does all the stealing, and the lying, and the gaslighting, and the manipulating, and the cheating.
    Power corrupts.


  • wols@lemm.eetoMicroblog Memes@lemmy.worldYup
    link
    fedilink
    English
    arrow-up
    7
    ·
    1 year ago

    “They have all the guns” is a metaphor in the context of class warfare.

    I mean that they have the means to employ force (usually through police, but not exclusively) in their interest as well as having the entire power of the state behind them (disproportionate wealth means they have disproportionate political influence which means they can lobby for laws to be adjusted in their favor. Even when the law seems just, it is rarely applied in the same way to wealthy people in practice).

    Not to mention that they can and do buy influence over the media apparatus, controlling narratives and tricking the working class into acting against their own interests.

    Within the framework of class conflict, those are the “guns”.


  • wols@lemm.eetoMicroblog Memes@lemmy.worldYup
    link
    fedilink
    English
    arrow-up
    15
    arrow-down
    2
    ·
    1 year ago

    It’s almost like their class interests changed and class interests influence behavior.

    Almost like it’s proving their point. Capitalist critique is not about individual “bad” people but about a system with perverse and harmful incentives.

    (granting your claim for sake of argument - feel free to support it with data)


  • wols@lemm.eetoMicroblog Memes@lemmy.worldYup
    link
    fedilink
    English
    arrow-up
    9
    arrow-down
    2
    ·
    1 year ago

    That’s true. However.

    The owning class has interests directly opposed to the working class, which makes that “natural” trait toxic to the working class. In addition, the owning class has a lot more power.

    Your landlord wants to make as much money as possible for as long as possible. (fair enough right?) The problem is that for that to happen

    • demand needs to stay high or go higher which means that
    • supply needs to stay low which means that (at the level of class interests, not personal belief)
      Your landlord doesn’t want new affordable housing to be built in your area. They want you to never own a house, never have any cheaper rent options. They don’t want to have to keep renting to you at the price you are paying now.
      They don’t want to have to invest money in making your apartment/house safe or comfortable.

    The problem is not that people will put their own wellbeing above yours, it’s that their wellbeing is in conflict with yours. A conflict of interests between classes… class conflict… class warfare. And they have all the guns.
    It doesn’t have to be this way.