• 0 Posts
  • 241 Comments
Joined 1 year ago
cake
Cake day: June 23rd, 2023

help-circle




  • 520@kbin.socialtoProgrammer Humor@lemmy.mlcodeStyle
    link
    fedilink
    arrow-up
    1
    arrow-down
    2
    ·
    4 months ago

    So this looks like it’s based in Java code.

    A public class means that any bit of Java code, including that injected by an attacker, can see and mess with the contents of that class.

    A private class, in contrast, means that other bits of Java code are restricted to running the class’s predefined functions.

    In theory it is supposed to help with the security of the data. In practice if an attacker gets to this point, you’ve got much bigger issues.



  • The most manual way is what C does, which is requiring the programmer to check memory safety by themselves.😛

    The difference is, Rust will throw a tantrum if you do things in an unsafe way. C/C++ won’t even check. It’ll just chug along.

    Rust is really not that harder than Java or Python.

    As someone who’s done all three, the fuck it isn’t.

    If you are familiar with C/C++ best practices to any operational level, those things will translate over to Rust quite nicely. If not, that learning curve is going to be fucking ridiculous with all the new concepts you have to juggle that you just don’t with either Java or Python.






  • Do you think they’d be able to understand Shakespeare? Or a spell book from the same time as Shakespeare?

    The bigger question is, do they need to understand Shakespeare?

    Shakespeare is important in UK Muggle culture, not so much elsewhere, including the wizarding world which very much has their own cultural icons.

    They probably aren’t getting their spells from books that old either. The reason we don’t transpose Shakespeare to modern language is the loss of artistic intent in the process. Something that wouldn’t apply to purely factual books like a spell book.

    Besides, they are expected to learn Latin; that’s where their spells come from.



  • Imagine you get back after a long, hectic, infuriating day. You hear your car beep for fuel so you pull into a gas station.

    You get out and you go through the motions of filling up your car. It is such a usual procedure you don’t have to think any more. Which is good because you’re using that time to think of choice words to describe your asshole boss.

    You go into the station, pay and come back, still very much on autopilot while you think about your boss.

    Except there’s one motion you didn’t go through. And now it haunts your gas tank forever. Until you take it off.


  • Do you happen to know why he wouldn’t have executed the options before this suit?

    It’s Elon. There are a wealth of possible reasons, ranging from actually reasonable to ‘it sounded better in my head’. Elon can be kinda erratic in his judgement sometimes.

    One possibility is that he may have been attempting his usual market manipulation shenanigans; he is quite blatant about using his cult of personality for this. Wherever he publicly goes in the market, he is followed by millions of worshipping fanboys. They raise the price, he executes, pretty much instant profit right there.

    He could also be thinking the price would plummet below the contract price (or that he could make it do so then raise it again).

    Or maybe he didn’t like the fact that he’d have to hold them for 5 years before being able to do what he wanted with. Elon is not known to simply abide by trading regulations.

    Maybe he wanted a tax write off?

    Or he could have simply forgot.

    The only real benefit to Elon is that he didn’t have to pay out for shares he was no longer interested in buying, even if he did make a bit of a loss with the options.