• 0 Posts
  • 103 Comments
Joined 1 year ago
cake
Cake day: August 3rd, 2023

help-circle

  • is-number is a project by John Schlinkert. John has a background in sales and marketing before he became an open source programmer and started creating these types of single function packages. So far he has about 1400 projects. Not all of them are this small, though many are.

    He builds a lot of very basic functionality packages. Get the first n values from an array. Sort an array. Set a non-enumerable property on an object. Split a string. Get the length of the longest item in an array. Check if a path ends with some string. It goes on and on.

    If you browse through it’s not uncommon to find packages that do nothing but call another package of his. For example, is-valid-path provides a function to check if a windows path contains any invalid characters. The only thing it does is import and call another package, is-invalid-path, and inverses its output.

    He has a package called alphabet that only exports an array with all the letters of the alphabet. There’s a package that provides a list of phrases that could mean “yes.” He has a package (ansi-wrap) to wrap text in ANSI color escape codes, then he has separate packages to wrap text in every color name (ansi-red, ansi-cyan, etc).

    To me, 1400 projects is just an insane number, and it’s only possible because they are all so trivial. To me, it very much looks like the work of someone who cares a lot about pumping up his numbers and looking impressive. However the JavaScript world also extolled the virtues of these types of micro packages at some point so what do I know.


  • Your individual tastes are subjective. I was arguing that the quality difference of a mcdonalds burger and a restaurant burger is not as big a chasm as OP made out.

    I agree that they are basically the same meat from the same cows, but in my opinion there is still a big quality difference due mainly to preparation. A McDonald’s beef patty is too thin, too homogeneous, and overcooked. The lack of flavour is the result of optimizing for cooking speed.

    If you are willing to wait 5-15 minutes for your burger to be cooked you can achieve dramatically better results from the same cow.




  • The sad truth is that there are overriding geopolitical strategic interests behind the US support of Israel. The American executive power recognizes this, so military support is not going to go away as long as those interests are a concern.

    They may pay some lip service to the whole genocide thing, but this is ultimately realpolitik. Human lives do not matter when they are not American.



  • Airplane mechanics are held responsible for their failures, should we throw that out the window and when they forget to tighten down a bolt that drops a plane just say whelp, better luck next time, lets get George some more training and hope he follows the procedures that are in place to prevent that from ever happening again.

    You are joking, but that’s almost exactly what happens. Aircraft investigations are universally conducted on the basis of not assigning blame, but figuring out how to prevent this in the future.

    The point is that airplane mechanics generally do not forget to tighten bolts out of pure evil intent. They are for the most part just ordinary humans who can be expected to behave as such. Therefore when an error occurs it is a failure of the system, not them personally. Replacing them with another human who makes human mistakes doesn’t fix anything.

    In this case we ask the same thing: what happened that caused things to go so wrong on this set, and what can we change to prevent that from happening again? I’m quite certain that putting this person in jail is not the answer to that question.



  • The problems listed in the article are real. we’ve built a system:

    1. Where a lot of economic growth stems from an increasing supply of (cheap) labour
    2. That relies on people of working age being able to financially support a retiree class.

    Both of these are going to fall apart if the population stops growing. The smaller group of working age people won’t be enough to support the amount of retirees, and without population growth there’s no economic growth.

    It’s sad that economists correctly see all this coming but then conclude that the only solution is “make more babies.” It’s short term thinking almost by definition, because in the limit it’s rather obvious that at some point we will not have the resources to support any more people. And the closer we get to that limit the less each individual person will have (even worse when wealth is not equally distributed).

    Unfortunately I don’t see any economist putting forth a plan that accepts population decline and alters the system to account for it. It wouldn’t be easy but it seems no one is even trying.


  • VW is good at making cars, but bad at software. They’ve had to delay the introduction of new models (Golf, ID.3) because of software issues. Rivian has sort of the opposite problem: their production lines sit still often because of problems in the supply chain.

    Volkswagen has the expertise to solve Rivian’s production and supplier problems, and the cash they will need to survive and develop some cheaper models (the EV market is stagnating right now for a lack of budget options, and Rivian only sells trucks and SUVs). And they’re hoping Rivian software engineers can help them fix their software woes.




  • Honestly, I think it may be possible to build entire roads with enough crushed metal elements in the asphalt/concrete and a slight low power charge throughout the entire surface would be able to keep any vehicle battery at a steady charge.

    You might be underestimating how much power a car consumes while driving. For example, a Tesla model 3 has an efficiency of about 130 Wh/km in mild weather at highway speeds. Assuming that on the highway you’ll travel 100 km/h, that means you’ll use 130*100 = 13.000 Wh/h, a constant power draw of 13kW. That’s enough to power perhaps 8-12 houses on average.

    A km of road could have, let’s say, 200 cars on it (4 lanes, 20m per car). That means you’d need to pump about 2.6 megawatts of power into every kilometer of road to keep them all topped up.

    EDIT: fucked up math




  • I agree almost 100% with you on this. I did play Oblivion, but Skyrim has the more interesting world IMO which makes it a slightly better game. The strength of Bethesda games that makes them good, in my opinion, is the same every time: explore a large interesting world with your own created character. This explains (in part) why people like Morrowind so much: the world is just so weird and interesting.

    The problem is they don’t know how to improve on that concept. Instead they are mostly adding features that either don’t add anything to it or actively detract from it. For example, Fallout 4 received settlement building and weapon crafting. But, the time I’m spending on my town, I’m not actually out exploring. If I can craft weapons, I care less about the cool weapons I find in dungeons. Now, Starfield got rid of most of the crafted world altogether in exchange for procedural planets that aren’t interesting to explore at all.

    Aan an aside, I don’t think it even makes sense to compare the first two fallout games with the Bethesda ones. Fallout 3 and beyond are not really sequels, they’re a completely different series set in the same universe.




  • Andrea Dworkin was an influential feminist mainly in the '80 and '90. She was pretty clearly anti pornography, at least as it existed in her time (she died in 2005. Who knows what she might think of some of the stuff out there today). She’s also one of the most frequently misquoted feminists of all time, particularly by anti-feminists. she did not say all heterosexual intercourse was rape:

    Several reviewers accused you of saying that all intercourse was rape. I haven’t found a hint of that anywhere in the book. Is that what you are saying?

    Andrea Dworkin: No, I wasn’t saying that and I didn’t say that, then or ever. There is a long section in Right-Wing Women on intercourse in marriage. My point was that as long as the law allows statutory exemption for a husband from rape charges, no married woman has legal protection from rape. I also argued, based on a reading of our laws, that marriage mandated intercourse—it was compulsory, part of the marriage contract. Under the circumstances, I said, it was impossible to view sexual intercourse in marriage as the free act of a free woman. I said that when we look at sexual liberation and the law, we need to look not only at which sexual acts are forbidden, but which are compelled.

    The whole issue of intercourse as this culture’s penultimate expression of male dominance became more and more interesting to me. In Intercourse I decided to approach the subject as a social practice, material reality. This may be my history, but I think the social explanation of the “all sex is rape” slander is different and probably simple. Most men and a good number of women experience sexual pleasure in inequality. Since the paradigm for sex has been one of conquest, possession, and violation, I think many men believe they need an unfair advantage, which at its extreme would be called rape. I don’t think they need it. I think both intercourse and sexual pleasure can and will survive equality.

    It’s important to say, too, that the pornographers, especially Playboy, have published the “all sex is rape” slander repeatedly over the years, and it’s been taken up by others like Time who, when challenged, cannot cite a source in my work.