Better HN
topnewbestaskshowjobs
Log inSign up

tensor

7,643 karma · joined Jul 4, 2009 (17y ago) · 2,177 submissions

Submissions

comment 6y ago · link · parent

There is almost no one that is worth tens of thousands per hour. Most "big companies" overpay for people with fancy titles that produce a lot of noise but not a lot of output. Small companies have no choice but to be highly efficient and that's why they have lower levels of pay inequality.

Chances are that 95% of people is what is bringing in 95% of the value of your company.

1172.

How to help your UX team design for an international audience(ux.shopify.com ↗)

2 points · by tensor · 6y ago · discuss

comment 6y ago · link · parent

The example this article uses doesn't help drive the point. Ioannidis was heard, and the majority of the attacks on him came from outside the scientific community. Within the community science played out how it's supposed to. The paper was looked at critically and flaws in it's data uncovered and thus correctly discredited.

Meanwhile, his hypothesis is still held by many prominent figures outside of the scientific community. So it's very hard to claim this is an example of valid ideas being at all squashed.

Worse, in this case we have hard evidence of some pretty catastrophic results from this virus. So trying to argue that the overall outcome isn't going to be so bad is proven false by counter example. We already have situations that are bad enough to warrant extreme counter measures.

comment 6y ago · link · parent

It's certainly a sentiment that is somewhat common. At the extreme end you have people arguing that you should optimize developer efficiency even over shipping working bug free software, which always blows my mind when I hear it. And I don't mean accidentally doing it, I mean knowingly shipping something that doesn't work.

comment 6y ago · link · parent

The ultra wealthy in that time never looked after a family as kids or adults. They had servants who did. That was not and is not "normal", it's a weird edge case.

comment 6y ago · link · parent

To be devils advocate, I've seen many "anit-superheros" of maintainability do months of work and not end up with an objectively "better" body of code. Often it's just different, and sometimes slower hard harder to extend due to premature abstraction.

There isn't an easy answer here, but incentivizing speed of iteration (aka shipping) has several benefits, both to getting value to customers as well as to architecture and maintainability of the code.

comment 6y ago · link · parent

The old media companies business model collapsed (newspapers). So they are essentially turning the old media companies into public companies, but instead of using tax dollars they are arbitrarily punishing Google and Facebook because they have a lot of money.

comment 6y ago · link · parent

That's definitely not true. WeChat has a bunch of ecommerce stuff built in among other features. You can pay for stuff on WeChat and there are stores. It even has translation built in to facilitate buying and selling between people from different countries.

I think there are also apps and other stuff there too. It's more like a chat app that became an ecommerce and mini-app platform.

comment 6y ago · link · parent

I'm surprised "pricing transparency" isn't included here. A vender that requires you to call a salesperson and do the sort of negotiation on price that is mentioned here is always going to take advantage of you.

My policy is: no pricing on the website, requirement to call a salesperson to talk price? No buy. I'm even willing to pay more to a company with transparent pricing that doesn't require negotiation. It gives me predictability, rather than have to worry that once they've "locked me in" they're going to jack the price and crank all the gears.

comment 6y ago · link · parent

What interference by the Chinese government?

comment 6y ago · link · parent

That's a relief, the post above made it sound that way.

comment 6y ago · link · parent

I wouldn't trust Oracle. Is this going to be like VirtualBox which is "free" and "open source" except for the extension pack on the very same page that you can one click download?

If anyone isn't aware, they track the IP address of that extension and if they can trace it back to your company they then come calling for money. It's basically a sort of litigation honey pot. Sure, it's all legal, but it's such a nasty dark pattern and so easy of a mistake to make for end users that it should be illegal.

comment 6y ago · link · parent

I don't deal in speculation and rumours sorry. The 2-3% assuming you have medical treatment has held true. The 10+% hospitalization has held true.

The lack of response from the US is in no way due to China's reporting, it's due to the US propaganda and incompetence.

comment 6y ago · link · parent

China's reporting in no way made it seem less urgent. The reported fatality rate hasn't significantly changed from their reports.

comment 6y ago · link · parent

Yes, but you need to model it in the database. You don't even need to use the built in role system, you can use a user id that you pass into your database session.

Basically, create three tables: user, user_role, role_permission. Each user can have one or more role, and each role has one or more permissions. Permissions could be things like "view_admin_panel" or even granular like "view_project_with_id_5".

Then, you can create a row level security policy that does the right look up in these tables. I've not run this in a production system yet, but did successfully build out a proof of concept that worked. Performance seemed reasonable.

comment 6y ago · link · parent

You can't insert/update/delete data in views in all cases, and they can make debugging performance more challenging, but otherwise nothing. I think they are underused.

I rarely see people using views at all, let alone using them as a test aid (composing big queries from smaller more easily tested views), or using them to define interfaces to an internal data model.

comment 6y ago · link · parent

We'll have to agree to disagree. Writing a manual security layer that doesn't understand your data model is one of the worst things you can do. Multiple databases? Now you're also manually doing integrity and probably manually doing joins. That's a ton of extra things to go wrong.

As an example, consider a query that is fairly complex. How exactly are you going to make resuable security tests for it? How do you know that an error in the query won't expose unexpected data, or that a modification to the query that introduces and error exposes unexpected data? Your security now has to be customized to every query like this.

The alternative case is that you only use super simple queries so that you can write resuable security checks. But now I'm going to ask why you are using a relational database in the first place? Because almost certainly you're doing manual joins in this scenario and incurring huge performance hits.

