News for hackers. Stuff that matters.

lstyls

Re:A Guide to Python's Magic Methods (2012) on Thursday August 09, 2018 @11:21PM (#17730460)
If this were the case, there would be no need for SIGTERM. The OS doesn't know the application logic and can't guarantee clean termination from the application's perspective.

As others have said, there's rarely reason to override `__del__`, and when you do you know exactly why you need it.

> The thing is I get sick of the moralizing that underlies all these threads, as if our media doesn't do the exact same thing

You do realize this is false equivalency / whataboutism?

Not according to the linked post, at least:

> Let’s reject the false dichotomy between quality and kindness. Quality matters because it means posts can help more people. But a larger, more diverse community produces better artifacts, not worse ones. We need to stop justifying condescension with the pursuit of quality, and we need better tools and queues to help power users trying to keep quality high.

Re:Tech company career ladders on Tuesday April 24, 2018 @01:27AM (#16910072)
It's called a severance package. The company isn't giving you money to quit - you're working at-will and they can terminate your employment at any time for any reason. The amount is usually equivalent to a few months worth of paychecks.

What they pay you for is you signing away your ability to sue for wrongful termination. Because they can't really fire you for any reason.

Re:Schools Struggle with Vaping Explosion on Tuesday April 03, 2018 @05:46AM (#16743169)
Citation? NICE, for one, says there is no known cancer risk from nicotine alone: https://www.nice.org.uk/guidance/ph45/chapter/3-Consideratio...
Whitey Bulger, the famous South Boston mom boss, did exactly this:

https://www.washingtonpost.com/archive/politics/1991/08/07/h....

Re:Python 1.0.0 is out (1994) on Saturday January 27, 2018 @02:27AM (#16245241)
Sample bias. I suspect the vast majority of binaries in the wild were compiled with little, if any, code hosted on GitHub.
Not only is that anecdotal, but even if it's true it is correlative in the weakest sense. There are undoubtedly countless other features for which "cultures" (how does one define this concretely btw) with low Alzheimer's rates also are outliers.

Here is a great demonstration of how correlation does not imply causation: http://www.tylervigen.com/spurious-correlations.

Re:It’s Surprising How Much Small Teams Can Get Done [audio] on Thursday January 25, 2018 @12:45AM (#16229040)
Grandparent. The parent is the comment that is replied to. The comment the parent replied to is the grandparent. So in this case GP is @jbob2000.
Re:Walkable Streets Are More Economically Productive on Friday January 19, 2018 @05:02AM (#16185174)
Definitely. Suburbia could not exist without cars.
Re:Walkable Streets Are More Economically Productive on Friday January 19, 2018 @01:53AM (#16184570)
Its not a suburb or sprawl problem. It's a car problem.

I now live in Manhattan, the most densely populated chunk of the US. Any time I walk somewhere I spend about half the time waiting for lights so that I can safely cross a street.

Cars are massively subsidized by government.

Re:Walkable Streets Are More Economically Productive on Thursday January 18, 2018 @03:18PM (#16180954)
This makes sense to me. Street-level retail != walkability. Anyone who has tried to walk from a suburban stripmall to another right next door can attest to this.
Re:Concussion doctor says he found CTE in living NFL player on Friday December 29, 2017 @05:03AM (#16028666)
From the article:

> Now the San Joaquin medical examiner, Omalu was featured in the movie, “Concussion.”

Re:Cities with Uber Have Lower Rates of Ambulance Usage on Monday December 25, 2017 @10:12PM (#16006847)
Drivers don't have issues with an uninvited dog passenger? As a dog owner, I find this surprising. But if drivers are OK with it it would be a great option for me because I don't own a car.
Re:Ask HN: Fully online CS degrees? on Sunday December 17, 2017 @11:36PM (#15949463)
Honestly I have no idea. I'm sure it didn't hurt, but couldn't say if it was a deciding factor.
Re:ScummVM 2.0 released on Sunday December 17, 2017 @01:23PM (#15946913)
What are good ways to acquire these game ROMs legally?

A google search brings up a lot of not-completely-legit-looking sites, and I'd hate to give money to some pirate. These games are amazing and I'd love to support the authors if possible.

Re:Ask HN: Fully online CS degrees? on Tuesday December 12, 2017 @02:40AM (#15903707)
My spouse was accepted with a Psych BA + MS, and about twenty credits of CS at various extension university programs.
Re:Apple Buys Shazam to Boost Apple Music on Monday December 11, 2017 @07:14PM (#15902015)
It's pretty obvious what GP meant. The concept of crowd-sourcing small chunks of work as a service is not the same thing as a hoax which involved a single person masquerading as an automaton. Amazon chose a clever name for its service that is memorable and references humans fronted by machines.

Asserting otherwise is an example of the etymological fallacy: https://en.wikipedia.org/wiki/Etymological_fallacy.

I get why it's a security issue. My point is that it's not on the same level as a critical vulnerability.
Wut?

When logging out via the OS supplied method this is handled for the user. Why on earth would a user have to call kill -1 on logout?

My comment was from the perspective of an application developer.

> that seems useful.

It's useful like an atom bomb is useful - a really heavy-handed approach. Usually this is a smell that indicates forking processes are not communicating well.

It's much better to have well-behaved processes. Send SIGTERM to the parent process, allow the parent to perform cleanup of its own children recursively.

Unless it has a clear exploit it makes some amount of sense to me that this would not be put on a security timeline. But I am not a security expert either.

There was an anecdote in the issue tracker that suggested there was some level of privilege escalation but that did not contain a repro or any supporting evidence.

Not true. There are reporting requirements for certain foreign assets, including cash in overseas accounts.
Re:Ask HN: Who is hiring? (December 2017) on Friday December 01, 2017 @12:22PM (#15825397)
Awesome! Will email you and cc her so you know it's me.
Re:Ask HN: Who is hiring? (December 2017) on Friday December 01, 2017 @11:51AM (#15825086)
I see the role is open to junior engineers. Are you open to engineers with nontraditional backgrounds who are less experienced? My partner has been working towards transitioning into software engineering and may a good fit. She has implemented some pretty cool projects in django/react/reactnative and with mentorship could be a standout.

If so let me know and I'll refer her to you.

Re:Uber's Employee Ratings Put Women at a Disadvantage, Suit Says on Wednesday November 08, 2017 @08:06PM (#15658811)
I don't agree, but you make a valid point so I'm not sure why you're being downvoted.

But I think it's fair to assume that in most minds stack ranking includes a fire quota, and that's what most commenters mean here.

Re:Yes, but what does your startup do? on Friday November 03, 2017 @08:27PM (#15623150)
You're not unlucky, but there are some gems out there. For someone like you who is experienced in the area and can tell garbage from good stuff, it's worth digging around to find the gems.

This doesn't help someone who is completely new to the list topic though. Even worse they're probably going to get bad information.

Re:Stack Overflow reducing headcount by 20% on Friday November 03, 2017 @02:40AM (#15617098)
> most states are aren’t “right-to-work” meaning you can quit at a moment’s notice, but it’s common courtesy to give 2 weeks notice

The term "right to work" has nothing to do with employment status. It's political branding for laws that forbid mandatory union membership. It's a pretty effective union busting tool and has contributed to the decline of organized labor as a political force.

I think you're confusing it with "at will" employment.

https://en.m.wikipedia.org/wiki/Right-to-work_law

Older »