ОТНОСТНО ТОЗИ ЕПИЗОД
We've mentioned the book "Effective Java" by Joshua Bloch quite a few times on previous episodes. At this point, everyone knows they should have read this book (quadruple times). But it's a dense read and everyone could use a reading buddy. Also, what does Effective Java look like through the eyes of an Android developer?
In this second installment of our Fragment (a.k.a mini-episode), we thought we'll do our listeners a favor and help with that reading. We introduce the very first of these venerable "Items": Consider providing static factory methods instead of constructors.
Stay tuned for more items from our "Effective Java for Android developers" Fragment series.
Show Notes: Consider providing static factory methods instead of constructors- static factory method
makeTextfor Toast class [androidxref.com] - ObjectAnimator [androidxref.com]:
- You can control the name and thus give it much more meaningful names
- You are not required to create a "new" object each time they are invoked
- You can even return an object that's a subtype of the return type (unlike constructors which only return class type)
- e.g. Java Collections framework [grepcode.com]
- Classes without public or protected constructors cannot be subclassed
- Static factory methods are not readily distinguishable from other static methods
- "Consider" using static factory methods (not always)
- Use
newInstancewhen creating Fragments [androiddesignpatterns.com] - Use
newIntentstatic factory method for creating intents inside the target activity.
- @fragmentedcast [twitter.com]
- @donnfelker [twitter.com]
- @kaushikgopal [twitter.com]
Английски
САЩ
ТРАНСКРИПЦИЯ 🔗
Are you the producer of this podcast?
Add a podcast transcript
Need Audio-to-Text?
Transcribe with Listen411 in Just 60 Seconds
ТЪРСЕНЕ на МИНАЛИ ЕПИЗОДИ
Търсене в минали епизоди на Fragmented - AI Developer Podcast.
ДРУГИ ЕПИЗОДИ В ТОЗИ ПОДКАСТ
Agent Skills look simple, but they are one of the most powerful building blocksin modern AI coding workflows. In this episode, Kaushik and Iury break down whento use skills, how progressive disclosure works, and how skills compare withcommands, instructions, and MCPs.
Full shownotes at fragmentedpo…
MCPs are everywhere, but are they worth the token cost? We break down what Model Context Protocol actually is, how it differs from just using CLIs, the tradeoffs you should know about, and when MCPs actually make sense for your workflow.
Full shownotes at fragmentedpodcast.com/episodes/302.
Show No…
Most folks reference "AI coding" like it's one thing. It's really not. In this foundational episode Kaushik & Iury walk through (at least) four paradigms — from super autocomplete to agent orchestration — each with different workflows, expectations, and mental models.
What do most developers fo…
Ever get asked "how do LLMs work?" at a party and freeze? We walk through the full pipeline: tokenization, embeddings, inference — so you understand it well enough to explain it. Walk away with a mental model that you can use for your next dinner party.
_Full shownotes at fragmentedpodcast.com.
Sho…
Fragmented is changing. New direction, new cohost. Kaushik explains the pivotfrom Android to AI development and introduces Iury Souza.
From vibe coding to software engineering — one episode at a time.
Full shownotes at fragmentedpodcast.com.
Contact us
Newsletter
Website
Contact us
Youtube
Co-host…
Опровержение: Подкастът и произведенията на изкуството, вградени на тази страница, са от Kaushik Gopal, Iury Souza, което е собственост на неговия собственик и не е свързано с или одобрено от Listen Notes, Inc.
РЕДАКТИРАНЕ
Благодарим Ви, че помогате да поддържаме базата данни за подкастове актуална.