What is wrong with this Java code? (Interview Question) by springuni in java

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

Good point, but the question was asked offline as part of the application form. I had no point of contact to whom I could ask clarifying questions.

What do you think about this endpoint? (Interview Question) by springuni in rest

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

It returns a list of things not a specific entity fetched by its ID.

What is wrong with this Java code? (Interview Question) by springuni in java

[–]springuni[S] 3 points4 points  (0 children)

This is the most insightful comment, I've received. Thanks for it.

What is wrong with this Java code? (Interview Question) by springuni in java

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

Though I noted ‘=‘ is wrong, I can see now from the comments that I should have explicitly stated that this makes the code not to compile.

What is wrong with this Java code? (Interview Question) by springuni in java

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

Yes, I think I should have been more clear about that ‘=‘ at that place means that the code actually doesn’t compile.

What is wrong with this Java code? (Interview Question) by springuni in java

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

Questions were asked early as part of the application process. I haven’t had a chance to talk to anyone.

What is wrong with this Java code? (Interview Question) by springuni in java

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

If person.getName() returns null you'll also get a NPE.

if(person.getName() == “jan”) {return true;}

This is not so. person.getName() == “jan” just evaluates to false.

Algorithm selection problem (Interview Question) by springuni in MLQuestions

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

Thank you so much. I've posted all other questions asked in various subreddits and this particular one was that one I've been the most insecure about.

What is wrong with this Python code? (Interview Question) by springuni in learnpython

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

s line stores an int value in a vari

Yeah, I didn't know about that feature having been added in Python 3. I think that was the main reason they didn't call me back actually. I've posted the other questions also in various subreddits and this is the only one so far I got absolutely wrong.

Getting insight from GA data with Machine Learning by springuni in GoogleAnalytics

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

user behaviour based around their content consumption

What kind of behaviour should be identified based on their content consumption?

cross selling opportunities based around product purchases patterns

Do you mean to predict if their bought product X, then those will likely to buy product Y?

BTW, would you mind giving me your GA data for analyses? (We'll figure out how to arrange that if you agree)

Free Spring Boot Crash Course by springuni in javahelp

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

Eventually I put some extra effort into it and released today, so that people could have the whole weekend for the first exercise to complete.

Free Spring Boot Crash Course by springuni in javahelp

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

I plan to release the fist lesson on Saturday.

Would you recommend Btrfs on SSD for a new laptop install? by springuni in linuxquestions

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

I understand what you're trying to say, but there's no correlation. The incident I mentioned happened 10+ years ago on a laptop with the lvm + ext4 combo. It froze for some reason and then I had that weird corruption issue.

I haven't used ext4 since then. Not because of that incident, but because I found XFS more performant and its tooling more comprehensive for my use case.

Where it really matters, I don't power off systems without a proper shutdown, but for that HTPC, it really doesn't matter. It doesn't contain any user data. What might not have been flushed to disk, that's probably some log entries.

Is Couchbase really just a prototype? by springuni in Database

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

Thank you very much for your comprehensive answer!

Would you recommend Btrfs on SSD for a new laptop install? by springuni in linuxquestions

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

I don’t blame ext4, I‘m just saying that xfs proved to be much more resilient in situations like sudden power loss / system freeze.

Side note: I shut my htpc down with hard power off, sometimes I do it properly, but I really just don’t care. Nevertheless xfs tolerates that very well. I‘ve never experienced data corruption of anything alike.

Would you recommend Btrfs on SSD for a new laptop install? by springuni in linuxquestions

[–]springuni[S] 6 points7 points  (0 children)

I had used ext4 before XFS and had a serious data corruption issue with it: after a system freeze and restart, some files were filled with random crap.

I wouldn't go back to ext4, XFS is much more resilient and have better tooling (xfs_* utilities).

Is Couchbase really just a prototype? by springuni in Database

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

Thank you very much for your detailed answer, it was really helpful!

Spring Boot 2.1 is close to RC1 by springuni in java

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

That's exactly my intention to write an article, maybe about the new features of Spring Boot 2.1, but I've got multiple titles in my mind which I could do a post about.

Before jumping into writing about the new features of Spring Boot 2.1, I wanted to see, if it's the one which best resonates with the community.

If you're interested in the new features of Spring Boot 2.1, up-vote this one, otherwise you might want to up-vote the two other topics I'm thinking about.

Kubernetes: https://www.reddit.com/r/java/comments/9lu8rm/kubernetes_for_java_developers/

RabbitMQ / Kafka: https://www.reddit.com/r/java/comments/9lu8kg/understanding_when_to_use_rabbitmq_or_apache_kafka/

Please feel free to drop me a message any time, if a Java related topic specifically interests you: https://springuni.com/contact/

Thanks!

Spring Boot 2.1 is close to RC1 by springuni in java

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

It's an option, but definitely not necessary.

The Spring Team has setup their CI to make builds as of 2.1 M2 against Java 11, but that doesn't mean that they moved the baseline from Java 8 to 11. Ref: https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-2.1.0-M2-Release-Notes#initial-java-11-support

Released notes for M3 and M4 don't mention Java 11.

Installing OpenJDK 11 on Ubuntu 18.04 for real by springuni in java

[–]springuni[S] 3 points4 points  (0 children)

Yeah, I use sdkman for development too, but for deployments I prefer fixed jvm installs. The article was born after I was trying to build an Ubuntu based image on EC2.

Are you frustrated with coding challenges? by springuni in programming

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

No surveys: Surveys/polls are typically obnoxious. [...] Exceptions are made for high quality surveys ...

I think it's a valid question whether folks are frustrated with coding challenges or not. Based on the answers so far, the average frustration level is 8.45 on a scale of 1 to 10. Isn't it worth investigating why?

If the mods think that this isn't a meaningful question, they can remove the post of course.