• 4 Posts
  • 18 Comments
Joined 1 year ago
cake
Cake day: June 18th, 2023

help-circle

  • While I do agree with most of what is said here, I have a hangup on one of the points: Thinking that “docstrings and variable names” are a trustworthy way to indicate types. Python is not a statically typed language - never will be. You can have as much type hinting as you want, but you will never have a guarantee that some variable holds the type you think it does, short of checking the type at runtime. Also, code logic can change over time, and there is no guarantee that comments, docstrings and variable names will always be up to date.

    By all means, having good docstrings, variable names, and type hinting is important, but none of them should be treated as some kind of silver bullet that gets you around the fact that I can access __globals__ at any time and change any variable to whatever I want if I’m so inclined.

    This doesn’t have to be a bad thing though. I use both Python and C++ daily, and think that the proper way to use Python is to fully embrace duck typing. However that also means my code should be written in such a way that it will work as long as whatever input to it conforms loosely to whatever type I’m expecting to receive.


  • I can’t speak for everyone, but I believe the peace time professional militaries of most democratic European countries would be dwarfed by the number of people those countries would be able to mobilise in a war time situation.

    In the case of Norway, we have a standing army of some 20-30 k soldiers, with a reserve (i.e. peace time civilians with ordinary jobs that have pre-set places to meet up in the case of a conflict) of some 50-70 k soldiers. If shit hits the fan, I wouldn’t be surprised if you could get another 100-200 k to volunteer (at the peak of the cold war I believe we had standing army + reserve of some 500 k). The issue is that we are nowhere close to being able to equip that many soldiers.

    That’s just Norway, one of the smallest populations in Europe, and we would likely be able to field 100 k + soldiers within a week or two, with another 100 k following up in the next months, given that we have the equipment for it.

    Call me naive, but I honestly believe that people in democratic countries would be willing to enlist if there is a real threat of an autocratic regime invading at taking over. Given that we have sufficient numbers of well trained soldiers to hold out the initial weeks/months and train those mobilised, and sufficient equipment to give the mobilised, I hope that we would be able to put a solid force on its feet relatively quickly.

    Also, just the sheer population of Europe (≈ 450 million in the EU) is so much larger that e.g. Russia (≈ 150 million) that we should collectively be able to field several million soldiers as long as we have enough equipment for it, and enough trained personell to train the mobilised. So I definitely think it’s reasonable to focus on building equipment stockpiles in peace time, rather than having huge standing armies.



  • I didn’t say that. I’m pointing out that we spent shitloads of money that could have gone to out own schools and healthcare, and a dozens of young soldiers lives (I’m not American), and we were clearly told by both the local population and a bunch of other countries to fuck off.

    So yes. I’ll say it. Fuck em. We don’t owe them shit. We came down there, suppressed the Taliban, built s schools and hospitals, and secured elections, and when we left, the Afghan army, which we had trained and supplied, folded immediately.

    We can’t be held responsible for them not revolting against a suppressive regime. We gave them all the tools to keep the taliban out, but they chose to fold. That’s on them.

    It’s tragic, but that’s how it is. If they’re not willing to fight for their own rights, they won’t get to enjoy them.





  • Totally justifiable IMO. In my day-to-day life its much more important that my shit works when I need it to than that I get whatever potentially something-breaking latest hotfix patch for everything on my system. Put simply: My OS, and the packages I use, work. If I don’t update, I’m sure it will also keep working. When I have time for an update to break something, or want to pull in some new feature or patch, I’ll run an update.


  • I’m honestly just thinking that at some point they must have pushed it too far. The media is calling this a “retaliation strike” but fail to mention that the missile exchanges with Iran started when Israel “assassinated” a Hamas top in Iran using a bomb last year, with a bunch of collateral casualties.

    Like… what does it take to convince all their neighbours to start a ground war in Israel, and for the west to simultaneously look the other way? It looks like they’re trying their best to find out.


  • I am/was in the same boat as you: For a long time, I just didn’t care that I was giving away a bunch of information in return for convenience, and didn’t get why people cared so much.

    I don’t really know what triggered it, but at some point I became painfully aware that the only goal these companies have is to squeeze every possible penny out of selling me. I started noticing that the stuff they ask you to confirm is 95% stuff they want because they can sell it, or use it to get you hooked to their service, and 5% (at best) stuff they need to make the service good for you.

    This triggered a change in my perspective: Now it pretty much makes me sick to my stomach to think about all the companies that are drooling over me, trying to make a buck by getting me to click something I’m not actually interested in, or don’t actually need.

    These people have a vested interest in manipulating me, and by giving them my data, I’m giving them the tools to do it. I don’t want to be manipulated or sold as a product: That’s what made me start caring about protecting my data.






  • For someone starting out, I would say that a major advantage of Python over any compiled language is that you can just create a file and start writing/running code. With C++ (which I’m also a heavy user of) you need to get over the hurdle of setting up a build system, which is simple enough when you know it, but can quickly be a high bar for an absolute beginner. That’s before you start looking at things like including/linking other libraries, which in Python is done with a simple import, but where you have to set up your build system properly to get things working in C++.

    Honestly, I’m still kind of confused that the beginner course at my old university still insists on giving out a pre-written makefile and vscode config files for everyone instead of spending the first week just showing people how to actually write and compile hello world using cmake. I remember my major hurdle when leaving that course was that I knew how to write basic C++, I just had no idea how to compile and link it when I could no longer use the makefile that we were explicitly told to never touch…




  • First of all, that speech is awesome.

    But I want to comment on something regarding modding, and ask an honest question: Shouldn’t reiteration of historical speeches or texts be omitted from rules about slurs? I mean, reiterating a speech, or a section of Huckleberry Finn, is obviously not the same thing as devaluing someone by calling them a slur. We actually have a quite hot debate going on in my country about this now, where some teachers were harassed for “being racist”, because in class they read aloud a famous poem written by an immigrant about racism, where he writes some of the things that were shouted at him. The whole point of the poem, and of reading it in class, is of course to make a point out of how bad racism is, and to educate about racism. Still, these teachers have been stamped as “racists” because they reiterated specific words in the poem.

    For the honest question (I’m not American or a native english speaker): Isn’t there a historical difference between the word “Negro”, and a certain similar word I’ll refrain from reiterating? The way I’ve understood it, the former is a historically more neutral form, that was simply used the way we today would use “black person”, while the latter has more or less always had some kind of devaluating undertone. I’ve gotten that interpretation, among other things, from having read speeches where people are promoting equal rights, and use “Negro” to refer to black people, while clearly not believing that they are inferior in any way (hence the promotion of equal rights). Of course, today, both words are considered unacceptable, but I would like to clarify if I’ve misunderstood, as it helps in interpreting things that were said or written in the past.


  • I’ve been missing an alternative to Facebook that I can use for non-anonymous planning of events and communication in hobby groups etc. and I had never heard of any of the “Facebook-type” federated stuff before!

    Now I just need to convince a bunch of people that this is viable to use without being the annoying guy…