Readit News logoReadit News
skarap commented on Throw away code   vorner.github.io/2020/09/... · Posted by u/lukastyrychtr
skarap · 5 years ago
Python isn't weakly-typed.

> Over the years, I’ve used Perl a lot (that one doesn’t care if it’s int or string… no, correction, in Perl everything is a string, ints just don’t exist. Well, kind of). It’s probably the language designed for throw away coding. I’ve done some Python too (that’s like Perl, but with proper objects in it, and everything is a dictionary there).

The author has almost no real programming experience with Python. Perl experience seems to overlap with sysadmin-related work at least partially, where it's usually used as better Bash. All their repositories in GitHub are Rust. So almost all of "real" programming they did used Rust.

Why would anyone who know Rust way better than any other language prefer to do their prototypes using anything else?

skarap commented on Apple of 2019 is the Linux of 2000   nibblestew.blogspot.com/2... · Posted by u/khc
skarap · 6 years ago
> Things break at random for reasons you can't understand and the only way to fix it is to find terminal commands from discussion forums, type them in and hope for the best.

Depends on whom you ask. There are people who use it exactly because when "things break at random" they absolutely can understand the reasons and actually fix it in contrast to some other OSes (or Linux from more recent years).

skarap commented on Self-driving Uber car kills Arizona woman crossing street   reuters.com/article/us-au... · Posted by u/kgwgk
skarap · 7 years ago
To repeat my comment from a previous discussion which brought a lot of downvotes: what happens when (not if) a self-driving car runs-over and kills someone (e.g. because of a software bug)? Do such cases cause criminal penalties? Who is penalized? Or will all cases of autonomous car accidents with deaths become civil cases? If so - do human drivers get the same new rules or if they kill someone by accident (because they got distracted) they still go to jail? Is that fair?

In this particular case I assume the operator will be thrown under the bus, which is also unfair.

skarap commented on Google's CardDAV server isn't standards compliant (2014)   evertpot.com/google-cardd... · Posted by u/bariumbitmap
djsumdog · 8 years ago
Never attribute to security deign what can more easily be attributed to not giving a shit.
skarap · 8 years ago
Exactly. Asynchronous programming + promises + some unhandled failure case somewhere and you end up with timeouts instead of error responses.
skarap commented on Waymo Launches Its Self-Driving Armada   wired.com/story/waymo-lau... · Posted by u/stablemap
skarap · 8 years ago
So what happens when one of these cars runs over someone?

Tough luck, 5 million dollars to the family?

skarap commented on Linus Torvalds: “Somebody is pushing complete garbage for unclear reasons.”   lkml.iu.edu/hypermail/lin... · Posted by u/Valmar
Sean1708 · 8 years ago
The issue I have with most mailing list interfaces like this is how difficult it is to find context. This post is a perfect example, it's pretty easy to find David's email by clicking the "In reply to:" link but I've been searching for a good 10 minutes and I still can't find Linus' original email. Going to "Messages sorted by: [ thread ]" doesn't show it, going to "Messages sorted by: [ date ]" and looking for emails sent around 2018-01-21 11:34 doesn't show it, and short of searching through every single one of Linus' emails I don't really know how to find it.
skarap · 8 years ago
The email you're searching wasn't posted to the list. You won't find it - no matter the interface.
skarap commented on Oh shit, git: Getting myself out of bad situations   ohshitgit.com/... · Posted by u/adishaporwal
skarap · 8 years ago
One can read any amount of similar articles, but if they don't understand the data model behind all this, git will remain a complex and fragile beast for them. The feature-set is huge to be able to just remember all possible commands for all possible scenarios. If you don't know what index is or what a branch is, this all will look like a bunch of nonsense. On the other hand - your ruby code won't seem too logical either if you don't know the language.

So if git is the tool you use to get your job done - don't hesitate to spend a day or 2 on reading how it works and how you're supposed to use it.

skarap commented on Microsoft Intern’s Rape Claim Highlights Struggle to Combat Sex Discrimination   bloomberg.com/news/articl... · Posted by u/Doches
Lazare · 8 years ago
> If our police forces are failing to press charges against rapists, shouldn't that be a big priority to change?

The stereotypical case of rape would involve two people who know each other, may have had a prior intimate relationship, and then did something behind closed doors with no witnesses. One person will claim it was consensual sex or, failing that, that they had a reasonable yet mistaken belief that it was consensual sex. The other person will claim it was non-consensual sex, and that the first person did not have a reasonable believe that consent was present.

