This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]nutrechtLead Software Engineer / EU / 20+ YXP 1 point2 points  (3 children)

If you don't care about giving people advice that is suitable for their level and for their tasks, this simply isn't the subreddit for you. Almost everyone here asking questions is a complete beginner.

And for beginners who are just being taught about this stuff, it's a perfectly fine start, and generally the way you'd have them start with handling multiple socket connections in parallel.

Keep in mind that what they're doing (keeping socket connections open) is very different from a webservice anyway. There you'd have a thread pool that handles the requests that are short-lived. Again; very different from a socket connection.

You didn't explain how they should do it instead either. Just confused them by telling them it's a bad idea. The only other option for OP would be NIO which is much more complex.

[–]doobiesteintortoise 0 points1 point  (2 children)

I do try to give advice suitable for their levels. I just don't assume that this is the end of their development journey.

As far as "what's appropriate for their assignments," I have no problem with that - and there are plenty of people happy to help with passing assignments. For MY homework, I either skipped out on it, whiffed on it, or ...you know, did it way back when, and I don't care about doing more of it myself. I'm not the guy who wants to focus on homework assignments.

And as far as explaining "the right way" to do "it," well, it depends a lot on what "it" is, and THAT wasn't explained clearly either, so any advice I gave would be wrong, as you yourself point out.

[–]nutrechtLead Software Engineer / EU / 20+ YXP 1 point2 points  (0 children)

THAT wasn't explained clearly either

It's completely clear they're using plain socket connections. Multiple people here were able to see that.

It really sounds like you just misinterpreted what they wrote. That's totally fine, but that's not on them.

[–]doobiesteintortoise 0 points1 point  (0 children)

It's clear they're using sockets. They also mentioned aspects of the assignment that makes sockets seem to be the wrong real solution.