Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
spricket
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
15 ms
·
91.
▲
by
spricket
8y ago
Google does an endless dance around how they should handle the ad blocking problem. Don't be fooled by this, the solution has been in their face for years. Most websites are reached from Google search. If Google de-ranked slow, ad fill
92.
▲
by
spricket
8y ago
Lombok is awesome. There's still some painful stuff in Java but Lombok gets rid of most of it. I agree with other comments about using Kotlin instead, but I've had a ton of resistance to switching languages since all our devs know
93.
▲
by
spricket
8y ago
Yeah, the API change was back in 2016, somewhat close to the timing of Facebook's deployment of Onavo. The conspiracy theorist in me says Google might have got a tip about such behavior years ahead of the public revelation. SV companie
94.
▲
by
spricket
8y ago
According to articles I saw in the last few hours, their "certificates" have been pulled. So this has likely already happened. Also, Google updated API certificate behavior to only trust built in roots by default. https:/&
95.
▲
by
spricket
8y ago
Certificate pinning. And perhaps warning your users about potential baddies if someone tries to change it. Elsewhere in the article it mentions people were paid to screenshot their Amazon order history. Why would they do that if they could
96.
▲
by
spricket
8y ago
This was true until a few years ago. Java 11 has a new ultra-low-pause GC that's almost entirely multi-threaded and mostly predictable. There's plenty of semi-realistic benchmarks out there. I like TechEmpower the best since they
97.
▲
by
spricket
8y ago
I converted the authors c version of the code to Java and ran it through JMH, on my machine it runs about 30% slower. (This is before he added the metaprogramming that essentially precalculates some of the matrices at compile-time). That&#x
98.
▲
by
spricket
8y ago
I think this is a false dichotomy. You can make almost any language fast by writing very non-idiomatic code. The advantage of something like Java is that you can write readable, "normal" code that runs at nearly the speed of optim
99.
▲
by
spricket
8y ago
From what I've heard, the Yarn codebase is much cleaner than NPM. If anything, I think it would make more sense to migrate NPM over to yarn
100.
▲
by
spricket
8y ago
This is a sales piece for Okta. And I disagree with them. OpenId Connect and OAuth work great and are reasonably designed. The documentation is dense but you'll do fine if you read some of the popular blogs about it summarizing the dif
101.
▲
by
spricket
8y ago
I think it's deeper than that. Men are more assertive as well as many women preferring it that way. The easiest place to see it is online dating apps, a system that has only existed for a decade or so. Size, strength, and status symbol
102.
▲
by
spricket
8y ago
Amazon's counterfeit problem has ruined it for me. Like eBay before it, it's mostly a place to window shop for me now. Despite the massive amount of work they put into their logistics, they seem to have no trusted supply chain.
103.
▲
by
spricket
8y ago
As some others have mentioned but more TLDR: It hasn't changed that much if you bet on the right horse at the beginning of the "SpaSplosion". React is the best example, having been around for close to 7 years. For a while the
104.
▲
by
spricket
8y ago
DBeaver has some basic autocomplete that's frequently useful. Nothing super powerful but hitting shift enter(shortcut may be different off Mac) when on text pane at top of data tab will help you select cold easier
105.
▲
by
spricket
8y ago
I agree completely. The UI is kinda hokey but I still love it because I've seen so much worse. Try giving it a few weeks, as you need the more advanced stuff you'll learn where the bodies are buried and it becomes semi pleasant to
106.
▲
by
spricket
8y ago
Maybe I've been jaded by SSMS and Mysql Management Studio heh. DBeaver actually has a better UI than most DB tools I've used, even though that's still not saying a lot. Mouse over the buttons for an excessive amount of time a
107.
▲
by
spricket
8y ago
Dbeaver is the best FOSS database UI tool hands down. I've done a lot of searching and haven't found anything close. Managed to convert my whole office to it in a matter of months. Favorite features: Well integrated ER diagrams th
108.
▲
by
spricket
8y ago
I actually like gRPC better than JSON these days so it saves me from that pain, code just gets generated for you. But yeah json is much nicer in JS generally
109.
▲
by
spricket
8y ago
I'm one of those. Unit tests are a waste of time IMO. It usually takes almost as much code to test logic as it does to write it, so I always wondered why the TDD folks don't just implement the code twice and check the result at th
110.
▲
by
spricket
8y ago
It does nothing for missed requirements, but in my experience the test will be wrong if the requirements are anyways. I don't disagree with integration tests, which are usually just running the software through the motions in a semi au
111.
▲
by
spricket
8y ago
Linting is about so much more than code style and standards. Since we use auto format I have almost all the style checks off. What it does catch is hundreds of different types of potential bugs. Uninitialized variable. Missing null check. D
112.
▲
by
spricket
8y ago
I don't write many tests. I've found with experience and heavy linting you can avoid the vast majority of bugs. Not much point to spending a ton of time on tests if they hardly ever break for nontrivial reasons. My normal setup fo
113.
▲
by
spricket
8y ago
Highly recommend TypeScript. It brings so much method to the madness. Build tools are another clusterfuck but at least with TS you have a decently structured language with "standard" ways of doing things
114.
▲
by
spricket
8y ago
Sorry, it's a stereotype, but in my experience JS is a super common first language devs that know JS and nothing else are less experienced.
115.
▲
by
spricket
8y ago
Needing to copy code around is largely a JS thing IMO. Java has such good standard and third party library support that I don't see what would be that reusable between the front and backend. Except maybe validators, gRPC doesnt support
116.
▲
by
spricket
8y ago
Java only works in classes :) . They're actually the compilation unit as well so no way around it. (Files are compiled a .class file at a time from single source files) Adding another example, JPA MetaModel generator that allows you to
117.
▲
by
spricket
8y ago
Typeof is a good one, but holy crap I had no idea return type and param support was that horrific
118.
▲
by
spricket
8y ago
Bad/non-existent annotation support prevents you attaching metadata to objects without adding garbage to their structures. Makes reflection a lot less useful
119.
▲
by
spricket
8y ago
I agree about critiques for most of those languages but not java. If you reach out to the Java ecosystem you can find libraries, frameworks, and language extensions that make it relatively easy to code in. For example, with Lombok you don&#
120.
▲
by
spricket
8y ago
Java uses reflection and annotations to support all kinds of language extensions. Js has a lot of nasty issues with the "prototype chain" and annotation support is still experimental. For example, in java, scanning your classes an
More ›