Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
I think this is just normal, because '2.5 years of experience' literally doesn't say anything about how recent and how frequent he uses Java for API request.
Maybe we need to check if his knowledge is up to date enough during the interview? -
Yes there are better ways with reactive programming and such, but that's not a wrong way of doing things.
Especially if you work with an older app where introducing reactive would mean countless hours of refactoring, to not create inconsistent structure, which no manager would allow.
So I really don't see your point. -
unity3017yI wrote similar code recently for an Android position and was offered the job so... I had 0 professional Android experience though.
-
ZooS1ne567yAgreeing with @sylflo on this one. If it was intended as a task I would say this guy passed with fying colors. He showed that the knows the underlying logic and structure of doing network communication in Java and that he is not some copy/paste dev
-
bareq3597yHe made his work. I think that a few code reviews later he will be a really good dev. Are you looking for senior or what? :-)
-
dannydam3217yI'm just an Android Development student, but to be honest his code, at least to me, looks pretty good. Remember that 2.5 years of experience coding isn't that much, and the man probably just didn't know of a better way to do this, this definitely doesn't make him a bad programmer or revoke him of potentially becoming a great one.
-
Synster6187yNot a Java developer here. So not sure what is wrong with AsyncTask. But can't say I am not curious. If someone can explain maybe that will help me and others.
Thanks 🤔 -
petru7947yI do not see your point. Sure he could have used volley or reactive programming but his knowledge of Java networking seems pretty solid.
-
@Synster You can't perform network operations on the main thread in android, so the old fashioned approach was to create asynctasks which are basically android background threads (grossly oversimplifying here) and return the server response to the main thread.
Nowadays there are libraries like volley or RxAndroid which provide a nicer/cleaner/simpler way of doing that stuff.
But again using a library like that isn't possible/affordable in some cases for the short term benefit of releasing features which most managers like more than long term benefits such as clean architecture and a maintainable codebase. -
@JaredDunn He has worked on Android for 2.5 years. I do think that using an asynctask to call an API when you're applying for a role at a startup isn't a good call due to the lifecycle issues
-
@SmirkingBandit you don't need reactive programming for this, a simple retrofit call would suffice. Also, it would be a lot of overhead while refactoring code, but here you're creating a new project
-
@sylflo Due to all the comments here, I've decided to call the guy for the next round and actually discuss this. Let's hope for the best 😁
Related Rants
It's 2017. This person used an AsyncTask to get results from an API. During a hiring task. He has over 2.5 years of experience.
undefined
http requests
whynoretrofitorvolley?
wtf
android