日記

練習の力:シングルトン

投稿日:

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

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

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

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

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

ありがとうございます。

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 を使っています。コメントデータの処理方法の詳細はこちらをご覧ください

関連記事

no image

The Help Along The Journey・冒険の手伝い

Introduction There is a saying, “B …

オフィスでDIY!~自転車ラック編~

こんにちは。たなかです。 ロードバイクで通勤をしている私ですが、オフィスにはロー …

MacBookProの黄ばみ?を直す方法

MacBookProを使っているのですが、いつの間にか画面の一部がちょっと黄色く …

autumn_fall

Thanksgiving’s Absolute Values・感謝祭と絶対値

Hey everyone! It’s ducky! Tomorrow …

no image

完全食COMPだけ生活してみました。

こんにちは、コーテッグのこやまです。 最近、完全食COMPだけを食べる生活を始め …