This is a great idea, more pattern videos would be nice
@sandrinjoy Жыл бұрын
you can keep the instance variable as a static variable inside the class itself. which is much more clearer.
@ELMlKO Жыл бұрын
thanks xavier
@pcost Жыл бұрын
Really good video! I love those small knowledge pills a lot.
@alivaliev5152 Жыл бұрын
What theme are you using? It looks gorgeous
@mostafakheder7721 Жыл бұрын
Wonderful thank you for your nice explanation ❤
@antonpetrov145 Жыл бұрын
cool video, one usecase for singleton is creating a database connections pool
@eleah2665 Жыл бұрын
frameworks are polluting our brains. Yes! Patterns is a good topic. Thanks.
@adolfomartin5456 Жыл бұрын
Can we use private static variable for implement the singleton?
@BeepBoop2221 Жыл бұрын
One thing i hated about patterns at universities was they jusy say here are the patterns but dont show you how they are used.
@Xomps Жыл бұрын
What are the advantages of this? If I export an instance of the class it works the same I think, so maybe the advantage is that it's only instantiated on demand? Am i missing something?
@SeraphicRav Жыл бұрын
Maybe when coding for IE (if it does not supports modules) or when not using modules at all
@developedbyed Жыл бұрын
You are better off not using classes and take advantage of Javascripts prototypal inheritance. Like Seraphic said, you can just do modules
@freemancharles2491 Жыл бұрын
Nice video as always, still eating my popcorn 😅❤
@tdbnz123 Жыл бұрын
Great video Love from New Zealand Thomas
@tasmto Жыл бұрын
More of this please and OOOH I have the same wallpaper!!
@kezevraanwar2 Жыл бұрын
You’re teaching is so straight to the point 👍🏾👍🏾
@icetmzz9074 Жыл бұрын
does anyone know what theme he's using?
@bonsayeb96207 ай бұрын
Where is the next video? Thanks for this one!
@anasouardini Жыл бұрын
I don't get it; if you only need one instance, then why the construction?
@jimhawkins2483 Жыл бұрын
can i ask for a desktop image?) thx in advance)
@janjgaval Жыл бұрын
can you update old tutorials How To Create a HTML Dropdown Menu | CSS Dropdown Tutorial like this with new css features or how create carousel with html css and js
@developedbyed Жыл бұрын
Yes I will
@janjgaval Жыл бұрын
@@developedbyed you are great man 🫂
@juanmacias5922 Жыл бұрын
Makes me think closures are just a mutation of singletons lol
@cooltv9943 Жыл бұрын
Hi dev i'm the first one
@developedbyed Жыл бұрын
Are you thoooo???? Hahaha
@ThopX14 Жыл бұрын
very funny dude 😀
@j.r.r.tolkien8724 Жыл бұрын
But doesn't this mean OOP sucks 😂
@coder_one Жыл бұрын
Every time I see someone pushing class-based OOP into JS, it makes me want to cry.... Everything you want to achieve in programming can be done by programming functionally, and it will be safer, easier to maintain and more fun to work with
@sonilpro8526 Жыл бұрын
Until you try programming something that is not a high school project