日記

練習の力:シングルトン

投稿日:

こんにちは、ダッキーです。

みんな元気していますか。
最近コロナウィルスが流行っていて、世界中にみんなが心配しているかもしれません。
その心配からこそ、家を出掛けたくない気持ちになってしまいます。

では、家で引きこもっている間に何をするべきでしょうか。
それは自分で得たスキルを磨くことです。

確か、スキルとは自分の力で何をしてどれくらい磨いたら品質が上がるとか時間が短くなることです。
短くなればなるほどいろんなことができるようになります。それで反省できます。

私は最近デザインパターンを勉強しています。
特に、何ヶ月前にシングルトンを勉強していました。
シングルトンは言葉を分割してみたらシングルが入っています。
そのシングルとは一つしかないことです。
プログラミングに対して、クラスのインスタンスが一つしかないです。
使う機会があまりないですが、他のデザインパターンも覚えていたらいつ使うか早く決められます。

ありがとうございます。

Hi everyone, it is Ducky!

How are you all doing?
Lately, the Covid-19 has been on the rise, so the world is starting to panic.
With that panic, people don’t really want to leave their houses.

So what should you be doing while being holed up in there?
Well, you should be sharpening the skills that you already have.

A skill is an action that you tackle that takes a certain amount of time that outputs a set quality.
But of course, the more you refine the skill, the faster you get and the better the output.

And lately, I have been learning about design patterns.
What I remember the most are singletons.
Breaking up the word, it has the word single in it.
So a singleton only exists once.
And in programming, there is only one class instance of a singleton.
I haven’t really had the chance to be able to use it much, but learning other design patterns as well would help you be able to decide what design pattern to implement for your problem.

Thanks for reading.

-日記

執筆者:


comment

メールアドレスが公開されることはありません。 が付いている欄は必須項目です

このサイトはスパムを低減するために Akismet を使っています。コメントデータの処理方法の詳細はこちらをご覧ください

関連記事

Salmon, Trout, and Avocado Egg Benedict

水断食をするエンジニア・Water Dieting Engineer

English written below ↓ おはようございます! 初投稿する …

【COMP】信玄COMPグミを作ってみました(桔梗信玄餅+COMPグミ)

COMPに新しい商品が加わったようで、また一袋もらいました。 COMPグミです。 …

no image

“on” and “for”

Hello, it is Justin again! Today I am go …

no image

寝ながら動画をみれるガジェットが便利。

こんにちは、コーテッグのこやまです。 「あー。何をするのもめんどくさい。」そんな …

no image

[日記]アニメーション覚えはじめました。

こんにちは、コーテッグの小山です。 Angularのページングアニメーションを作 …