Loading...
「ツール」は右上に移動しました。
利用したサーバー: wtserver2
342いいね 11414回再生

Ep.3 - Singleton | Flutter Design Patterns

This is the third episode of Design Patterns Series in Flutter, designed for beginners. In this episode, we are going to understand what Singleton is. We will go through an overly complicated definition, understand it using analogy, take dart example and understand the various ways of using Singleton, then understand when and why to use this design pattern along with the disadvantages it brings. At last, we also see how to use Singleton in Abstract Factory Pattern, pattern discussed in the 2nd episode.

Discord Server: discord.gg/Q8Rx8YWFVF

📌 Code - github.com/RivaanRanawat/flutter-design-patterns/t…
📕 Design Patterns Book - www.amazon.in/Design-Patterns-Object-Oriented-Addi…

Timestamps:
(00:00) Introduction
(00:07) Definition (Singleton)
(00:17) Analogy (Singleton)
(01:23) Code Example Approach 1 (Singleton)
(11:00) Code Example Approach 2 (Singleton)
(12:09) Code Example Approach 3 (Singleton)
(15:16) Use Cases (Singleton)
(17:35) Advantages (Singleton)
(19:20) Disadvantages (Singleton)
(22:51) Singleton in Abstract Factory

Helpful Resources:
codewithandrea.com/articles/flutter-singletons/
refactoring.guru/design-patterns/singleton

Connect With Me Here:
Instagram: instagram.com/optimalcoding
GitHub: github.com/rivaanranawat
Linkedin: www.linkedin.com/in/rivaan-ranawat
Facebook: www.facebook.com/rivaan.ranawat/
Mail: namanrivaan@gmail.com
Medium: namanrivaan.medium.com/
Twitter: twitter.com/RanawatRivaan

コメント