Better HN
topnewbestaskshowjobs
Log inSign up

quicklime

2,911 karma · joined Oct 19, 2016 (10y ago) · 544 submissions

Submissions

comment 6y ago · link · parent

Wow, that sounds awful.

Do you know what they did (assuming not nothing) to have browsers continue to enforce the same-origin policy, and block www.terriblesecuritycompanyname.com/evilhacker.com from accessing cookies that belong to www.terriblesecuritycompanyname.com/owa.office365.com?

comment 6y ago · link · parent

Flipping this around a bit: if someone in England asked "what's the time in London?" should Siri assume that they're talking about London in Ohio or Ontario? Everyone in England is on GMT, so they don't need to do timezone conversions to London time.

comment 6y ago · link · parent

Hamilton?

comment 6y ago · link · parent

No offense, but some of the worst people I’ve ever worked with were “senior” engineers who were convinced that everyone needed to learn to think like them, and that there was nothing left for them to learn themselves. An orthodontist job doesn’t require the same people skills as an engineer working in a team, so it’s not really comparable.

comment 6y ago · link · parent

On top of the toilet paper roll, obviously.

comment 6y ago · link · parent

Does anyone have experience using Bazel (or a similar build system) together with create-react-app? Specifically, is there a way do it without ejecting?

I work on a project with a Go backend and a React frontend, and having to update all those React dependencies myself is what keeps me from moving to a system like Bazel.

comment 6y ago · link · parent

Is there a reason you can't already do this with windows (which are a visual grouping of tabs)?

You're right that cycling through tabs and making individual decisions on closing each one has a high cognitive load. Closing an entire window is much easier.

A while ago I realized this, and started to front-load that cognitive effort and make sure that the "root" of each "subject" gets opened in a new window (or at least detached early enough once I realized that I was branching off into a new subject).

An example of the root of a subject could be an item in an issue tracker, and that window could also contain tabs for code search windows, Google searches on that topic, Stack Overflow answers, etc. Once I'm done fixing the bug, I just close the entire window/subject/group, without thinking about each individual tab.

The front page of HN is also usually the root of a subject. I'll open tabs for articles and comment pages, and then close the whole window once I'm done with my break and want to go back to work. If there's something particularly interesting that I want to save for later, I'll detach that tab and close the rest.

For the C++/RAII people, this is kind of like making sure that every object has an owner, and that memory is freed when those objects go out of scope. This is a lot easier than manually doing a mark-and-sweep over all your tabs :)

comment 6y ago · link · parent

At least with Go 1.14 (what I got with Ubuntu 20.04) importing net/http could add another 4.7MB to the binary size.

This might've been fixed in Go 1.15 though - see https://twitter.com/bradfitz/status/1256348714198654976.

comment 6y ago · link · parent

The amount of risk.

comment 6y ago · link · parent

+1, good tests are by far the biggest long-term productivity win, in my experience worth much more than any other tooling or process improvement.

Unfortunately I've gone in the opposite direction as you. I recently moved from a company that had a good automated test culture, to one that has a culture of manually testing things, often in production. Everyone, even the senior engineers who've been around for a long time, regularly lands changes that cause prod incidents.

There's actually quite a good canary/rollback system in place to deal with this, so a lot of people think everything's fine. But they don't quite realize how much more efficient things are if you can just make a change and run a test suite, and quickly have confidence that you didn't break things.

comment 6y ago · link · parent

I would guess that approximately zero banks own data centers that are operated by their own employees. There might be a few exceptions to this, but the reality is that most banks don't view technology as part of their core business. So this largely gets outsourced to IT consulting firms like Infosys, IBM, Wipro, etc.

The big question is - how much do you trust these providers, and do you think they are more competent at security than Amazon/Google/Microsoft?

comment 6y ago · link · parent

FWIW, this has been a problem on all the laptops I've ever owned, including 4 different MacBooks built between 2011-2019, and a Chromebook Pixel.

comment 6y ago · link · parent

I would probably err on the side of making it opt-out and not mandatory. You’ve got a valid and interesting question, but my comment was in response to Schneier’s claim that contract tracking apps are “useless”.

