That's very impressive!
1,144 karma · joined December 28, 2012
That's very impressive!
The interview at my last two jobs (current and previous one) were both vastly based on a coding task. I always prefer this as it is closest to how I work.
switch(sort) {
case "asc":
sortedComments = topicComments
.stream().map(Comment::getThreadComments).filter(Objects::nonNull).flatMap(Collection::stream)
.sorted(Comparator.comparingLong(PostResponse::getCommentPostedTimeMilles)).collect(Collectors.toList());
break;
case "desc":
sortedComments = topicComments
.stream().map(Comment::getThreadComments).filter(Objects::nonNull).flatMap(Collection::stream)
.sorted(Comparator.comparingLong(PostResponse::getCommentPostedTimeMilles).reversed()).collect(Collectors.toList());
break;
}
I selected the first case and applied "Extract to method" and IntelliJ automatically suggested and applied the method to the second case also. Not sure if Eclipse will do that.Wouldn't it be less efficient to host something myself than to use some cloud provider?
Isn't the sample size miniscule to make such a big statement?
Maybe I didn't understand but are you suggesting hoarded data shouldn't be locked down and any publisher should have access to it?
Even though I love Google, this is increasingly getting scary. More than hackers getting into my account, I am actually more afraid of getting locked out by Google one day.
An year or so back I created a Google account for my five year old daughter to be used on a Nexus 7 2012 (yes, it still works). Recently, I reset the device and tried logging in with my daughter's account but had forgotten the password. In spite of giving the recovery address correctly and entering the OTP that was sent, Google kept telling me it couldn't confirm if I was the owner of the account.
Since this is a new account I don't have a problem but what if this happened to my main account?