« first day (2282 days earlier)      last day (2658 days later) » 

7:08 PM
Yep, I agree. Especially for starting IMO, even though Eckel does make comparisons with C++ -- which for many learners starting in 2017 will not provide much context.
 
Is there a better way to get the latitude and longitude of the user's computer than how I am doing it in github.com/JonahSloan/DashboardGUI/blob/master/src/tools/data/… ?
 
Hi, I'm creating simple multiplayer board game via java sockets. I decided to use command pattern for executing different commands (String), that I get from users. Is there pattern for mapping user input to create command object without nested if's and switch?
 
7:27 PM
@Command(name = "help", args = false)
class HelpCommandExecutor implements CommandExecutor
 
7:47 PM
@JonahSloan I don't think there's a better general approach (different geolocation service providers aside), unless the end-user has some GPS type equipment attached to their computer.
@PaulJ if your inputs are simple enough, then you might do smth reasonable with regexps, and upon successful matching from string like (cmd1|cmd2|cmd3) just instantiate new Command() with regexp match as an argument to avoid excessive if/elseif/else usage.
 
 
4 hours later…
11:20 PM
I counted 60118 chat rooms, of which only 1035 are active.
 

« first day (2282 days earlier)      last day (2658 days later) »