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/)P
Posts
12
Comments
289
Joined
1 yr. ago

  • Sorry, do I know you? I'm extremely sure I have never banned you. Are you just following a "how to stir shit with somebody who used to be in a moderator role" checklist or something?

  • Rules that improve the discourse of the community from the users' perspective isn't really how lemmy.world does things. Most of the big communities seem to have mods that vigorously enforce things no one wants, and don't bother to enforce things that people would like to see.

  • There's a reason it's coming back around to the fore, I suspect. Because it's time to play the favorite game of "This left person isn't left enough! Let's attack him!"

    I mean yeah Gavin Newsom is kind of a POS. I don't even like the guy, he's not particularly left-wing and I wish the Democrats had more better standard bearers than this guy. But what the fuck, he is fighting against Trump and that's a good thing. Supporting Gavin Newsom for sticking his thumb in Trump's eye is absolutely in no way incompatible with supporting more genuine left-wing people (including supporting replacing Newsom with someone better as soon as that becomes feasible.) Just replacing him with "let's let the bad guys win instead" is fuckin' stupid.

  • Honestly, man, I get what you're saying, but also at some point all that stuff just becomes someone else's problem.

    This is what people forget about the social contract: It goes both ways, it was an agreement for the benefit of all. The old way was that if you had a problem with someone, you showed up at their house with a bat / with some friends. That wasn't really the way, and so we arrived at this deal where no one had to do that, but then people always start to fuck over other people involved in the system thinking that that "no one will show up at my place with a bat, whatever I do" arrangement is a law of nature. It's not.

  • Is that really true? I guess I have no reason to doubt it, I just hadn't heard it before.

  • I feel like at some point it needs to be active response. Phase 1 is a teergrube type of slowness to muck up the crawlers, with warnings in the headers and response body, and then phase 2 is a DDOS in response or maybe just a drone strike and cut out the middleman. Once you've actively evading Anubis, fuckin' game on.

  • Way-back-when, long before WFH or any of these modern things the kids are up to nowadays, I did consulting from home, and I found it was actually way better to make a "workplace" for myself. I wound up talking with a startup run by friends of mine and they kindly agreed to let me bring my computer in and set up a desk for myself, just so I would have an "office" that was conceptually separate from the "office" in my bedroom. I got a lot more done in there.

    One, it was bringing me anxiety, that I would wake up in the morning and my workplace was right in the room with me. Two, I found I got a lot more done when the workplace was separate. YMMV, but that was what I found.

  • Chonk

    Jump
  • It doesn't completely work that way, just like for humans. Sometimes feeding pets less is just subjecting them to pretty severe discomfort and hunger, while their metabolism is deciding that food is scarce so they better hoard every calorie they can spare. I know it's significantly urgent to help them lose weight because of the health impacts, but IDK that it is super simple once you've decided to try to make it happen.

  • In the olden times, it was a big point of pride of American politics that a lot of people didn't want to kill the leaders. It was sort of assumed that in feudal style European politics, of course the common people kind of wanted to kill you, because you were threatening their safety and taking their stuff. In America, the way we did things was to earn the respect of the people you governed. The people actually wanted this person to be in charge. Why would I shoot that guy? That's who we picked, we like him.

    Of course there are some caveats (slavery large among them). The reality never matched up to the ideal. But we're going back to where even the approximation of consent of the governed that we used to have, isn't assumed anymore. Fuckin bullshit

  • I hope this shit turns out okay, seems like the rollercoaster's pretty much at the peak of that first big hill.

  • Dude you were the one that asked the fucking question lol

  • 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.

  • 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.

  • 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.)

  • You can do strict typing in python if you want it, it's very highly recommended if you're doing a big project.

  • 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.

  • Why not just replace it with a cap that isn't a flip-top? Screw it on tight, squeeze the bottle slightly before putting the cap on so there's a slight negative pressure. That would be my first thing to try.