Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
sjroot
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
8 ms
·
31.
▲
by
sjroot
6y ago
Nice, good luck! My advice would be to offer something very opinionated to limit the chance that something is rolled out incorrectly. That and preventing lock-in are two big requirements IMO. I’m doing something somewhat similar, happy to
32.
▲
by
sjroot
6y ago
> That’s what Oauth is though. Splitting hairs but no, Oauth has nothing to do with authentication. An introductory article like this should address the distinction between authentication and authorization in the first section IMO.
33.
▲
by
sjroot
6y ago
The implicit grant returns an access token directly upon authorization being granted. By removing the additional network request, it can make your system vulnerable via manipulation of redirect URLs. if you’re implementing an OAuth 2 server
34.
▲
by
sjroot
6y ago
Are you implementing OAuth 2 or interested in learning more? I would highly recommend combing through the OAuth 2.1 spec [1] as it incorporates the “best practices” that were added to 2.0 through additional RFCs. [1] https://to
35.
▲
by
sjroot
6y ago
Correct. Sorry that wasn’t clear!
36.
▲
by
sjroot
6y ago
For context, the Microsoft Store platform takes a 5% fee compared to Apple’s 30%. https://blogs.windows.com/windowsdeveloper/2018/05/07/a-new-... This isn’t super surprising. Microsoft is desperate to ge
37.
▲
by
sjroot
6y ago
Agreed! In my situation, lots of developers were porting Java APIs to go. They essentially had to be rewritten twice: 1st way: the way our Java devs thought Go was “supposed” to be written 2nd way: how Go should probably actually be written
38.
▲
by
sjroot
6y ago
Ah, that would make sense. But then I'd have to dip into my jar of opinions on gRPC + Protobufs... TLDR: Before going down that route, you should make sure you really REALLY need them. Someone learning Go for the first time probabl
39.
▲
by
sjroot
6y ago
I typically use strings for enum values as well.
40.
▲
by
sjroot
6y ago
First off, I should clarify that I'd actually love to see Go add support for proper enums, as I've certainly found it lacking. My biggest issues would be maintainability and, as you mentioned, using global maps. If your enum itsel
41.
▲
by
sjroot
6y ago
If no one has by EOD today, I will! Good idea. :)
42.
▲
by
sjroot
6y ago
Please try to contribute something actually relevant to the post.
43.
▲
by
sjroot
6y ago
Warning: opinions inbound I clicked one part (enums) and noticed a pretty glaring issue. The way you are doing enums is really _not_ conventional Go code and probably not something I would allow past a PR review. I’m saying this as someone
44.
▲
by
sjroot
6y ago
If you deliver email to a customer and you notice that it bounces, any account security flows requiring access to that email should be disabled. Additionally, you should never show the full email address or phone number that is being used f
45.
▲
by
sjroot
6y ago
Sounds like a great outcome for the people who are relying on that work for income right now.
46.
▲
by
sjroot
6y ago
DDG, Yahoo, Bing, are all valid alternatives. Why does Google get screwed after the enormous investment they made (with time and money) to index pages on the internet?
47.
▲
by
sjroot
6y ago
Bingo. Every device that I can think of allows you to choose a default search engine. It would be very easy for me to use something other than Google; they have no anticompetitive hold on how I explore the Internet and discover new services
48.
▲
by
sjroot
6y ago
Apple may be certainly far from perfect when it comes to favoring their own software, but to say the company as a whole is aggressively "anti-user" is just hogwash. Updates they have made to Safari, the App Store, and iOS generall
49.
▲
by
sjroot
6y ago
That’s the same question I had when I read your comment!
50.
▲
by
sjroot
6y ago
No....no they shouldn't. I'd rather that responsibility fall on parents and teachers.
51.
▲
by
sjroot
6y ago
> Ah, so Facebook has no moral obligation to control posts on whether or not they are true - just on whether or not they get paid to show them? To sum it up like that reduces both the enormity and complexity of the problem they are faced
52.
▲
by
sjroot
6y ago
That’s their entire business model, so yes it is their responsibility. Their obligation is to advertisers that want to target very specific (or very broad) groups of people. If you don’t like that then close your Facebook account.
53.
▲
by
sjroot
6y ago
This isn't exclusive to older people, either. Regardless, it will be even more dangerous when these people reproduce and raise their children to believe this stuff.
54.
▲
by
sjroot
6y ago
Bingo. It is not Facebook's responsibility to determine what is fact or fiction, and it is a bit terrifying that we increasingly rely on them (and other companies in this space) to do so. People need to understand how to question, inve
55.
▲
by
sjroot
6y ago
This language is not exclusive to Delaware corporations, or even corporations. It is standard practice when incorporating any kind of business entity. Source: if you look at the articles of incorporation for my solely-owned and operated LLC
56.
▲
by
sjroot
6y ago
I can’t fathom how people actually use Quora when answers are often (thinly-veiled) advertisements.
57.
▲
by
sjroot
6y ago
I think most people get enough benefit out of YouTube to warrant the fee. But advertisements allow the platform to be available to anyone with an internet connection. Fair trade off I’d say.
58.
▲
by
sjroot
6y ago
Most likely. I understand the appeal of these types of applications but it really just comes off as entitled IMO. Just watch the ads to support the content creators you care about - it isn’t that hard. I imagine this will be an unpopular op
59.
▲
by
sjroot
6y ago
Or Apollo if you are on iOS.
60.
▲
by
sjroot
6y ago
I was a bit startled by the price (starts at $99/mo) but man, Hasura has been an absolute joy to work with. I'd highly recommend exploring the open source version on Heroku if you haven't tried it before. Congratulations to H
More ›