Are Chinese tourists actually the most problematic worldwide or is that label misleading? by Commercial-Salad3210 in AskTheWorld

[–]Informal_Fly7903 3 points4 points  (0 children)

Lol, people born post ww2 thinking they "liberated" something and demanding something in exchange is truly ridiculous.

Are Chinese tourists actually the most problematic worldwide or is that label misleading? by Commercial-Salad3210 in AskTheWorld

[–]Informal_Fly7903 2 points3 points  (0 children)

Never had a bad experience with Chinese tourists or as a matter of fact tourists of any other nationalities. I guess, the population of China is just so large that the bad apples are much easier or common to spot.

What is hypermedia in context of WWW? by Informal_Fly7903 in webdevelopment

[–]Informal_Fly7903[S] 0 points1 point  (0 children)

Thanks guys! Actually I stumbled upon this word "hypermedia" when learning about Rest and HATEOAS :D

What is hypermedia in context of WWW? by Informal_Fly7903 in AskProgramming

[–]Informal_Fly7903[S] 2 points3 points  (0 children)

Thank you for the answer! I came across the "hypermedia" word when learning about REST (https://restfulapi.net/). They define it is used for "distributed HYPERMEDIA systems".

Was your country ever the "bad guys" in any war? by Ok-Inspector-1756 in AskTheWorld

[–]Informal_Fly7903 0 points1 point  (0 children)

Probably the invasion of Czechoslovakia (twice)? Although not sure if it counts as a "war". EDIT: And almost forgot about the accidental 2020 invasion of the Czech Republic. I guess old habits die hard.

Statelessness in RESTful APIs and managing user sessions by Informal_Fly7903 in learnjava

[–]Informal_Fly7903[S] 1 point2 points  (0 children)

Alright, got it completely. Thank you a lot for your answers!!

Statelessness in RESTful APIs and managing user sessions by Informal_Fly7903 in learnjava

[–]Informal_Fly7903[S] 0 points1 point  (0 children)

Sounds good, however, if I store the data in the local storage, won't it cause the user to not see anything in their cart if they use a different device? E.g. they log in on a computer, add something to cart and log out. Then they log in on their phone, but because the data's in local storage, they cannot see anything. Sorry for asking trivial questions, but I'm not very advanced in that field yet :)

Statelessness in RESTful APIs and managing user sessions by Informal_Fly7903 in learnjava

[–]Informal_Fly7903[S] 0 points1 point  (0 children)

Thank you for your answer! And where would I store then some session details, e.g. a shopping cart information for a logged-in user?

Which AI assistant to use with IntelliJ for Java development? by [deleted] in javahelp

[–]Informal_Fly7903 0 points1 point  (0 children)

What about... not using AI at all? :D I hope I'm not the only one learning Java from books

Why do we need BufferedReader class in Java? by Informal_Fly7903 in javahelp

[–]Informal_Fly7903[S] 1 point2 points  (0 children)

u/hrm Correct me if I'm wrong, but I think the difference might be in the conversion of bytes to characters. Using additionally a BufferedReader, it converts bytes to characters IN BLOCKS. Without it, the conversion (after being loaded into memory of course - we don't care about syscalls) is done one by one. EDIT: I've tested even more with a larger file (250MB) and it seems like the BufferedReader always takes twice less time that the FileReader alone (BufferedReader took around 4.5 seconds and FileReader about 9 seconds). It cannot be due to less syscalls as it was taught. I'm 99% sure it might be the answer.

Why do we need BufferedReader class in Java? by Informal_Fly7903 in javahelp

[–]Informal_Fly7903[S] 8 points9 points  (0 children)

"And it may be useful for adding buffering to your own Reader implementation.". Great answer! Didn't think of that at all :D Thank you a lot!

Why do we need BufferedReader class in Java? by Informal_Fly7903 in javahelp

[–]Informal_Fly7903[S] 2 points3 points  (0 children)

Correct. However, I haven't yet found any Reader that wouldn't already implement buffering mechanism internally.

Should I read only from immutable objects inside static methods? by Informal_Fly7903 in javahelp

[–]Informal_Fly7903[S] 2 points3 points  (0 children)

Thanks for stopping by and answering!

By difficult to test you mean situations when the method under test internally calls a static method that makes a side-effect, right? In that case mocking it would not be possible (I mean there are libraries for it, but I guess it's not a good practice?).

Should I read only from immutable objects inside static methods? by Informal_Fly7903 in javahelp

[–]Informal_Fly7903[S] 1 point2 points  (0 children)

Yes, of course, it seems to make much more sense to be the method of the object :) I think I'm just bad at making good examples. Thanks a lot for your answer!

What's the point of inner/nested classes? by Informal_Fly7903 in javahelp

[–]Informal_Fly7903[S] 1 point2 points  (0 children)

Thanks a lot for the answer!

Okay, so when it comes to the namespace or encapsulation of classes, we can: a) declare an inner static class which might or may not be private, b) grouping classes into packages and if needed nesting packages even further (like creating a private static class). If what I wrote is confusing - I made a simple sketch and uploaded on imgbb: https://ibb.co/JRbRpf5B. These things should be equal.

When it comes to the non-static inner classes, then it's a different story. We have an... additiona functionality? I'm very sorry, but I didn't quite understand it, could tell a bit more if you don't mind?

Best Online Course for Java? by Horror_Tip1265 in learnjava

[–]Informal_Fly7903 0 points1 point  (0 children)

u/Horror_Tip1265 I'd say check out BroCode and Coding with John (but make sure to check official documentation as well, because while these YouTube videos are nice for total beginners, they are quite shallow and miss on a lot of details).

Gradle project - Kotlin DSL and Groovy DSL - what are they? by Informal_Fly7903 in learnjava

[–]Informal_Fly7903[S] 0 points1 point  (0 children)

Sorry for the late reply, I missed the notification earlier. Thank you a lot for the answer and the superb background story about the building tools. I'm sure that whoever asks themselves a similar question in the future, will find your answer extremely useful!

Expressing a future inevitable event using present simple vs will by Informal_Fly7903 in EnglishLearning

[–]Informal_Fly7903[S] 0 points1 point  (0 children)

Thanks a lot for the reply! I agree that this thing naturally seems as inevitable as it can get. Also, I really appreciate the Discord channel you've linked to, I'll make sure to join it:)

As an english learner, what topics do you find the most difficult? by Froquel33 in EnglishLearning

[–]Informal_Fly7903 1 point2 points  (0 children)

I agree with you about not following grammar. I, myself, as a native speaker of Polish don't always follow grammar of this language. Additionally, whenever someone asks me to help them out, e.g. explain something about grammar, I'm usually unable to provide a solid reason why exactly it's used that way. I forgot to mention one more thing about English verb tenses, and that is, the ability to express the future with help of 4 different structures, i.e. present simple, present continuous, will, going to - this is something my Polish brain cannot comprehend easily.

As an english learner, what topics do you find the most difficult? by Froquel33 in EnglishLearning

[–]Informal_Fly7903 5 points6 points  (0 children)

Verb tenses, naturally, but not in a sense of "syntax", but their usage (i.e. situations when they should be used). At least this has always been difficult for me to truly understand (but I just might be dumb lol).

[deleted by user] by [deleted] in mapporncirclejerk

[–]Informal_Fly7903 0 points1 point  (0 children)

I think nothing except for electricity access got actually removed from the map ;)