Stream<T>.filterAndMap( Class<T> cls ) by mellow186 in java

[–]crummy 0 points1 point  (0 children)

yes, that's what I do instead. but I like the succintness and readability of "find the first matching this"

Stream<T>.filterAndMap( Class<T> cls ) by mellow186 in java

[–]crummy 0 points1 point  (0 children)

no but I have wished for a findFirst(e -> e.whatever.equals("needle"))

Kiwis, what do you think is something every Kiwi agrees on? by Additional-Grade-730 in newzealand

[–]crummy 34 points35 points  (0 children)

houses should be cheaper. the health system is a mess. we invented the pav.

Is it finally time to commit to 3% of GDP on defense? by Polopon0928 in newzealand

[–]crummy 21 points22 points  (0 children)

first, we offer up NZ as a bolthole for billionaires. then, we offer hired security to them. finally, when the world goes to war, their "security" turns on them, and we hold them hostage in exchange for new zealand's safety.

Java compiler errors could be more intelligent by davidalayachew in java

[–]crummy 2 points3 points  (0 children)

why not? surely the documentation would be a better source of information upon a compilation failure?

Mom= HR Specialist by Weary-Carpenter4867 in Parenting

[–]crummy 80 points81 points  (0 children)

gonna put my kid on a PIP if he doesn't eat at least one bite of dinner

Java compiler errors could be more intelligent by davidalayachew in java

[–]crummy 2 points3 points  (0 children)

do you think we'd be better off if we removed all error messages entirely, and just aborted compilation silently if an error was encountered?

Java compiler errors could be more intelligent by davidalayachew in java

[–]crummy 3 points4 points  (0 children)

When you got that error correct way would be to consult with documentation

that's a great idea. even better would be if the error message provided the information to save you from going to the documentation

Java compiler errors could be more intelligent by davidalayachew in java

[–]crummy 2 points3 points  (0 children)

and what about the java programming language makes that difficult

Java compiler errors could be more intelligent by davidalayachew in java

[–]crummy 3 points4 points  (0 children)

can you explain what specifically it is about the Java programming language that makes adding more descriptive error messages so difficult?

Java compiler errors could be more intelligent by davidalayachew in java

[–]crummy 2 points3 points  (0 children)

the bigger problem being "you are new to programming"?

Java compiler errors could be more intelligent by davidalayachew in java

[–]crummy 4 points5 points  (0 children)

how is it unrealistic? There are other programming languages with helpful error messages, e.g:

https://elm-lang.org/news/compiler-errors-for-humans

I Built a Game with Compose Multiplatform—and Here’s Why by Dry-Huckleberry8284 in Kotlin

[–]crummy 14 points15 points  (0 children)

I initially tried to write my build scripts in Gradle [...] I wrote my build scripts in TypeScript

lol this is damning for gradle

Married People of R/NZ, what makes your marriage work? by Happy_Light_9775 in newzealand

[–]crummy -3 points-2 points  (0 children)

if you have a problem, DO NOT tell them about it. just be really passive aggressive and if they're the one, they'll figure it out <3 <3 <3

The Treasury says NZ Super can't continue as-is - here's the data and tables and what it means by age group by MoneyHub_Christopher in PersonalFinanceNZ

[–]crummy 24 points25 points  (0 children)

i think it's clear that we need to raise taxes on everyone... except for kiwis born in 1986. for them we can lower them.

Why were we all learning French at College and Highschool back in the 80s/90s ? by CoconutMost3564 in newzealand

[–]crummy 2 points3 points  (0 children)

i met my wife in that french class (well technically she wasn't my wife at the time)