Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
apta
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
63 ms
·
811.
▲
by
apta
7y ago
People bring up this argument all the time as if there are no other alternatives (black or white fallacy). How about a simple rule to abide by: if there is any ounce of doubt as to whether the person committed the crime that puts the death
812.
▲
by
apta
7y ago
> There's also this ridiculously persistent anti electric vehicle I'm all for working toward better air quality, and electric vehicles definitely reduce greenhouse (and other) gas emissions. At the same time, pollution from car
813.
▲
by
apta
7y ago
I'm not sure what you mean by named parameter enumeration or object enumeration to be honest. > spread through a curve trading flexibility (expresivity) with organization (possibility of analysis). Java has nothing near that curve.
814.
▲
by
apta
7y ago
Ironically, I see this in golang all the time. Interfaces are defined with a single implementation in the code, and then the interface is used to generate mocks.
815.
▲
by
apta
7y ago
Java also now has default interface implementations.
816.
▲
by
apta
7y ago
> How is that information valuable? It's useful when you want to know where a certain concrete type is being passed as an interface. If you have a type Foo that has functions bar() and baz(), then it becomes very tedious to see wher
817.
▲
by
apta
7y ago
What do you use instead of mocks when testing?
818.
▲
by
apta
7y ago
There was an actual bug in the golang standard library precisely due to this feature, so it's far from theoretical. Secondly, I found that in practice, it doesn't buy you much, and on the contrary, makes working with code more dif
819.
▲
by
apta
7y ago
Could you point out specific use cases? Are you referring to lisp-like macros? Constructs like Higher Kinded Types? I'm just trying to understand where you're coming from.
820.
▲
by
apta
7y ago
> If it is littered with it, you are probably in the "doing it wrong" category. How else do you suggest transforming slices from one type to another, removing entries in slices based on certain conditions, etc. without looping?
821.
▲
by
apta
7y ago
> Java is missing basic tools for abstracting idioms Such as?
822.
▲
by
apta
7y ago
> If you're writing a lot of boilerplate in Go, you're either doing it wrong or chose it for something wildly out of its wheelhouse Like shoehorning a set use case into a map? Or trying to get the list of keys or values in a ma
823.
▲
by
apta
7y ago
> With Lmobok, you can use `var` for local variables `var` is part of standard Java, you don't have to use Lombok. > Can't have nice syntax for object literals Could you elaborate on what you mean by object literals in this
824.
▲
by
apta
7y ago
> Do not need to explicitly declare interfaces a struct conforms to. Which comes with its own (sometimes dangerous) downsides. > 2. Do not need to declare types of variables inferred on initialization. Java has `var` for quite some ti
825.
▲
by
apta
7y ago
It is concerning that a pro Chinese government entity is sponsoring this project. They're infiltrating North American institutions, where's the oversight?
826.
▲
by
apta
7y ago
Reality is complex by definition. Just because golang pretends it doesn't exist doesn't make it so. Secondly, the JVM GCs allow selecting the best GC for the job, whether it be throughput, very large heaps (mutli-GB to TB sized, w
827.
▲
by
apta
7y ago
The golang position is to pretend complexity doesn't exist until it becomes a problem (this already happened before for example with the clock issue). This approach is already evident in the overly simplistic design of the language, wh
828.
▲
by
apta
7y ago
Why? Not everyone on HN is a far leftist.
829.
▲
by
apta
7y ago
I'm not sure it's politics as much as a deeper underlying cause. A lot of today's salaries are just not sustainable to live and retire off of anymore. You read stories about how several decades ago, a man working at a gas sta
830.
▲
by
apta
7y ago
Strawman fallacy. He didn't say anything about having pictures of heterosexual couples. Some people consider overt display of affection in public to be obscene in general.
831.
▲
by
apta
7y ago
Furthermore, what guarantees that another similar test would fail in the exact same spot that they want to reinforce?
832.
▲
by
apta
7y ago
How did the driver know where to find you after you cancelled, or what you looked like?
833.
▲
by
apta
7y ago
> terrorism might be the right word, or it might not It is not. Educate yourself.
834.
▲
by
apta
7y ago
> has dropped Scala on the backend What did you replace it with out of curiosity?
835.
▲
by
apta
7y ago
Thank you for posting this. Out of curiosity, what was/is your tech stack like?
836.
▲
by
apta
7y ago
Basically fad driven development.
837.
▲
by
apta
7y ago
> "great test tooling" and "broad library support" are subjective Not really the case when it comes to Java (and the JVM in general). It objectively has great test tooling, and a very diverse library ecosystem, not to
838.
▲
by
apta
7y ago
If the local teachers are not getting paid enough, then perhaps the problem lays elsewhere. Why is it that a couple of generations ago, a family on a single income where the father was working at a gas station was enough to buy a car and a
839.
▲
by
apta
7y ago
It is in areas where is needed to support a family without going into debt, which seems to be almost expected today
840.
▲
by
apta
7y ago
Makes sense. Historically, all Arabic letters were dotless as you probably know. I wonder if this made it into Farsi script somehow, for this case at least.
More ›