Mobile Tech
1.14K subscribers
91 photos
8 videos
6 files
138 links
Michael Lazebny's blog about @dart and @flutter
lazebny.io
Download Telegram
Will it be interesting if I create quite deep overview of Riverpod?
Anonymous Poll
87%
Yep
13%
Nope
πŸ‘2
Mobile Tech
Will it be interesting if I create quite deep overview of Riverpod?
I have always thought of Riverpod as a harmful state management solution due to its global variables.
This should be a comprehensive overview, I will create small applications and dive deep into the implementation.
I will try to highlight the problems I currently think it has. But if it is good, I will say so :)
πŸ‘11πŸ”₯6
The Double-Edged Sword of Perfectionism

Perfectionism is a trait that is often revered in our society, a kind of gold standard that many aspire to. But like the sheen of real gold, this trait has its allure and its pitfalls. It embodies the relentless pursuit of perfection, always shadowed by an inner critic and an innate fear of making mistakes. While it may seem like a noble quest, the relentless pursuit of perfection can weave a web of complications, both psychological and practical.

The Hidden Challenges of Perfectionism

At its core, perfectionism isn't just about producing flawless work. It's a mindset that can lead to a host of mental health issues. Numerous studies have linked perfectionism to depression, anxiety, and eating disorders. The reason is simple: when you constantly strive for an unattainable ideal, the frequent perceived failures can undermine your mental well-being.

Moreover, the fear of failing to live up to one's own high standards often spawns a twin demon: procrastination. The overwhelming weight of potential failure, or even the sheer magnitude of the effort required to achieve "perfection," can paralyze even the most passionate individuals, preventing them from initiating projects.

This inflexibility extends to other areas of life as well. For a perfectionist, deviations from the plan, whether in daily life or in larger projects, can cause disproportionate stress. Their world often operates in binaries of success or failure, with little room for the vast shades of gray in between.

In addition, relationships, both personal and professional, can bear the brunt of perfectionist tendencies. While perfectionists are incredibly hard on themselves, they may inadvertently project these high expectations onto others, causing tension and misunderstanding.

Read more in my new article here: https://lazebny.io/perfectionism/

#perfectionism #productivity #selfgrowth #philosophy #tip
πŸ‘2πŸ”₯2
Rate preview πŸ‘πŸ‘Ž
πŸ‘20
Planning today's tasks is an amazing productivity idea!
πŸ”₯8πŸ‘4
Install dev dependencies with ease!

#tip
πŸ‘9πŸ†1
πŸ‘3
Which variable changes after hot reload?
Anonymous Quiz
43%
Final changes
21%
Const changes
11%
Both change
25%
Nobody changes
🀯4🀩3😭3❀1
Do you like such visuals? πŸ‘πŸ‘Ž
πŸ‘27πŸ‘Ž1
A few months have passed since Dart 3.0 was released with its sealed classes and pattern matching.
At that time, I removed "freezed" from "sizzle_starter" and have been testing the new feature on various projects ever since.
Finally, I've decided to undo the "freezed" deletion :)

https://github.com/hawkkiller/sizzle_starter/pull/275
πŸ‘6❀3πŸ”₯2
Often our desire is so much for the destination that we skip the journey.

We imagine life will drastically change once the goal is achieved (it won't)

Remember one simple truth: Life is about the journey, not the destination.

The same works for each field: be it a project or some other stuff.

Enjoy the #journey and live in the present moment.
πŸ‘10❀4πŸ”₯3
Do you find self-development posts interesting? Like the one above.
Anonymous Poll
73%
Yes
27%
No
I will finish riverpod article by Friday :)
πŸ‘13❀‍πŸ”₯3πŸ”₯3
Update: The article is finished, I will do some formatting tomorrow and post it in the morning! (About 9-10 CET)
πŸ”₯9
The amount of visitors on my blog is growing comparing to previous months!
❀10πŸ‘3
How to improve Flutter performance?

I've gathered some valuable insights:

πŸ‘‰ Keep build functions pure - no logic inside; build method can be called 120 times per second

πŸ‘‰ Prefer slivers for complex lists - instead of nesting multiple lists

πŸ‘‰ Make use of ListView.builder and SliverChildBuilderDelegate. When items in the list are the same size - set fixed extent

πŸ‘‰ Wrap frequently repainted widgets in RepaintBoundary

πŸ‘‰ When working with heavy computations (cryptography, encryption/decryption) - use isolates

πŸ‘‰ Keep the number of network requests to a minimum

πŸ‘‰ Dispose of resources - focus nodes, controllers, listeners

πŸ‘‰ Use the right state management solution

πŸ‘‰ Optimise assets - limit use of png, jpg files; replace svgs with icon fonts
πŸ‘‰ Set up Crashlytics or Sentry

πŸ‘‰ Don't get too involved with
third party libraries and plugins

πŸ‘‰ Use AnimatedBuilder's child field properly

πŸ‘‰ Test on real devices and look at the Profiler tab

Hope this was useful!
πŸ‘13❀5πŸ”₯4
Mobile Tech
How to improve Flutter performance? I've gathered some valuable insights: πŸ‘‰ Keep build functions pure - no logic inside; build method can be called 120 times per second πŸ‘‰ Prefer slivers for complex lists - instead of nesting multiple lists πŸ‘‰ Make use…
An interesting idea came to me:

Create a curated post on my blog where I will share the suggestions and best practices for flutter apps ( it will be updated each time I find something new )
πŸ‘22πŸ”₯5