Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
nvivo
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
24 ms
·
61.
▲
by
nvivo
11y ago
Just being picky, but because Edge was released after all other browsers, technically there isn't any other "more modern browser". There are just the other browsers.
62.
▲
by
nvivo
11y ago
About the points you make on your post, once async/await is implemented in browsers, you will be able to await run() directly, causing the exception to be thrown in the console. The fact that you call a method that returns a promise
63.
▲
by
nvivo
11y ago
Promises and observables are related but operate differently, just as a single string relates to an array. Promises represent a single operation, there is nothing wrong with the abstraction itself. As for the errors, I see what you mean. B
64.
▲
by
nvivo
11y ago
This requires the first method running in the stack to handle the failed promise and rethrow as an exception. It can be done today manually. But with async/await this will be done automatically.
65.
▲
by
nvivo
11y ago
Yes. Also, you can read and debug more easily.
66.
▲
by
nvivo
11y ago
Almost. In simple terms: // this var x = await promise; callSomething(x); // translates as promise.then(x => callSomething(x)); Under the hood, the entire "async" function is turned into a st
67.
▲
by
nvivo
11y ago
What do you mean by "if you want any other async model you can't use it"? I know you can write whatever code you want, but promises are supposed to be the standard way of signaling completion of asynchronous operations in j
68.
▲
by
nvivo
11y ago
> You need to wrap in try/catch if you want to handle the errors. Of course, the same way you need to add a second callback to a promise handler if you want to handle errors. There is no difference, really. You're just changing
69.
▲
by
nvivo
11y ago
To be fair, all browsers are still missing ES6 features and all of them have newer stuff being implemented. As for the try catch, you don't NEED to wrap. The sample just shows you can. You can't do: try { promise.then(()
70.
▲
by
nvivo
11y ago
The parent exaggerated a little. async/await does use promises. In fact, it's built around them. All async functions return promises, and all await expressions await on promises. Currently on babel implementation with facebooks&#x
71.
▲
by
nvivo
11y ago
Agreed. Basically, he could have gone with almost every modern language there and the result would be the same.
72.
▲
by
nvivo
11y ago
Unpaid internship is illegal. Well, at least in Brazil it is.
73.
▲
by
nvivo
11y ago
That's exactly the point. Enums are just enumerations, they're not classes. It makes little sense in my opinion to add constructors and variables to enums. You can do exactly what java calls enums with classes in C#, which in my v
74.
▲
by
nvivo
11y ago
That's funny. Enums are one of the things I believe C# got better than java.
75.
▲
by
nvivo
11y ago
No, if you say CST you specifically mean China Standard Time. Most people in the world would agree.
76.
▲
by
nvivo
11y ago
The reason for Country/City is because the timezone name is a global reference. It may be written in english, but everybody uses. Things like "pacific", "central" and "standard" mean very different thin
77.
▲
by
nvivo
11y ago
Central to where? The other 96% of the world that are not in the US don't agree with your very specific notion of "central".
78.
▲
by
nvivo
11y ago
Storing the offset won't work for future dates due to daylight savings changes.
79.
▲
by
nvivo
11y ago
How do you stop overanalysing things if this problem itself requires analyzing which things you're overanalysing and which ones really benefit from overthiking? It's an honest question. I know I'm doing it right now and I can
80.
▲
by
nvivo
12y ago
There is a fact that part of the world doesn't believe the Wright Brothers invented it in the first place. In Brazil, Santos Dumont holds this title. French people also seem to give credit to him. Other countries also have their prefer
81.
▲
by
nvivo
12y ago
Having used a lot of sql server management studio, I got used it this kind of UI where the focus is writing and executing sql. MySql has Devart Mysql Studio that is similar and got me really productive with mysql. Is there anything of simil
82.
▲
by
nvivo
12y ago
I think this is more of an impression because Angular 2.0 is embracing many other things that have nothing to do with Angular, like ES6, web components, typescript. I notice that with people trying to learn TypeScript, and see that their st
83.
▲
by
nvivo
12y ago
> The main mistake, in my opinion, that Angular 2.0 is making is removing two-way data binding They talked about it in the ng-conf available on youtube. They are not removing 2-way databinding from Angular, they are just changing the way
84.
▲
by
nvivo
12y ago
I didn't know that. Anyway, this may be the case of Stack Exchange, but the website I had problems with stated the things I said in their agreement.
85.
▲
by
nvivo
12y ago
I had this problem with forums before. As I requested my content to be removed from a site, my account was suspended and they actually reposted some stuff I had deleted, and blocked my account. I lost the right to my content, even though my
86.
▲
by
nvivo
12y ago
Seems pretty clear to me. They will try to provide updates for the product faster and with less or no required user interaction, pretty much like any of their competitors are doing currently. But I'm 100% sure there is nothing in this
87.
▲
by
nvivo
12y ago
I've had reboots on amazon with linux, and google cloud was down last night and it's Linux. On amazon my entire region was out for almost an entire day once. That's the cloud, you will have downtime anywhere.
88.
▲
by
nvivo
12y ago
As a 12 year .NET developer and linux user I can't express how much I disagree with you. First because saying that nowadays windows apps is more important than asp.net is crazy talk. Most development is web nowadays and will just incre
89.
▲
by
nvivo
12y ago
The compilers for .net were always free and were in every installation of the framework since the first version on 2003. And there were open source IDEs for .NET since the beginning.
90.
▲
by
nvivo
12y ago
How much has google really open sourced? Think about it. Search engine? Gmail? Ad engine? Maps? Drive? Youtube? Nothing! Google has a lot of development tools open sourced, almost no products. Android is one for a change, but with Google P
More ›