> What use would a tracing app have if anyone could ignore alerts at will, because s/he has no symptoms and is afraid of job loss if quarantining?

I think this is another example where things are a bit too binary. If anyone could ignore the alert, then some probably will and the rest won’t. The fact that the rest are taking this seriously still helps to avoid some number of transmissions.

comment 6y ago · link · parent

> Assume you take the app out grocery shopping with you and it subsequently alerts you of a contact. What should you do? ...the alert is useless.

This feels like the mask debate again. It doesn’t guarantee safety, so it’s useless.

But there are plenty of things you could do.

You could carry on but avoid visiting your elderly parents, and cancel your plans to attend a crowded event. You could start walking or driving to work instead of taking the train. Or work from home more often.

It’s not a choice between quarantine or complete freedom, there are grey areas in between.

Get one of these alerts? Start taking more precautions. Get many more? Start taking more extreme caution.

comment 6y ago · link · parent

Their 2010 revenue was $29.3 billion, and in the last four quarters (including the recent Q1 announcement) they raked in $166.71 billion. If your headcount numbers are correct, and they've gone from 25k to 100k employees, they've actually managed to increase their revenue faster than their headcount.

Their constant failure to make a dent in the chat app space is surely embarrassing, but having a few parallel efforts is a drop in the bucket in terms of efficiency.

comment 6y ago · link · parent

There are other formats. Here's one that my wife (who is originally from China) got:

This guy calls claiming to be from the Beijing police. They claim that after she left China, someone stole her identity and tried to make some transactions in her name. They managed to stop him, but now they're investigating and they need to gather evidence. And so they need to get her id and bank account details, etc.

For a while they completely had both of us, and we believed everything they said up until they were asking for her details. She asked for a name and id number, and said she'd call them back. When she looked up the real Beijing police phone number and called them, they said they had no idea what she was talking about.

comment 6y ago · link · parent

No, your right to shed virus particles ends at the tip of my nose.

comment 6y ago · link · parent

In a lot of corporate environments, "self-hosted" is not an advantage if you're the one trying to set up something new. In order to self-host, you have to go through your corporate IT department to provision servers. This alone can take 6 or 12 months, and you still have to find someone to maintain the service.

And the kind of companies that value self-hosting will usually want this to be set up inside the company's internal network. So you'll have a bunch of firewall issues to get through, otherwise good luck getting your users to connect to some non-publicly-accessible server from their phones.

Other comments talk about how Slack nailed the UX for users to join a Slack workspace. But they also nailed the UX for getting a workspace set up in the first place.

(Well ok the whole idea of separate accounts per workspace thing is a bit of a mess, but they nailed everything else)

comment 6y ago · link · parent

Being a programmer won't save you from this particular style war. If there's a comment in your code with a sentence that begins with a double space, your code formatter probably won't flag or remove it in the same way that MS Word will. And it's likely shown in a monospace font, which makes it more noticeable.

How many spaces do people put after a full stop in comments in their code?

I go with one, but Vim's J and gq commands annoyingly insert two spaces when joining sentences from separate lines. I'd love it if someone could tell me how to fix this.

Edit: found it, the command is "set nojoinspaces"

comment 6y ago · link · parent

Agile is the worst form of software development methodology, second only to waterfall. It's still pretty shitty, though.

One of the reasons Agile (with a big A) is so successful is that its peddlers have convinced everyone that there are only two options: Agile and waterfall. When you're up against a strawman, it's easy to win. But it's absolutely a false dichotomy.

There's a quote in the article that I like:

> Find me an actual tech company that talks much about Agile, and I will be astounded.

In my experience, people at tech companies (at least the FAANGs) rarely talk about Agile, although they do talk about things like continuous integration/testing/deployment. They do not obsess over methodologies for how to move post-it notes around a whiteboard (Scrum vs Kanban) or agonize over how to word a user story narrative, or other parts of Agile Theatre.

People at some non-tech companies, especially those supposedly going through a "digital transformation", seem to have fully bought in to the crap that Certified Agile consultants are selling though.

