Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
vips7L
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
35 ms
·
841.
▲
by
vips7L
2y ago
It's honestly really weird and makes reading the post hard for me.
842.
▲
by
vips7L
2y ago
In the case of msft/crowdstrike isn't this exactly the opposite of what HN rallies against? The users installed crowdstrike on their own machines. Why should microsoft be the arbiter of what a user can do to their own system?
843.
▲
by
vips7L
2y ago
Yeah AFAIK every orm will easily store an Instant/Date/LocalDateTime pretty easily into a database. And serializing them with any JSON library just works out of the box.
844.
▲
by
vips7L
2y ago
I'm hoping the declarative gradle stuff works out. It should simplify it a bit. https://declarative.gradle.org/
845.
▲
by
vips7L
2y ago
> you dont need to be an expert I don't doubt that. Your Scala libraries tend to be simpler than the rest of the communities.
846.
▲
by
vips7L
2y ago
https://mill-build.org/ you'll need to know some Scala
847.
▲
by
vips7L
2y ago
My favorite is when they do bold by duplicating and slightly shifting the letters. Bboolldd. PDFs are hell.
848.
▲
by
vips7L
2y ago
I haven't worked with FX or Swing lately but I could have sworn they delivered hidpi support. Maybe in this JEP? https://openjdk.org/jeps/263
849.
▲
by
vips7L
2y ago
If I order standing up I’m not tipping. It’s that simple.
850.
▲
by
vips7L
2y ago
There's a lot of languages that just work better for doing declarative ui than Java. Booth Groovy and Scala have wrappers that just make it that much easier. http://groovy-lang.org/dsls.html#swingbuilder https:/&
851.
▲
by
vips7L
2y ago
The solution is to just pay the machine I think. Why go online at all? In Santa Monica, the meters on the street all let you pay by card or tap, and the beach controlled lots you just enter your space and pay the machine.
852.
▲
by
vips7L
2y ago
Only Linux die hards on HN think they’re hostile. Real users of Windows never have this opinion. Windows is better than any flavor of Linux I’ve ever used.
853.
▲
by
vips7L
2y ago
The language shouldn’t let you silently ignore errors.
854.
▲
by
vips7L
2y ago
I challenge you to do it better then. Also from the guidelines: > Please don't post shallow dismissals, especially of other people's work. A good critical comment teaches us something.
855.
▲
by
vips7L
2y ago
> that shouldn't be on the User anyway. That’s just your opinion. It’s ok to provide convenience functions. I see no difference between the amount of indirection in our implementations, except mine is in the more natural place and y
856.
▲
by
vips7L
2y ago
On a side note, this discussion really made me realize how useful concise method bodies would be in Java: https://openjdk.org/jeps/8209434
857.
▲
by
vips7L
2y ago
Yes this is just extreme bike-shedding at this point. But none of this is impossible with more OO principles, like interfaces: class User { // Convenience function to check if the user is an adult in their current lo
858.
▲
by
vips7L
2y ago
With proper OO you could still implement that on the user object. boolean isAdult() { return this.age >= this.location.ageOfAdulthood(); // or this.location.isAdult(this.age); pick your poison! }
859.
▲
by
vips7L
2y ago
That wouldn’t be object oriented. In OO you tend to want to ask an object about itself, Yegor talks a bit about this in his book Elegant Objects. What you are proposing is just functions or data-oriented programming; which is fine if that’s
860.
▲
by
vips7L
2y ago
That OO refactor isn’t actual OO. The tell tale sign is that it is named by what it does rather than what it is (verb vs noun) and the -or ending in the name [0]. It’s just a function masquerading as a class. The better refactor to introduc
861.
▲
by
vips7L
2y ago
All in the name of audit check boxes.
862.
▲
by
vips7L
2y ago
Azul has an OpenJdk build with FX already in it as well.
863.
▲
by
vips7L
2y ago
My company ships at least 3 desktop apps that I know of. It’s definitely niche, but they’re out there.
864.
▲
by
vips7L
2y ago
With Gluon mobile you should be able to deploy to android. > I feel betrayed by Oracle due to their detaching of JavaFX from default JDK. I really find this to be extremely odd. It’s simple to add back as a dependency in your build file.
865.
▲
by
vips7L
2y ago
SSG?
866.
▲
by
vips7L
2y ago
Highly expressive????? Come on… what kool aid are you on??
867.
▲
by
vips7L
2y ago
It barely has a standard library. You’ll be dependent on the standard library of whatever platform you are targeting. JVM -> Java, Web -> JS.
868.
▲
by
vips7L
2y ago
Batteries included but there’s not even a Set[T] in the standard library..
869.
▲
by
vips7L
2y ago
Again that only matters if there is mutation. Reads are perfectly safe to happen from any thread. This code is self contained. Rust isn’t a silver bullet here.
870.
▲
by
vips7L
2y ago
None of that matters with this code. There are no lifetimes here and in fact there is no ownership either. Everything is a primitive char. They’re always copied and no mutation occurs. It’s pure computation. You could write this code exac
More ›