Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
ragnese
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
80 ms
·
751.
▲
by
ragnese
6y ago
I'm not sure I follow. What do you mean by "bakes private implementation into the specification"? In Rust, these tests live inside of the module where the functionality is defined. Nothing "leaks". You write your pr
752.
▲
by
ragnese
6y ago
I'm going to go on a bit of a tangent. I don't follow any particular testing religion, and I definitely find myself struggling to figure out what to test, how to test it, and have inflicted design damage in the name of testability
753.
▲
by
ragnese
6y ago
> Way before TDD was a thing, when I worked at IBM, we used to call this "inverted design": write the calling code first to see what the API might look like and then make it work. I really like the idea of this, and I very occa
754.
▲
by
ragnese
6y ago
They said today . Those sites were not started today. Furthermore, Facebook literally invented a new language because PHP wasn't good enough. PHP has since adopted some of the features of that language.
755.
▲
by
ragnese
6y ago
> These things are a little advanced for the likes of me. Any chance you'd be so kind as to give me an example of something I can't easily do because of not having this? Well, you can do whatever you want in a dynamically typ
756.
▲
by
ragnese
6y ago
You cannot deploy a PHP app by just plopping a file on an unconfigured server. Deployment is not that simple. Or, if it is, then you have to allow me the same grace of just being able to plop my Go or Rust binary on that server and have it
757.
▲
by
ragnese
6y ago
As a statically typed language, I feel like it doesn't even take much to explain why it's actually the worst, except for C. But at least C is necessary in some domains. The type system is weaker than Java, which is a low bar. It h
758.
▲
by
ragnese
6y ago
> Is there anything that PHP is developing or adopting that can not be had at other established languages? IMO, no. The language is still near the bottom for both dynamic and "static" typed languages. HOWEVER, if you're do
759.
▲
by
ragnese
6y ago
This one doesn't bother me much. What's harder and worse, IMO, is doing saturating math .
760.
▲
by
ragnese
6y ago
> Do animals have a mental concept of cruelty though? Of guilt? I suspect most don't. What if a human, or groups of humans, don't feel any guilt or don't believe what they're doing is cruel? I don't think that wo
761.
▲
by
ragnese
6y ago
There's still darkness without people. Sickness, suffering, etc, exist without humans. Hell, even torture exists. Orcas play with their food as they're killing it. I believe cats do as well. If you can zoom out from that at see it
762.
▲
by
ragnese
6y ago
You're building strawmen. Nobody is bashing the infrastructure. As in, nobody is bashing the JVM. They're (we're) bashing Java-the-language. 1. The first JVM was surely not written in Java. Therefore JVM != Java 2. A JVM can
763.
▲
by
ragnese
6y ago
I'm excited for Scala 3! Scala needs a good cleanup.
764.
▲
by
ragnese
6y ago
It'll never get rid of everything-is-nullable, though. That's honestly my biggest issue with Java. I could definitely complain about a bunch of stuff with Java, but the nullability situation is the worst. Also, everyone in this th
765.
▲
by
ragnese
6y ago
Honestly, considering that JetBrains wrote both Kotlin and IDEA, I'm often surprised at the little papercuts when editing Kotlin code. I can't tell you how many times it has autocompleted FooClass.Companion.functionName() for me a
766.
▲
by
ragnese
6y ago
And, in my opinion, that is exactly the position you SHOULD take. Stop giving up your data to any company. Even if your favorite company is nice now, they'll get hacked, they'll get sold, the CEO will get replaced, etc. There is n
767.
▲
by
ragnese
6y ago
I share many of your feelings toward Kotlin as a language. I've said a few times that Kotlin is the best JVM language, but that's it. Even if the Native and JS "ports" or whatever were well-polished, it's still expo
768.
▲
by
ragnese
6y ago
That's my understanding, yes.
769.
▲
by
ragnese
6y ago
You're basically trolling at this point. Java the language has major shortcomings, including an absolutely neutered and broken type system. Kotlin is an improvement, but still limited by its Java roots. The JVM is a specific product. W
770.
▲
by
ragnese
6y ago
For me, it's the Node ecosystem. The probability of even popular libraries having really basic bugs is way too high.
771.
▲
by
ragnese
6y ago
In this case, it didn't. That's just the reference-frame of the person who you replied to. Map, reduce, filter, etc existed long before JavaScript. I assume that's what they're talking about.
772.
▲
by
ragnese
6y ago
Doesn't this require a plugin, though? So it's basically an extension of Kotlin-the-language. To those who are using Arrow- why not Scala? Is it just because Scala has too much cruft? The only thing Kotlin has over Scala (AFAIK) i
773.
▲
by
ragnese
6y ago
http://journal.stuffwithstuff.com/2015/02/01/what-color-is-y... Async/suspend functions are one color, and "normal" functions are another.
774.
▲
by
ragnese
6y ago
I didn't downvote either comment, but I do appreciate the person who called out the individual's affiliation. In the current era of so much astroturfing, I feel like it's good manners to indicate when you make a comment that
775.
▲
by
ragnese
6y ago
> If you used a DTD/XSD, the answer is usually yes, since new fields will fail DTD validation using an old DTD -- that is if you validate all your data upon receipt before you process it. I'm not sure I follow. DTD, as far as
776.
▲
by
ragnese
6y ago
I assume, from their statement, it's simply the ergonomics of not having to explicitly name ad-hoc sum types. Which I do agree goes a long way in ergonomics and reduced friction for leveraging the type system.
777.
▲
by
ragnese
6y ago
Yes, but he's talking about an equivalent of Rust's [must_use]. I actually made a post on the Rust subreddit inquiring why Rust made must_use opt-in instead of opt-out like Swift and, apparently, F#. The reaction was OVERWHELMINGL
778.
▲
by
ragnese
6y ago
I'll admit that I've never deployed a service with 10,000+ clients. And CORBA (after looking it up) seems to include behavior (or allow it, anyway) in the messages. That's about much more than having a precise/tight cont
779.
▲
by
ragnese
6y ago
Really? What languages in particular? Even Java doesn't want to be Java anymore (see the "inspiration" it's taking from Kotlin and others in recent/next versions). PHP is the only language that seems to be chasing J
780.
▲
by
ragnese
6y ago
Fair enough! I never wanted to implement Drop on a Copy type, but I assumed you could.
More ›