So a superior alternative to both Agile and waterfall is what's in use at a lot of the big tech companies. For example, the engineering culture at Google, which relies on design docs and a very good set of developer tools and infrastructure. It's not perfect, but it's far, far superior to Agile.

And before anyone makes the argument that those non-tech companies are not doing "real Agile", but Google is, let's be linguistic descriptivists and accept that Googlers don't call their methodology "Agile", whereas the Scrum consultants at big corporates do.

comment 6y ago · link · parent

I'm a full-timer and I have to admit that I find it frustrating to work with part-time colleagues. Sometimes you need them, and they're not around until the next day. Not saying they shouldn't be allowed to do it, but there's definitely a cost.

I don't think there's anything special about eight hours a day. It's more about just having everyone keep the same hours, so that you can get a quick turnaround on questions/requests. So I think it'd work if companies built entire teams that were part-time, working on the same subset of the week.

comment 6y ago · link · parent

>> The actual fatality rate of Covid-19 is the region of 0.1%

> How can we be sure until we have widespread testing?

I think we can be sure that this is an incorrect number, with the data we have right now. At least 8448 people have died of COVID-19 in New York City, and if only 0.1% of the infected die, then we have 8,448,000 infected New Yorkers. This is the entire population of the city (including those who fled to other states) and would mean that we've reached herd immunity and can stop worrying about it now.

comment 6y ago · link · parent

How long would it take for natural selection to play its course though? Moths live for maybe a year, while a bird might live for a few decades.

And the soot from the industrial revolution would've covered the entire environment for a peppered moth, whereas many birds fly over incredibly large distances, which wind turbines will only cover a small fraction of.

comment 6y ago · link · parent

I've never really understood why people think this line of reasoning is valid. Prior to the panedemic, I used the bathrooms at the office nearly every day. The toilets are undoubtedly their property, but is it ok for them to put whatever kind of spyware they want in there too?

comment 6y ago · link · parent

Most don't, but Facebook does have its own equivalent of jQuery, lodash and angular. A few other very large tech companies are similar.

Most C++ shops don't have their own equivalent of Folly, they use Boost or Google's Abseil or something else.

comment 6y ago · link · parent

I assume your looking at the runs in GitHub actions?

The development process itself is fine. This takes place inside Facebook on their own infrastructure. The problem is their process to automatically sync their internal repo to GitHub and keep the public CI green is broken.

comment 6y ago · link · parent

I would argue that any company with enough JavaScript developers will eventually develop JS libraries too. There's nothing that limits this to just C++. Facebook has folly but also react and a whole set of tools around it.

comment 6y ago · link · parent

I became a manager. This didn't, in and of itself, make me rediscover the joy of programming. But it did free up the mental energy I needed to program outside of work, for fun.

As a 9-5 programmer, I often found myself too mentally exhausted to do any coding outside of work. This meant that over the years, programming became just a job, and nothing more.

But once I changed career tracks, I found that I had the energy to write code after work. It actually felt like taking a break. I went from "I need to get away from the computer and go talk to people" to "I need to get away from people and just write code". And when I was writing code on my own terms, without any project managers or other people telling me what to do, it became fun again.

I'm not necessarily saying you should move into management too. I'm lucky that I enjoy the people side of the job, unlike a lot of programmers. But I think that if you put yourself in the same situation as you were in when you first discovered the joy of programming, you'll be able to rediscover it.

comment 6y ago · link · parent

It looks like you need to provide a phone number to use this new service, so I guess it's just another WhatsApp clone, with nostalgic branding.

It would be awesome to be able to use your old icq number and hear the "uh oh" notification sound - nostalgia is about the whole experience not just brands.

comment 6y ago · link · parent

According to https://wiki.archlinux.org/index.php/Firefox#Wayland, if you want to see whether you're using the Wayland version of Firefox, go to about:support and look next to "Window Protocol". Wayland can be enabled at runtime using an environment variable: `MOZ_ENABLE_WAYLAND=1 firefox`.

I just updated to Firefox 75 and it's still using x11. If I opt in to using Wayland, it works, but annoyingly I can't detach a tab by dragging it off of the window. So it looks like Wayland support is not quite there yet.

1
131415
19