Better HN
topnewbestaskshowjobs
Log inSign up

corecoder

743 karma · joined Apr 6, 2016 (10y ago) · 226 submissions

Submissions

comment 10y ago · link · parent

Good regulations do not need enforcement.

Example:

* if your company lets someone steal your users' data, your users can sue you and get lots of $$$;

* if you are the CEO of a company and you let someone steal your users' data, when your users sue your company, you have to pay X%.

Edit: formatting

comment 10y ago · link · parent

> and they have rights to sell what they want

No, they don't. They cannot sell a device that harms you or your neighbours, for instance. More to the point, they cannot sell a device that prevents competition.

comment 10y ago · link · parent

From this perspective, the worst things I meet are setting up or tuning complex CI pipelines and developing infrastructure automation: a cycle can easily last more than half an hour and there doesn't seem to be an easy way to speed up things, really.

comment 10y ago · link · parent

For a professional service where I can give the number of my employer, I might, but I'd be reluctant, as a few companies will start calling every day in an attempt to sell you the service.

comment 10y ago · link · parent

What do you mean, the salaries were slashed? How is that even possible?

Anyway, just run.

comment 10y ago · link · parent

You can favorite a comment and keep track of it without spamming.

comment 10y ago · link · parent

A one or two orders of magnitude greater speed, lots of configurations for caching policies, the ability to split a request in several subrequests (ESI) and some other nice things.

comment 10y ago · link · parent

> hold up against natural disasters

That may not be enough, though[0].

[0] https://en.wikipedia.org/wiki/Vajont_Dam

comment 10y ago · link · parent

That's true, mine was an oversimplification and the numbers would require more analysis; it would be a worthwhile analysis nonetheless, IMO.

comment 10y ago · link · parent

What about running these statistics (correlating decisions with day of week, hour of day, etc.) for each judge, and then just tell them: see, in the past year you acted in this not very bright way; maybe you should think about the way you do your job? And, by the way, we'll keep running these statistics on how you judge.

Being made aware of our own biases is often the most effective way to make the situation better.

comment 10y ago · link · parent

> If they show signs of empathy, that increases our faith that they will not seek to actively harm us.

True; unfortunately, this hampers empathetic people who have trouble expressing empathy and make life very nice for unempathetic people who are good at feigning empathy.

comment 10y ago · link · parent

Two great articles from TDWTF:

* Programming Sucks! Or at least, it ought to! [0]

* The Oracle Effect [1]

EDIT - formatting again

[0] http://thedailywtf.com/articles/Programming-Sucks!-Or-At-Lea...

[1] http://thedailywtf.com/articles/the-oracle-effect

comment 10y ago · link · parent

Happens to me all the time with mobile; the flag link is a bit too easy to click by mistake.

comment 10y ago · link · parent

Now I'm a little scared.

A few months ago there was a post [0] by antirez about how dangerous it is to leave a redis instance open to the world, in that an attacker could, for instance, authorize an SSH key on your machine and gain remote connectivity.

While the average workstation is not usually reachable from the outside network, you could probably combine some variant of that attack (the first thing that comes to mind: overwrite .bash_profile) with the attack of this article, causing a lot of fun.

[0] http://antirez.com/news/96

comment 10y ago · link · parent

Second that. The nicest thing I've seen is at a large company, where you had to go through a very long and time consuming bureaucratic process in order to obtain the password (companyname123, identical for everyone).

comment 10y ago · link · parent

> Should Tesla be worried that the United States Federal Government might deem Nevada's special tax deal invalid?

Hell yes, they better have a plan should that happen.

comment 10y ago · link · parent

What's wrong with Kantianism?

comment 10y ago · link · parent

I'm not talking of the proprietary license, but of the exchange between buyer and seller. I've never talked to an Oracle salesperson, but I doubt that they'd say that the software isn't guaranteed to run and/or be useful.

The same goes for FOSS when a consulting company is involved: they say that the software will work; my point is that that's the most likely way in which a large enterprise can run FOSS.

There are other ways, of course: the decision can come from a high enough manager (or even from the CEO or CTO) who's willing to take the risk, but, indeed, they are taking a risk.

comment 10y ago · link · parent

Paid for software usually comes in two flavours: turnkey or with consultants. In both cases the promise is that the software will in the end run, and those who need to will actually be able to use it. Also, that the software does something that should be useful to you.

Open source software comes "AS IS", WITHOUT WARRANTY OF ANY KIND. So, who is promising that the software will run, that people will be able to use it and that it does something actually useful to the large enterprise?

If the enterprise has never used that software, long time employees have usually no professional experience with it, so it is risky have them install and run it.

In my limited experience, adoption of open source software by large enterprises comes most of the times through consultants, hired not to install the software but to solve a business problem. The consultants promise to solve the problem with the software, and that the software will run etc.

comment 10y ago · link · parent

I don't think javascript will ever be "fixed": it is as it is, if you change how hoisting works, you break everything. But:

1. You can solve that already in ES6, by returning fn from a function, also avoiding the global variable;

2. Your ES3 linter should warn you about the redefined variable.

comment 10y ago · link · parent

I really meant ES6 modules, I said babel because it's what made ES6 features actually usable in production.

comment 10y ago · link · parent

Yes, ES6 modules. Before that I've used browserify, AMD/RequireJS and half assed in-house solutions.

comment 10y ago · link · parent

Before Babel, I often used to ask about code organization/modularization, mostly to filter out candidates who haven't been on a big project and have only copied and pasted jQuery snippets together; today I'd ask if you use Babel modules and why/why not. As other people have said, closures will surely come out. A favorite of mine is array functions: map, forEach, filter. Also, promises, callbacks, workers. Finally, xhr throttling.

comment 10y ago · link · parent

Hi,

You don't mention the industry you're in right now, so it's hard to make comparisons.

Perhaps even more importantly, you didn't say what you do.

I think these questions are relevant, because in my experience satisfaction in one's work comes more from what one actually does than from the industry he/she is in.

Boring industries have some very interesting problems, so it is not rare to find a stimulating job in any industry.

How different would your work be at B?

comment 10y ago · link · parent

Also: they registered a domain to wrap a YouTube video?

146.

Ask HN: How do you follow long threads?

4 points · by corecoder · 10y ago · 1 comment

comment 10y ago · link · parent

My first biggish js app was built around jQuery custom events. It started out elegant and simple, I was very happy. It then quickly became a nightmare, a very non-benign spaghetti monster.
1
45678