r/javahelp • • Jun 08 '19

What’s the most recommended way to learn Java backend for experienced iOS developer?

I guess this is a general question. I am an iOS dev for 5 years experience. I am having java Sprint Boot/ MVC / Cloud course online. I think it will be a good start to learn about the basics.

What should I do after this? I’m planning to find some popular demo repo on github and read their code. Obviously everything gonna combine with me experimenting all the time.

What do you guys think?

Thanks in advance.

23 Upvotes

9 comments sorted by

5

u/tysheng Jun 08 '19

Start with a very simple application like Google keep yourself. What you need may be user system and basic database storage support. That's what I started from an Android engineer to a backend engineer. Writing code is the best practice

3

u/colafroth Jun 08 '19

Thanks for sharing!

3

u/JoToMo1993 Jun 08 '19

baeldung is a good source for Spring Boot guides. But also for some other topics I have found input there.

But the most important thing is starting small and building bigger and bigger projects.

Maybe redo some old project with new knowledge.

An easy but expandable start is a blog.

First just the blog posts, then adding users, then login with username password / oauth / ..., Adding comment system, adding users rights, adding sending emails on schedule, ...

So start small, understand the basics of datastorage, the interfaces you want to use e.g. REST or GraphQL and extending to security, scheduled jobs, other interfaces.

Also a big topic is configuration and of cause containers.

1

u/colafroth Jun 08 '19

It’s a great recommendation! Thank you!

2

u/kevinaud Jun 08 '19

This isn't necesarilly a resource for learning Java, but once you have somewhat of a handle on the language I highly recommend you purchase a copy of Effective Java. It isn't the kind of book you read cover to cover, it's more of a reference book, but it's great to have on your desk so you can look up recommendations on how to approach things you are working on.

1

u/colafroth Jun 08 '19

Yeah thanks, I think I have that book but never used yet :)

2

u/[deleted] Jun 11 '19

My first recommendation would be to read about clean code /good architecture. Even if you know everything you read already, it will provide you with confidence and solid arguments in discussing solutions with yourself or your team mates. I'd recommend Clean Code by Robert Martin, enterprise integration partterns Gregor Hohpe(which interestingly enough helped me a lot while developing React UIs in Javascript) and xUnit Test Patterns by Gerard Meszaros. Depending on what and how you've been coding in the 5 years iOS, it's gonna be a quicker or slower read, but I'm convinced that the time is better spent on these books, than on a framework specific book which content is going to be outdated in 2 years. Also reading and understanding these books will speed up the process of reading framework specific books tremendously. My second recommendation is that once you have a basic understanding code/architecture/dependencies, trust your instincts. More often than not is a proper solution simple and quick until you try to implement it in the framework of your choice. A good example would be the never ending discussion about writing getters and setters. Your gut is rightfully telling you that you can just have a public field instead. My third recommendation is to read about the basic idea of domain driven design. Not everything mentioned there is possible and not everything possible is mentioned there, but it did send my thoughts in a good direction. Like a spiritual guide you can say. My last recommendation is totally biased and selfish: head over to https://blog.envimate.com/httpmate-intro and give it a read, follow the link to the example project and give it a try(It is a complete example of a simple micro service with persistence and dependency injection). Also check out the linked article, it contains a lot of good intel about primitive obsession and how to get rid of it - others might call this domain driven security or simply input validation. Last but not least: Have fun going your way, it's gonna be a great one :)

1

u/colafroth Jun 11 '19

Thank you sir!

2

u/Rulmeq Jun 08 '19

Work through the Oracle tutorials: https://docs.oracle.com/javase/tutorial/