Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
slackingoff2017
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
7 ms
·
61.
▲
by
slackingoff2017
9y ago
Spring MVC is probably what you want then. Really though, you should invest some time in learning typescript and react. These days most apps are just API calls on the back end and you deal with templating, forms, and other bs in the fronten
62.
▲
by
slackingoff2017
9y ago
Java and Go are much harder to learn. Much more complex from a language perspective, more complicated build process, bigger standard libraries. This leads to a lot of "first languages" being the latter and a perpetual glut of rece
63.
▲
by
slackingoff2017
9y ago
This is true even with most SV darlings. Netflix, Google, Uber, and Amazon use tons of Java. Probably the majority of their systems. Microsoft is an exception because they built C# which is basically a more modern but less popular variant o
64.
▲
by
slackingoff2017
9y ago
Google has a huge amount of code written in Java, I would say the majority of their systems. Just look at their open sourced projects and job listings. Over 50% Java easily.
65.
▲
by
slackingoff2017
9y ago
Take a look a vert.x and Dropwizard. Spring Boot can handle maybe 10k requests per second, but Dropwizard is around 200k and vert.x maybe a million. If you're only using them for a REST API they offer similar features. Spring Boot supp
66.
▲
by
slackingoff2017
9y ago
Eh, vanilla Java or Go is at least an order of magnitude faster than those other languages without messing with anything. You can mess around with the JVM and interfacing to native code but it's rarely needed because it's already
67.
▲
by
slackingoff2017
9y ago
True, horizontal scaling will always save you no matter how slow the front end is. Cost becomes significant at a certain level too though. For example, Google estimates each search query goes to over a thousand machines. If you need 100x 10
68.
▲
by
slackingoff2017
9y ago
I'm talking about API calls where you make a few database queries, not local or batched. Java/Go with pretty much any database can manage about 50,000 individual queries+REST calls a second.
69.
▲
by
slackingoff2017
9y ago
This is not true. Java and Golang can use asynchronous IO and maintain thousands of concurrent connections. It's just another case where slow languages are... Slow
70.
▲
by
slackingoff2017
9y ago
This just isn't true on any decently designed system I've seen. Practically any database can manage 5k complex-ish queries per second. For the common simple queries closer to 50k. Good luck getting more than 100 calls per second o
71.
▲
by
slackingoff2017
9y ago
And most of those other companies like Facebook are writing endless hacks, VM's, or entire languages to fix the slow runtime :)
72.
▲
by
slackingoff2017
9y ago
Why does anyone write web apps in Python? PHP? Ruby? Modern Java and Go are so much faster than the alternatives that it's stupid to consider anything else if performance is important. Golang and Java can manage over a half million HTT
73.
▲
by
slackingoff2017
9y ago
Async avoids callbacks by restoring your calling context under the hood just like the compiler does for normal function calls and callbacks. It just does it in a way thats clearer IMO
74.
▲
by
slackingoff2017
9y ago
Lol. I'm sure random people walk around your house all the time unless you're in the middle of nowhere. What's stopping a random guy from walking around taking pictures through all the windows when they see you leave? Nothing
75.
▲
by
slackingoff2017
9y ago
Reminds me of this https://www.theawl.com/2015/06/a-complete-taxonomy-of-intern...
76.
▲
by
slackingoff2017
9y ago
What RX gives you is a smooth flow to the last callback. Async is admittedly less flexible but the only way I know of to trigger asynchronous flow without a callback. I worked in the C# world for a while and I'm still in envy of how cl
77.
▲
by
slackingoff2017
9y ago
let val = await Thing(); Vs Observable.of(thing).subsribe((res)=>{call back} For all(most) cases where you only need to hear back once
78.
▲
by
slackingoff2017
9y ago
Different racial and cultural groups live in different places because people self-select for it. If you're going to build something that breaks down racial barriers you'll need to actively counter against existing bias IMO. Less p
79.
▲
by
slackingoff2017
9y ago
RX is a hilarious pattern IMO. 90% of the usage I've seen would be simpler and less code just doing things the old fashioned way. The vast majority of observer pattern use cases are solved a lot more clearly by using async
80.
▲
by
slackingoff2017
9y ago
Devil's advocate here, but how are skin color and body size any different from eye color or height preference? The only way to do it truly fairly is to disallow any physical characteristics. By only blocking some you just change the cr
81.
▲
by
slackingoff2017
9y ago
Two problems. The name is a nightmare for any large company. Countless people have brought this up and the dev team is apparently deaf to the issue. Idiots. The second major issue is technical. Building something like Spanner requires a ver
82.
▲
by
slackingoff2017
9y ago
No proof, but I have a feeling its more of a way around regulations for most tech companies. For example, in hiring, IQ tests are known to have predictive value but they're basically banned because they discriminate against women and m
83.
▲
by
slackingoff2017
9y ago
Same here. Zenni frames are cheap, and the lenses are pretty good. But the frames are built from cheap plastic, and so are the linkages, they just plate them with metallic coating. I've had the linkages break on 10+ pairs from fairly i
84.
▲
by
slackingoff2017
9y ago
I have been involved in using a system built like this. All I can say is... It feels like you're building a database out of an event stream. A shitty one at that... Basically the write log part, only without a way to apply that state r
85.
▲
by
slackingoff2017
9y ago
The product zuck runs is sleazy by nature, and he's made a lot of statements that tell me he's either naive or out of touch with the average persons reality. I think Trump is a twit but I would rather have someone that seems groun
86.
▲
by
slackingoff2017
9y ago
My biggest problem with Angular2 is how restrictive an obtuse the framework can be at times. I've ranted about it in other comments so I'll save space and just say that Angular makes easy things hard and difficult things nearly im
87.
▲
by
slackingoff2017
9y ago
The big players are increasingly doing it already. LinkedIn and Facebook only have very limited spidering. What Google has liked to do recently is take all your data and replace your service. Search for recipes, jobs, music, or weather for
88.
▲
by
slackingoff2017
9y ago
WASM is going to kill spidering. We can't leave HTML if we want google to be able to read the page. I think Google is very afraid of this. Hence their push for Angular/Polymer/AMP. If they can build a good enough platform in
89.
▲
by
slackingoff2017
9y ago
+1 for vert.x it's based on the venerable Netty project and has extremely high performance, about as close to C as you can get besides maybe Golang Also DropWizard is pretty quick and offers a good combo of features. Spring is the most
90.
▲
by
slackingoff2017
9y ago
If none of the data is visible server side why is this a service in the first place? Everything is a bunch of js running in-browser. Just sell it like JetBrains. Sure home users will pirate it but with IDE's the money is made with comp
More ›