Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
V-2
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
16 ms
·
121.
▲
by
V-2
4y ago
That's true, but this much is inevitable. Kotlin can't help that the whole world isn't in Kotlin.
122.
▲
by
V-2
4y ago
If I'm not mistaken, that's how Swift (which is syntactically most similar to Kotlin as far as I can tell) has it. But "let" is already a thing in Kotlin (a scope function in the standard library). In my experience, in p
123.
▲
by
V-2
4y ago
Kotlin also discourages inheritance. It's opt-in, not opt-out, because classes are final by default: you need to explicitly mark them as "open" if you want to extend them. The same with functions if you want to override.
124.
▲
by
V-2
4y ago
Due to limitations of JVM itself, reified generics in Kotlin is limited to a very narrow usecase. Basically functions that get inlined. So it's not "true" reified generics as in C#. You can't go "if (T is Whatever)&
125.
▲
by
V-2
4y ago
It's still not enforced by the language itself, so nothing stops a third party library (that you have to integrate) from not using the annotations, and then the unknown nullability exerts a domino effect on your own code, "infecti
126.
▲
by
V-2
4y ago
I was once accused of perfectionism. I've been working on a crushing rebuttal for a while now.
127.
▲
by
V-2
4y ago
They started such a theme with Android Studio - not since the very beginning, but 2020. So far there have been Arctic Fox, Bumblebee, and Chipmunk.
128.
▲
by
V-2
4y ago
And rather negative characters at that.
129.
▲
by
V-2
4y ago
These are rather nasty workarounds, to be honest. Instantiating a map out of the blue is clever, but not very readable (not to mention potential performance concerns eg. if it's code executing in a large loop), and something I'd d
130.
▲
by
V-2
4y ago
True. In Kotlin you can go val foo = if (bar) "this" else "that" and you don't need two separate assignments.
131.
▲
by
V-2
4y ago
> Loads of companies and startups have little or no tests. Personally I haven't seen a codebase with no tests since like 12 projects ago, give or take. But your mileage may vary of course. Maybe I've been just lucky.
132.
▲
by
V-2
4y ago
1. Harmful or unhealthy is not the same as immoral. If whisky distilleries and wineries are immoral, too, then at the end of the day, what isn't? 2. I won't get cancer or liver problems because I haven't seen the source code
133.
▲
by
V-2
4y ago
Mortgage credits, student loans (and there are major ethical systems that actually consider them immoral, eg. Islam generally prohibits charged interest).... Or military enlistment contracts... There are plenty of examples where you volunta
134.
▲
by
V-2
4y ago
"Moral simply means "all the spectrum of things that are not immoral", or not immoral, which is a much larger category with a lot more nuances." This is arguing semantics, and we're somewhat straying away from the
135.
▲
by
V-2
4y ago
Software is basically a recipe + the resulting "meal". When I go to a typical restaurant, I also have no freedom to do the cooking as I wish. I'm served with a product whose "source code" I usually don't even k
136.
▲
by
V-2
4y ago
What is missing is some evidence (by which I mean ANY shred of evidence, not necessarily a full-scale research; could be circumstantial) that coders whose native languages lack the concept of upper/lower case ACTUALLY struggle more wit
137.
▲
by
V-2
4y ago
I don't want to sound mean, but it really looks like no effort has gone into matching the open source projects with their proprietary equivalents (that they're suggested to replace). And that makes its name essentially misleading.
138.
▲
by
V-2
4y ago
Rescinding accepted job offers, and not a single word along the lines of "apology" or "sorry" in the statement? That's a bit bold, in my view. Am I missing something?
139.
▲
by
V-2
4y ago
True, because their descriptions literally contain the words "Office" and "Docs". But one of the alleged alternatives for Docs is Athens Research, which is totally unrelated; there's just a link to its "docs&qu
140.
▲
by
V-2
4y ago
I'm not sure how it works at first glance. OK, let's search for "Word". I'd assume LibreOffice and the like would come up - but instead, I get "WooCommerce" and "Wordle Global, Open Source Alternative
141.
▲
by
V-2
4y ago
Yeah, I'm not advocating the simulation hypothesis as such : ) I'm only saying it fits here nicely as a thought experiment (that's why I emphasized: "for argument's sake"). Its actual correctness is beyond the
142.
▲
by
V-2
4y ago
My thoughts went towards the coral reef, esp. with Australia in the headline.
143.
▲
by
V-2
4y ago
This misses the "computation" (being shifted from one layer to another) aspect though. Universe being mathematically consistent and being simulated are completely orthogonal concepts.
144.
▲
by
V-2
4y ago
Decriminalizing possession has little effect (especially short-term effect) as long as the production and distribution are still handled by the black market.
145.
▲
by
V-2
4y ago
This perspective fits nicely with the simulation theory. If we accept it, for argument's sake, then what's happening is essentially delegating the computation to the ultra-meta-computer that runs the simulation.
146.
▲
by
V-2
4y ago
That's true, but this is exactly the unsurpassable limitation of AI's creativity. It can generate art out of art. It can do it exquisitely well. But it lacks experiential/social inspiration. This component only comes from rec
147.
▲
by
V-2
4y ago
They may be slow, especially by machine standards, but they do occur. Their pace isn't really relevant to my point. And humans are trained on the same; unlike AI, we don't have any external supply of art to rely on : ) At any
148.
▲
by
V-2
4y ago
And it's this expansion aspect that seems crucial to me. Endless rehashing of inputs can lead to seemingly creative outcomes, but that doesn't mean any actual expansion occurs. New works are created/discovered, but are new u
149.
▲
by
V-2
4y ago
This is true. But here's a thought experiment. What would happen if, say, an illustration-drawing AI (it's just a more fitting example than prose) is trained only on art from before the 20th century. It would surely excel in 19t
150.
▲
by
V-2
4y ago
This is usually the case. GUIs are superior in some aspects (eg. visualization of complex branch structures), inferior in others (eg. add more friction - many operations can be done faster from the console). As far as Git goes, I see GUI cl
More ›