Skip Navigation

InitialsDiceBearhttps://github.com/dicebear/dicebearhttps://creativecommons.org/publicdomain/zero/1.0/„Initials” (https://github.com/dicebear/dicebear) by „DiceBear”, licensed under „CC0 1.0” (https://creativecommons.org/publicdomain/zero/1.0/)PH
Posts
41
Comments
123
Joined
6 days ago

  • One of the most important parts of a propaganda framework is the introduction of code-words, little phrasings that automatically call to mind a particular narrative you're trying to construct. "People are fleeing California to move to red states" may be true, it may not be, it may be because of property values more than anything else. Doesn't matter. By incorporating that same phrasing and framing into as many different contexts as possible, it does two things:

    1. It gives people security. It's like a little affirmation that gives them assurance they're on the right side. They can slip it into conversation on their YouTube channel, in their press conference, at their dinner table. It reminds them that everyone on the "enemy" side is stupid, and losing, and they're on the right side. It gives them camaraderie, it strengthens the bond.
    2. It creates an artificial external reality. If you just walk up to people a few times a week and say, "Democratic policies are a failure," they'll think you're super weird, and they might even disagree with you. But if you just use the code-word, if you allude to it, even in contexts like this that have nothing to do with anything, it'll smuggle its way into their worldview without them even noticing. Eventually, it's reach a point where if someone tries to tell them it's not that way, they'll scoff and decide the person is stupid, because everyone thinks that, they hear it everywhere.

    It's very effective.

  • Politics @beehaw.org

    Oklahoma to begin controversial test to weed out ‘woke’ teacher applicants today

    Games @lemmy.world

    Slay The Princess DLC - Official Announcement Trailer, June 2024

  • You define it in exactly the same way you just did. Completely fine, you have to do it for lots of things. It's nice that Python can do that too.

    Now, I'll grab a random snippet of code from some random file from my source dir:

     
        
            existing_bookmarks = db.session.execute(
                text('SELECT post_reply_id FROM "post_reply_bookmark" WHERE user_id = :user_id'),
                {"user_id": user_id}).scalars()
            reply = PostReply.query.filter(PostReply.id.in_(existing_bookmarks), PostReply.deleted == False).first()
            if reply:
                data = {"comment_id": reply.id, "save": True}
                with pytest.raises(Exception) as ex:
                    put_reply_save(auth, data)
                assert str(ex.value) == 'This comment has already been bookmarked.'
    
      

    You can see some classes in use, which again is fine. But you also see inline instantiation of some reply JSON, a database returning a list of post_reply_id values without needing a special interface definition for returning multiple values, lots and lots of cognitive and computational load per line of code that's being saved because the language features are saving people the heavy lifting of depending on user-defined classes for everything. It means you don't have as many adventures through the code where you're trying to modify a user-defined interface class, you don't need as much strong typing, that kind of thing.

    I would bet heavily that a lot of the things that are happening in that short little space of code, would need specific classes to get them done if the same project were getting implemented in some C++-derived language. Maybe not, I just grabbed a random segment of code instead of trying especially hard to find my perfect example to prove my point.

    It is fine, there are significant weaknesses to Python too, I'm not trying to say "yay python it's better for everything," anything like that. I'm just saying that if you don't get familiar with at least some language that does things more that way, and instead get solely accustomed to just user-defined classes or templates for every information exchange or functional definition, then you'll be missing out on a good paradigm for thinking about programming. That's all.

  • Complex data structures are not "more of a C++ type of program structure".

    Oh, they are not at all. Equating complex data structures with user-defined data structures (in the form of classes and fields and whatnot), and using the latter as the primary method of storing and working with data (so that you're constantly having to bring into your mental scope a bunch of different classes and how they need to interact), is 100% a C++ type of program structure. It's pretty unusual in my experience in Python. Or, I mean, it's perfectly common, but it's not primary in the same universal way that it is in C++ and derivatives. It gets to exist as its own useful thing without being the only way. That's what I am trying to say.

  • It is surprising to me that Cuomo can't understand that his every mannerism paints him as a massive piece of shit. IDK, maybe he's embedded enough in old school dirty money NYC politics that he thinks portraying as an effectively corrupt piece of shit will make him look like a winner or something, but that is part of why I posted this, is that it's very interesting to me just hearing the man having a chance to display his horrendousness in his own words.

  • Political Videos @sopuli.xyz

    Mamdani Links Cuomo To Epstein In Killer Attack Ad

  • it's actually better for stallions to carry a bit more weight

    It is clear that this horse knows what he's doing. Just give him oats and lady horses and let him run around and do his thing. Humans are fuckin' weird.

    Edit: I'm not up on my horse lingo

  • IDK, I just have never really had this become a serious issue for me. I get what you mean, some actions are a little bit of a pain in the neck because people are often sloppy about typing, but literally the only time I can remember it being an issue at all has been when numpy is involved and so I have to figure out if something is a native Python thing or a numpy-fied custom structure.

    I mean there's just not that many types. Generally something is a list, a number, a map, or a string, and it's pretty obvious which. Maybe there are OOP domain things where a lot of variables are objects of some kind of class (sort of more of a C++ type of program structure), and so it starts to become really critical to have strong type tools, I'm just saying I haven't really encountered too much trouble with it. I'm not saying it's imaginary, you may be right in your experience, I'm just saying I've worked on projects way bigger than a few hundred lines and never really had too much of an issue with it in practice in my experience.

  • Politics @beehaw.org

    Trump and Putin to be joined by their advisers at Alaska meeting

  • Hm... yeah, maybe so. They linked to taz, they quoted a random member of Masch, and they cited some other cases, but yeah maybe it would have been good to have an actual legal expert weighing in on how realistic it is that this will mean anything significant.

  • Politics @beehaw.org

    Democrats introduce joint resolution to end Trump’s ‘lawless’ DC takeover

  • That's not really clear in actuality. Different people have different opinions on what might be the results, and a few of them are quoted in the article stating their takes on it. The fact that the reality isn't clear yet isn't exactly the article's fault.

  • Plus I felt python was too new and would skip a lot of core programming skills id just like to know. Im not super interested in doing it the new way with all the helpers, or I wont feel like I learned anything.

    Okay, you definitely want to learn C then. C# and C++ both add a ton of helpers. C# has a massive runtime environment that's opaque and a little bit weird, and C++ has a massive compile-time environment that's opaque and very weird. It's sort of pick your poison. If you learn C and get skilled with it, you'll be well set up for understanding what is actually going on and having strong fundamentals that will set you up well for whatever higher-level language you want to learn in the future.

    Put another way: C# will hide just as many of the fundamentals and hardcore details from you as python will, it'll just do it in a weird and counterintuitive fashion that will make it more confusing and with more weird C#-specific details.

    I'd eventually like to learn unity as well so i decided on c#

    I would actually just cut out the middleman and start with the Unity editor then. It actually might be a really good introduction to the nature of programming in general without throwing a bunch of extra nonsense at you, and in a really motivating format.

    I do have the .net sdk and it seems to try to compile a simple program, it just throws errors even on an example program that shouldn't have any. Im sure its something dumb.

    What's the program and what's the error? I'm happy to help if something jumps out at me. I'm voicing my opinion otherwise on what might be better ways to attack this all in general, but I'm sure me or people here can help sort out the issues if you really want to take this approach and you're just getting stuck on something simple.

  • C# represents about 12% of the jobs out there.

    https://www.devjobsscanner.com/blog/top-8-most-demanded-programming-languages/

    It's not unpopular, but it's definitely not "massively" popular anymore. Different languages have different strengths and weaknesses, but C# has a few more weaknesses than most. In my opinion. Yes, there's nothing wrong with learning any particular language you want to learn (and I'm a little surprised to see C++ has fallen significantly lower than C#, sure, fair enough). I'm just struggling to see an upside for learning it in the modern day (and now knowing more about what this person's goal is I feel even more strongly that C# is the wrong answer for them. In my opinion.)

  • I get what you're saying, people have been arrested after using Tor when that's not true of Mullvad. My point is that the domains are just not the same. It's like saying "body armor isn't as good as just wearing a baseball hat" because a higher percentage of people get shot wearing body armor than while wearing a baseball hat.

  • Politics @beehaw.org

    German court declares Karl Marx's teachings unconstitutional

    Technology @piefed.social

    AI crawlers now solve the Anubis challenges

  • Yeah. I am hopeful that he'll run into resistance from the rank and file he is trying to depend on to get this stuff done. The California National Guard is already pissed about LA, and now he's asking for support and cooperation from the same force that watched his supporters beat the fuck out of the Capitol Police like a medieval siege not that long ago and then him give them hearty congratulations for it.

    I'm not saying it won't work as he keeps trying (and as ICE gets staffed up and better funded), but I'm glad he's a moron, that's all I'm saying.

  • Politics @beehaw.org

    Trump’s attacks on Democratic-run US cities will not stop with Washington

    U.S. News @beehaw.org

    Indigenous Communities From Southern Mexico Refuse to Bow to ICE in California

    Ukraine @sopuli.xyz

    New air defence system being developed in Ukraine

  • Compare the amount of arrest of Mullvad users versus Tor users

    Okay. There are half a million total account numbers on Mullvad over the entire lifetime of the service. Tor has about 1.8 million daily users. That's part of why I trust Tor a lot more, is that it's been actively used for flagrantly illegal activities for long enough and by enough people to have developed an understanding of what the risks are (and it becomes news if someone gets busted.) Ring me up the next time a major drug ring is keeping its whole operation secure behind Mullvad, and the cops are helpless because they raided it and found no logs and so they had to pursue some other kind of operation to take down the ring.

  • I really would not recommend specializing in C# at this point in computing history. You can do what you want obviously, but Python is much more likely to be what you want. C++ or Java might be okay if you want a job and are okay with a little bit dated / not ideal languages, or you could learn one of the proliferation of niche backend Linuxy languages, but C# has most of the drawbacks of C++ and Java without having even their relative level of popularity.

    IDK what issue you're having with VSCode, but I think installing the .NET SDK and then using dotnet by hand from the command line, to test the install, might be a good precursor to getting it working in VSCode. But IDK why you would endeavor to do this in the first place.

  • Yeah. It feels like the issue is that really solving it is hard work (you can feel, with the proliferation of Linux/Windows runtimes that get downloaded behind the scenes for Steam, how much effort they're continuously putting into releasing new runtimes that make slight adjustments for particular issues), and organizations like Ubuntu are always tempted into these kind of "we'll just set up a simple system that means we don't have to work on it because it'll be solved" approaches.

    Honestly I think Linus is being a little over simplistic about how easy it would be to create ABI compatibility in userland. In the kernel it's realistic, but in userland it would be hopeless. But he's not wrong that the current situation, however it arrived, is pretty crappy from a POV of wanting to ship something to people outside of the distro's package management, and IMO none of the solutions that have come along since then are effective at solving the problem.

  • World News @quokk.au

    Australia finds record meth, cocaine, heroin use in wastewater analysis

    Technology @lemmy.zip

    Tencent doesn’t care if it can buy American GPUs again – it already has all the chips it needs

    Videos @lemmy.world

    Linus Torvalds on why desktop Linux sucks

    Cybersecurity @sh.itjust.works

    For $40, you can buy stolen police and government email accounts

    Political Videos @sopuli.xyz

    Gaza is the most dangerous place on Earth for journalists

    Political Videos @sopuli.xyz

    Israel Is Drawing Up Plans For Mass Expulsion Of Palestinians In Gaza

    World News @quokk.au

    UK teenager's death after hospital failings is ruled unlawful

    movies @piefed.social

    “My Undesirable Friends: Part I” Is a Staggering Portrait of Russian Journalists in Dissent

    Politics @beehaw.org

    Immigration Detention Has Become a Booming Business for Private Prison Giants

    Offbeat @lemmy.ca

    Women with AI ‘boyfriends’ mourn lost love after ‘cold’ ChatGPT upgrade