• 1 Post
  • 138 Comments
Joined 1 year ago
cake
Cake day: June 21st, 2023

help-circle


  • Lower performance though. At each iteration through the string you need to compare the length with a counter, which if you want strings longer than 255 characters will have to be multibyte. With NTS you don’t need the counter or the multibyte comparison, strings can be indefinitely long, and you only need to check if the byte you just looked at is zero, which most CPUs do for free so you just use a branch-if-[not-]zero instruction.

    The terminating null also gives you a fairly obvious visual clue where the end of the string is when you’re debugging with a memory dump. Can you tell where the end of this string is: “ABCDEFGH”? What about now: “ABCD\0EFGH”?


  • I had a Sony phone once. It was shite. Couldn’t remember the date and time on a reboot.

    It was crap in other ways too but that was the one that annoyed me the most. Obviously the majority of the price went on the name and not the phone. Shame really, Sony used to be a name that meant quality, now they’re just another bunch of MBA-led enshittifiers.







  • A support band for Madness. To call them crap would be an insult to all the genuinely crap bands out there. They went through crap and came out the other side. Then they went through whatever level of shitness that was and came out the other side. I don’t think anyone applauded them, except when they stopped making whatever ungodly racket they were making and went offstage. I’ve never been more relieved to hear a bunch of unmusical talent-free potty-mouthed morons finally STFU.



  • Being trusted in a particular location does not depend on your feelings but on whether or not your behaviour demonstrates that you have earned that trust. Looking for boundaries - how much you can get away with - does not demonstrate you can be trusted, unless you frame it from the other person’s perspective, for example you could ask your mom if she’s comfortable for dates to pick you up from a few houses down the road, and if not how far out you should go. This lets her set the boundary she’s comfortable with and you can gain trust by respecting that boundary and not attempting to push it - in fact go the other way and add 25 yards to it.


  • Your rights as an adult are that you now get to make your own rules and everyone else has to respect them. But the flipside of that is that you also have to respect everyone else’s rules, especially those of a homeowner.

    That homeowner might have rules about whether or not you can wear shoes inside, or whether you can smoke inside, etc. When you own your own place you get to make rules like this yourself, and you will be within your rights to expect your visitors, tenants and offspring to abide by them.

    If for example you make a rule that says “Don’t tell strangers my address” then you would be right to expect your children to abide by that rule.

    This is your mom’s rule and you have to abide by it. Tell your dates to pick you up and drop you off somewhere nearby without giving away your home address, and when you want to invite them home you need your mom’s agreement first, because it’s her house and her rules.

    BTW the “I want it my way!” attitude is that of a kid not an adult. Grown-ups make agreements and stick to them. If you want different rules you can try to negotiate with her, but you have to accept if she won’t change them. There are good reasons for not letting unknown people know your address.



  • Sorry I’m not well enough versed in American politics to know who’s blue or red.

    Whether you should vote or not doesn’t depend on the people around you. It is your right to have your say. The result is the cumulative effect of everyone in your area doing the same. Whether you think you’re surrounded by millions of blues or millions of reds doesn’t make any difference. Your perception may be incorrect, and your analysis, that there is literally zero chance that your vote will matter, is incorrect.

    Nobody knows the results of an election until the votes are in and have been counted. It doesn’t matter that your area has always been red, blue, green, turquoise, pink or whatever. Areas can change allegiance, and it is by individuals getting out and voting.

    If you don’t vote, you strengthen the position of those who vote the other way. It is not considered a protest vote because the system would prefer to consider this as voter apathy. If you want to register a protest vote and “none of the above” isn’t an option, find the official way to spoil your ballot paper and do that, but whatever you do, get out and vote.




  • letsgo@lemm.eeto196@lemmy.blahaj.zoneJesus rule
    link
    fedilink
    arrow-up
    21
    ·
    2 months ago

    No, what he’s saying is that since all actions start with a thought (for example, one does not just commit adultery; there’s a period of “I wouldn’t mind a bit of that”), it can be helpful to consider the thought as bad as the action for the purpose of weeding that behaviour out of our lives. Not that the thought is as bad as the action, because clearly it isn’t. Continuing with the example: when we find ourselves thinking like that, it is at that point we should catch ourselves and think about something else instead. Attempting to stop yourself just before you rip her knickers off is unlikely to be quite as successful.

    Similarly 29 and 30 are not suggestions of actual self-mutilation. Your eye cannot cause you to sin; it is exaggeration for the sake of making the point. You see something, you think about it, then you act on that thought. But if the act is sinful then we should attempt to stop the act at the earliest possible point.