If you are using a relational database to its full extent, there is nothing as secure as built in row level security. You wouldn't dream of doing integrity checks outside the database, why do security?

comment 6y ago · link · parent

Two points, if your DB schema doesn't model your domain correctly you're doing it wrong to start with. And two, views are typically used to decouple the raw database tables from whatever you want to expose to others, be those other developers or in this case external API users.

Modelling databases this way has fallen out of favour for various reasons, but it becomes extremely useful and relevant again with systems like Hasura.

comment 6y ago · link · parent

Security is done via row level access control, a system that is vastly better then the ad-hoc systems people reinvent outside the database for every application.

You also absolutely take the time to think through what should and should not be exposed to end users. Either you creates a namespace for your API with views that expose only the necessary data, or with something like Postgraphile you can specify which functionality, columns, and tables are hidden. Personally I prefer the view approach as it decouples your API from the database implementation.

comment 6y ago · link · parent

But there is a choice, and as a Canadian why on earth would you expect me to work for your reserve supply instead of mine? The US needs a reality check.

comment 6y ago · link · parent

The political propaganda in your post, e.g. "radical left", "leftist fanaticism," makes it lose all meaning. Sadly I didn't see a flag button. I would hope that posts like yours are not welcome in a technical discussion.

comment 6y ago · link · parent

I'll take China's statistics (which I've not seen to be misleading) over the US's complete censoring of any information about the outbreak, and the CDC preventing people from getting testing.

At this point, all flights from the US should be terminated. Your government is a danger to your own country and to the world.

comment 6y ago · link · parent

There may not be a "be nice" rule in life, but there are such rules in communities. Especially in professional civilized ones.

comment 6y ago · link · parent

Startup time isn't what is holding the language back. In my opinion it's:

1. Tooling. You end up spending way more time getting your tooling setup than it should be. 2. Difficulty in learning. 3. Clear best practices and frameworks. The philosophy of composing libraries is extremely powerful, but to gain broader adoption you still need straight forward frameworks and opinionated best practices.

The last point has many unintuitive consequences. Clojure tends to attract people who enjoy doing new things, or excelling in their craft. But mass adoption also means catering to people who need to do "boring" things where people just want to get their job done. For boring code, which is the reality for many developers, they just want a clear best practice to get the stuff done.

This could be a clear standard library or framework for a task, a clear architectural pattern, and it certainly means easy to access code snippets. There have been some attempts at these things, e.g. Luminous for the web, but the community hasn't rallied around them with enough weight to make newcomers comfortable.

So when faced with choosing: a testing library, any number of libraries compose into a web service, any number of approaches to client side, then in the end still having 100 equally good ways to architect a given piece of code that requires thinking mathematically, well, it's daunting. Especially when you are new to the language and just want to get your boring CRUD app working.

Maybe this is best summed up as saying that Clojure caters to the creative, but to gain widespread adoption it also needs to cater to those stuck writing boring code and just want to be done with it as fast as possible.

comment 6y ago · link · parent

Hasura and Postgraphile both use row level security for access restriction. Anyone can still execute a query, but they won't get back data they don't have access to.

comment 6y ago · link · parent

Hasura is more than just GraphQL. It maps GraphQL queries to single SQL statements. So you can think of it more as an ORM, but rather than mapping objects to the database it maps GraphQL statements.

The advantage of this over a traditional ORM is that by having the entire query up front it can be smarter about how it does the translation.

Regarding REST, this is very very different. With REST, you map a single "query," the REST endpoint, to an SQL statement (ideally one). But if you want some other query, you're out of luck. Either you make a new REST endpoint, or you manually call several endpoints and compose the data.

There are some dangers to the GraphQL to SQL approach, namely it's harder to guarantee performance when the client can execute arbitrary queries.

Now, GraphQL by itself, I agree it doesn't solve the hardest problems: getting the data for the query and doing it security. But something like Hasura does address those points and I do think it is an advancement over previous technologies.

comment 6y ago · link · parent

The problem with arguments by security experts is that they ignore the reality of ergonomics and convenience. If you're in security and you ignore these, you're being naive and likely making dangerous recommendations.

Why do I make this claim? Because if you were realistic, you'd acknowledge that people will inevitably choose the easy route over the secure route. The path to genuine improvements to common place security has to include a focus on methods that are ergonomic and convenient.

Just look at the outdated password complexity rules as a perfect example of this. Sure, in some ideal world where everyone did the hard thing this would be secure. In reality these rules just drove people to write their passwords down on sticky notes under their keyboard.

Signal in the current form is not and will never be a replacement for email due to UX. It's a great messaging platform, but it doesn't solve the use cases that email does.

comment 6y ago · link · parent

> Clearly they haven’t, and given how easy it is to appease developers, this is particularly damning.

In my experience, developers are probably among the hardest to appease. It's probably a tie between developers and sales. Both groups are primarily money driven and keen to negotiate, but developers also feel entitled to influence or control other aspects of the business based on their personal idea of morality (e.g. developers are not inclusive of the opinions of other groups of employees).

comment 6y ago · link · parent

It's definitely a balance. I should have phrased it as "make sure the product satisfies your users needs" rather than their wants. And this isn't to say you should add a thousand features, but I do believe it's important that tech leads goals line up to users, not only to the technical excellence of the code. You can't make good decisions on technical improvements or debt reduction without balancing users needs. It's easy to build a straw man example that is on the extreme end to demonstrate this, so I won't do that. The day-to-day is more nuanced.

comment 6y ago · link · parent

I would say you need to stand up for your users not your product. A gorgeous code base that doesn't do what your users want doesn't help anyone.
1
394041
73