7,643 karma · joined Jul 4, 2009 (17y ago) · 2,177 submissions
comment 6y ago · link · parent
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
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
comment 6y ago · link · parent
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
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
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
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
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
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
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
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
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
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
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
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
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
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