0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

【JS】よく使うデザインパターン【先輩わんわんエンジニアより】

Last updated at Posted at 2022-02-18

先輩わんわんエンジニア(現役)の方が
「よく使うよ~」っていうデザインパターンを
教えてもらったので、詳細をググって勉強📝

※畑はベンチャーです🐾

※Zenが一番詳しい…いい時代になった

シングルトン

メリデメ:
インスタンス化を一度に限定することで、使用されるメモリ容量を大幅に削減できる可能性
JavaScript ではオブジェクトを直接作成できるため、通常のオブジェクトを使用するだけでまったく同じ結果を得ることができます。

シングルトンは実際にはアンチパターンと考えられており、JavaScript ではこれを避けることができます

オブザーバー

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?