What are the police meant to do with that? Both parties agree that they were together, in the room, behind closed doors, and had sex; the disagreement hinges over extremely specific details about what was said and how it was interpreted. Classic police tools (checking alibis, interviewing witnesses, pulling security camera footage to track someone's movements, speculating about motives, following money, running DNA tests, checking forensics) are all totally useless here.

It's possible the justice system is failing to bring charges in cases where there is a strong chance of proving a crime occurred beyond reasonable doubt, but the nature of rape makes most cases extremely hard to prove, as the linked example makes clear. Here:

"The [woman's] colleagues took her out for drinks [...] after a night of drinking, she crashed with a male intern and his friend who lived in a group house nearby. She fell asleep in the basement [...] but during the night [...] the male intern [...] “forcibly penetrated her while she was sleeping”."

That's her story and I have no reason to think it's false. But here's the thing: All the guy has to do is say is something like "oh, I went down to check on her, she was awake, we chatted a bit, she seemed sober, we flirted, I propositioned her, she said sure, we had sex, I gave her a kiss, and left her to sleep" (or some variation of that; basically anything that expresses a reason why a reasonable person in his shoes would have believed she was consenting). And here's the thing: His story doesn't need to be true; it just need to be possibly true, because a conviction would require proving it was untrue beyond reasonable doubt. As long as the male intern says something that implies he had a reasonable belief in consent, and there's no third party witnesses willing to testify to undermine his claims, the justice system is powerless. And rightly so. (If he was dumb enough to claim they hadn't had sex at all, and the rape kit proved otherwise, then he'd be in trouble, of course. The rape cases that the justice system can deal with are the ones that hinge on whether or not someone was in the room, or whether or not intercourse took place. Ie, the rare easy ones.)

> Do people believe that the standard of evidence for Police is too high but isn't politically possible to change?

Not at all. It's good that the justice system works by requiring crimes to be proven to a jury of one's peers beyond reasonable doubt, and that shouldn't change.

> If someone files a police complain but that complaint is dismissed for lack of evidence, how exactly should Microsoft evaluate that claim?

Microsoft should evaluate the claim at face value. What the police do is entirely separate. If one intern is convicted (and only then) Microsoft can decide if they want to hire a rapist. Until then, they can look at the fact that two of their interns have had an extremely unpleasant encounter. Deciding to hire both, and then assigning them to the same team is clearly the wrong solution, whatever did (or didn't) happen that night.

skarap · 8 years ago
> Deciding to hire both, and then assigning them to the same team is clearly the wrong solution

Couldn't Microsoft also get into trouble by hiring just one of them (the other one could have a good case for being treated unfairly)? And what if they don't have 2 separate teams which need new members? Should they create a new team just to make sure they don't heart anybody's feelings?

skarap commented on Microsoft Intern’s Rape Claim Highlights Struggle to Combat Sex Discrimination   bloomberg.com/news/articl... · Posted by u/Doches
rayiner · 8 years ago
Here are the two failure modes. Say you believe Alice, but she’s lying. Then Bob gets fired or moved despite being innocent. Or, you believe Bob but he’s lying. So Alice has to either leave (the exact same result as Bob), or continue to work with her rapist (arguably a worse result). The two failure modes are equally bad. From the point of view of minimizing social harm, you want to minimize the sum of the two failure cases.

Now, let’s look at the statistics. Rape is much more common than false accusations of rape. Now, you run a simulation using these statistics. What happens? The rule of believing Alice results in vastly more cases where you make the right decision than the rule where you believe Bob. And it results in vastly less social harm overall.

So what’s fair? I’d assume that you’d say it’s to believe Bob, since you have no “hard evidence” to the contrary. (To nitpick: a sworn statement by a witness, Alice, is evidence admissible in court.) But that means that 10-20 women are forced to leave their jobs or work with their rapists for every one man who is spared from wrongly being fired due to a false accusation. From the point of view of minimizing social harm, you’ve failed.

Of course, in reality, you’re usually going to have some other evidence to go on. Bob might say, “Alice is lying I was at the bar with my friends when the alleged rape happened.” If so then you should believe Bob, of course. The idea of shifting the burden of proof might not work in a criminal case, but for the reasons explained above, the considerations in a work place scenario are very different: false negatives are just as bad as false positives.

skarap · 8 years ago
> Rape is much more common than false accusations of rape.

You're throwing away a datapoint - "the police decided not to press charges or Bob was found not-guilty in court".

skarap commented on When the Judge Distrusts Your Lawyers   masslawblog.com/trials-2/... · Posted by u/nkurz
skarap · 8 years ago
> Once a judge catches a lawyer in a lie the judge will question everything the lawyer says.

Not a lawyer, but isn't is taken for granted that lawyers (along with everybody else) are lying in courts and that it's the jurors and judge's job to find out who is lying?

u/skarap

KarmaCake day363March 26, 2015View Original