日記

練習の力:シングルトン

投稿日:

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

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

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

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

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

ありがとうございます。

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 …

会社に懸垂バーを設置してから半年が経ちました。

こんにちは。たなかです。 今年の春にCoteggに懸垂バーが設置されて、半年ほど …

【イベントレポート】エンたまもくもく会(Web系技術)#3

   はじめに こんにちは、エンジニアの戎島(エビスジマ)です。 先日、弊社オフ …

no image

What drives my motivation?

Hello everyone, it is Ducky! This week, …

autumn_fall

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

Hey everyone! It’s ducky! Tomorrow …