Jesolo (near Venice)
18.07.2025 05:25 โ ๐ 1 ๐ 0 ๐ฌ 0 ๐ 0@codewithandrea.com.bsky.social
Flutter GDE โ I share tips about Dart & Flutter app development. Wanna learn Flutter? ๐ https://codewithandrea.com/
Jesolo (near Venice)
18.07.2025 05:25 โ ๐ 1 ๐ 0 ๐ฌ 0 ๐ 0After 17 years in the UK, Iโm moving back to Italy! ๐ฎ๐น
London has been very good to me, but itโs time to start a new chapter in life!
Super excited! โ๏ธ
Itโs still important to learn good programming principles. My focus will likely shift into teaching high-leverage skills (including how to code more productively with AI), rather than how to use this or that API/package.
10.07.2025 10:26 โ ๐ 2 ๐ 0 ๐ฌ 0 ๐ 0For me, the rewarding part is to build good products.
Code is a means to an end, so Iโm not too sentimental about who writes it (me or AI).
Pretty reasonable dev workflow:
- write detailed requirements as an issue on GitHub
- ask Claude Code to make a plan
- write it to ai_plans/issue#-and-slug.md
- let CC implement the plan
- review, tweak, test and commit
- use CC to push a PR, including the plan in the description
Friendly reminder that both good and bad coding compound over time.
AI accelerates that.
As of today, my wife has been putting up with me for 10 years. ๐
04.07.2025 06:58 โ ๐ 7 ๐ 0 ๐ฌ 0 ๐ 0Goal Replace the current image caching implementation with a built-in solution that is based on SQLite/Drift. Context Currently, the app caches images using the CustomCachedNetworkImage widget which is based on CachedNetworkImage from the cached_network_image package. With CachedNetworkImage, images are automatically cached for 7 days and always deleted afterwards, requiring a new fetch. This can lead to a poor UX because if the app is offline after a cached image has been deleted, the fetch will fail. Since images very rarely change, they should never be deleted. Proposed solution Update the implementation of CustomCachedNetworkImage so it no longer uses CachedNetworkImage. Instead, it should do the following: if the imageUrl is not already cached show a placeholder UI (same as currently implemented) fetch the imageUrl and store it in the database if fetch is successful replace the placeholder UI with the rendered image else show the error UI (same as currently implemented) else retrieve the image from the DB and show it in the UI Database implementation details Update app_database.dart by adding a new ImagesCache table that will be used to store all the fetched images The table should have the following fields: imageUrl (String) imageData (blob representing the fetched image) checksum (useful for updates) updatedAt (when the data was written) Run build_runner after defining the table, so it can be imported and it compiles successfully.
CachedNetworkImage wasn't behaving as I wanted in my app, so I just implemented a custom solution with Drift & Riverpod.
Best thing of all: Claude Code wrote all the code!
All I did was write a detailed spec and make some minor tweaks at the end.
Should I make a video about this?
Looks like generating docs is an interesting problem with different solutions and tradeoffs.
Need some more time to research this.
Iโm using Claude code.
Need to see if it can be adapted for cursor.
1. **Find Project Root and Setup Working Directory** 2. **Extract Complete Project Structure** 3. **Extract Core Code Elements** 4. **Discover Project Patterns** 5. **Analyze Architecture Patterns** 6. **Create Intelligent Groupings** 7. **Generate Fact Sheet** 8. **Generate Documentation Prompt** 9. **Generate Final Documentation** 10. **Cleanup**
I spent the last few days solving one problem:
How to generate ACCURATE documentation for existing Flutter codebases using AI.
This proved harder than expected, but I now have a reliable pipeline that can run on any project.
Should I make a video about it?
Gemini CLI prompt
Taking a new shiny tool for a ride ๐
Will report back ๐
Should I start adding tips like these to my Flutter Tips repo?
Or perhaps a new repo about AI tips?
โ ~ npx ccusage@latest monthly WARN Fetching latest model pricing from LiteLLM... ccusage 08:35:02 โน Loaded pricing for 1140 models ccusage 08:35:02 โญโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ โ โ โ Claude Code Token Usage Report - Monthly โ โ โ โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ โโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโฌโโโโโโโโโโโฌโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโ โ Month โ Models โ Input โ Output โ Cache Create โ Cache Read โ Total Tokens โ Cost (USD) โ โโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโผโโโโโโโโโโโผโโโโโโโโโโโโโโโผโโโโโโโโโโโโโผโโโโโโโโโโโโโโโผโโโโโโโโโโโโโค โ 2025-06 โ - opus-4 โ 45,657 โ 166,255 โ 6,333,383 โ 68,195,460 โ 74,740,755 โ $118.82 โ โ โ - sonnet-4 โ โ โ โ โ โ โ โโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโผโโโโโโโโโโโผโโโโโโโโโโโโโโโผโโโโโโโโโโโโโผโโโโโโโโโโโโโโโผโโโโโโโโโโโโโค โ Total โ โ 45,657 โ 166,255 โ 6,333,383 โ 68,195,460 โ 74,740,755 โ $118.82 โ โโโโโโโโโโโโดโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโดโโโโโโโโโโโดโโโโโโโโโโโโโโโดโโโโโโโโโโโโโดโโโโโโโโโโโโโโโดโโโโโโโโโโโโโ
Some people asked me if Claude Max is worth it.
To find out, you can check your usage data with:
npx ccusage@latest
Here are my stats for last month ๐
I asked Claude to generate documentation for one of my projects.
First, it estimated 8-10 days based on human work.
Then it proceeded to do it all in 20 minutes!
There were some minor inaccuracies, but that's still a ~200x time saving...
My latest newsletter is out! ๐
For a change, this month I've chosen to cover primarily AI-related stuff!
๐ Apple Liquid Glass
๐ฌ Software 3.0
โจ๏ธ AI-assisted coding (no vibes)
๐ค 12 lessons from AI pair programming
Read on for all the details ๐
codewithandrea.com/newsletter/j...
Btw if you haven't already, go follow Andrej Karpathy on YouTube.
It's incredibly rare to see an elite AI scientist teach in such a simple manner. He's like the Richard Feynman of machine learning.
A simple illustration of whoโs who in AI AI-Hype Bros - VCs - Big CEOs - Leading AI Startups - Influencers (who donโt know how to code) โAI will replace all developersโ โAI will benefit all of humankind... proceeds to layoff 10K employeesโ Realists - Pragmatists - Andrej Karpathy - Gary Marcus - Me โAI is a powerful assistant, requires human verificationโ โPartial autonomy, keep AI on the leashโ Contrarians - People with strong ego - Fossilized developers โAI is useless, makes too many mistakesโ โIโm better than that, Iโd rather do all the work myselfโ Different groups of people โ different motives and narratives Be mindful of who you listen to
Did I get it right? ๐
26.06.2025 11:57 โ ๐ 4 ๐ 1 ๐ฌ 2 ๐ 0My crash course about Claude Code is live! ๐น
Whatโs inside:
โ
ย My planning & development workflow
๐กย Tips for using CC effectively
๐ป Building a Flutter app from scratch (letting AI do the heavy lifting!)
โจ Bridging the gap to a production-ready app
Here's the full video! โถ๏ธ
youtu.be/FNpQawHnIrI?...
Lol I started getting creative with my TikTok marketing ๐
25.06.2025 09:59 โ ๐ 10 ๐ 0 ๐ฌ 1 ๐ 0I'll publish this tomorrow on YouTube!
Stay tuned here ๐
www.youtube.com/@CodeWithAnd...
Preview thumbnail of my latest YouTube video about building Flutter apps faster with Claude Code.
My latest video is nearly ready, and it's a long one!
Inside, I'll show you how Claude Code has changed my workflow, and how to make the most of it.
โชP.S: the TikTok channel is live.โฌ
โชIf you want to checkout my calisthenics progression, my username is: califitness2โฌ
Ah yes, sorry, I didn't read it properly. Article is for paid members so I can't really read it.
Regardless, you only have a performance problem if you can profile it and verify that it is so. Personally, I haven't encountered problems using Theme.of(context) in my apps.
(haven't tested the performance impact, but this is best practice and there's no reason to not use it)
23.06.2025 14:34 โ ๐ 0 ๐ 0 ๐ฌ 1 ๐ 0Simple. Use sizeOf, orientationOf, etc. instead:
app.fluttertips.dev/108
Next steps:
- Complete my "making of" video
- TikTok marketing ๐
Just launched my newest "Voice Timer" app (iOS only).
If you're curious, you can download it for free and try it here. ๐
voicetimerapp.com
Should be out next week on my YT channel. Stay tuned and subscribe here!
www.youtube.com/@CodeWithAnd...
Video editor showing the status of my upcoming video about Claude Code.
My mini-course about Claude Code is already over 1h long (and growing). ๐ช
It will show you how to do real-world AI-assisted coding like a Senior Developer.
I can't remember the last time I was this excited about a YouTube video!