TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: Clean Android development in 2018?

8 点作者 cunidev超过 6 年前
I&#x27;ve made some Android apps at the time of 4.x, and the Java APIs looked actually quite messy to me. I&#x27;ve been recently planning to start once again working on Android app development, and it looks like most things have changed: Flutter and other new UI libs by Google, Fragments finally on the way to being discontinued, but I can&#x27;t find a beginner friendly, up to date guide for Android development that doesn&#x27;t rely on deprecated&#x2F;outdated libraries. I&#x27;m trying to build a simple client app for a web service with common features and not much more (list, search, comments, RSS reader...), and I&#x27;d like such simple app to have an equally simple (and possibly future-proof) codebase. Is Google&#x27;s new Flutter worth using or still immature?<p>Thanks HN!

4 条评论

fakeElonMusk超过 6 年前
There are lots of online resources for learning Android - Pluralsight, Udemy, Treehouse and going through the Android dev basics site<p><a href="https:&#x2F;&#x2F;developer.android.com&#x2F;training&#x2F;basics&#x2F;firstapp&#x2F;" rel="nofollow">https:&#x2F;&#x2F;developer.android.com&#x2F;training&#x2F;basics&#x2F;firstapp&#x2F;</a><p>Not sure what you mean by &quot;clean&quot;. APIs and Frameworks are always evolving. You have to keep up to date and understand the main problem sets that are part of the platform (loading Bitmaps efficiently, activity lifecycle, etc.). And no Fragments are not being discontinued. You are probably referring to the guidelines to use the support Fragment library instead of the older Fragment classes.<p>I build mobile apps for a living and if you want long term stability and performance, my advice would be to go native with Java&#x2F;Kotlin. If you ever want to build for iOS it&#x27;s not that hard to pick up Swift&#x2F;XCode - the platforms become more and more similar as they evolve.<p>There are plenty of people using RN and maybe Flutter too but all the mobile devs I know who work for clients and &#x2F; or ship their own apps use Java &#x2F; Swift.<p>Feel free to comment if you have more questions.<p>Enjoy!
johnmajor超过 6 年前
I think learning Android in 2018 is very exciting now as Google officially supports Kotlin and introduction of new set of libraries such as Android Jetpack. <a href="https:&#x2F;&#x2F;developer.android.com&#x2F;jetpack&#x2F;" rel="nofollow">https:&#x2F;&#x2F;developer.android.com&#x2F;jetpack&#x2F;</a> By following newly introduced jetpack, you could avoid most of the deprecated libraries.<p>And going through the google architecture blueprints repo and sample <a href="https:&#x2F;&#x2F;github.com&#x2F;googlesamples&#x2F;android-architecture" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;googlesamples&#x2F;android-architecture</a> will help you understand how you should approach to your new apps development and help you get started in a right way.
评论 #17840085 未加载
slow_donkey超过 6 年前
Used to do Android dev - if you&#x27;re referring to CLEAN as in the specific architecture I believe it&#x27;s way overkill for mobile apps unless you&#x27;re doing something truly complex.<p>Most apps simply present content from an API and you can simply use an MVP&#x2F;MVC architecture.<p>Imo the only libraries you&#x27;d need are for http (retrofit), possibly image loading (glide), and caching (disk lru cache).<p>You can also ask on Reddit.com&#x2F;r&#x2F;androiddev - lots of great people there.<p>Fwiw, I&#x27;ve mostly moved to flutter for mobile but it is definitely not feature complete.
评论 #17840088 未加载
factorialboy超过 6 年前
Kotlin helps a lot with the code readability. IMHO.