Lysergid

joined 1 year ago
[–] [email protected] 23 points 2 weeks ago

I mean, mom could be right. Maybe there’s a rule on router to block Fortnite servers after 21:00. She just doesn’t tell that she the one turning it off

[–] [email protected] 4 points 1 month ago* (last edited 1 month ago) (3 children)

Library built this way because it supposed to be flexible and provide ground for complex usecases. It can only be flexible if your API works with simple abstractions which you can then compose. It’s not driven by “I need this specific utility for this specific scenario”. That would be zoo you have in JS where you have 10 ways to iterate over array and 9 of them wrong for your scenario.

Java’s OO is great because they design library with SRP in mind making sure there is few but good ways to do things.

BufferedReader cannot accept file name because it makes arbitrary reader… well buffered. It’s not BufferedFileReader, even that would accept something like Path or File, not string, because File can be remote file, should Reader now know all possible local and remote protocols and path formats? What else it must do?

Having it designed the way it is, allows Java to have utilities for various scenarios. Your scenario covered by standard lib too. See Files.readAllLines which, surprise-surprise, built on top of BufferedReader.

[–] [email protected] 7 points 1 month ago* (last edited 1 month ago)

Char count is poor complexity metric. Perl is better than Python with your logic as it is more condensed.

[–] [email protected] 18 points 1 month ago (15 children)

Can anyone actually tell what exactly complicated in Java? Verbose, maybe it was at some point but I find it very straightforward and easy.

[–] [email protected] 2 points 1 month ago

I don’t know german but it seems to be more logical to have one word for “health insurance card” since it describes one class of objects. Better than spelling 3 nouns where one partially describes what object is and other nouns act like clarification

[–] [email protected] 3 points 1 month ago (3 children)

That was my first thought, but is that much different for say Tesla. They get tax breaks and pay as low as they can. Don’t get me wrong I not protecting China’s way, I’m rather against both. But it would be interesting to see numbers from both sides

[–] [email protected] 8 points 1 month ago (1 children)

AFAIK major contributor into low Chinese EV prices are subsidies and tax breaks for manufacturers. I know they have significant tax breaks in US. It would be interesting to see how they compare. Because if they are mostly on par this is pure corporate greed stopping them. Especially in case of Tesla. They are not overpaying workers and don’t use luxury materials

[–] [email protected] 3 points 2 months ago* (last edited 2 months ago)

At least they are not a tee pot

[–] [email protected] 7 points 2 months ago

Do you have to unlock? You can open wallet from blocked screen without unlocking phone

[–] [email protected] 0 points 3 months ago

removed, stop buying your metal scrap and pay your devs. I wanna play Marathon this century

[–] [email protected] 9 points 3 months ago

But it’s FAANG company, they know how to do best /s

 
view more: next ›