意味一覧 (2件)
つま先をぶつける
解説 Definition
歩いているときなどに、足のつま先を家具や石などの固いものに強く当ててしまうことです。ふつうは、うっかりぶつけて痛い思いをする場面で使います。
Stubbing means accidentally hitting your toe against a hard object. It usually suggests a sudden, painful bump while walking.
覚え方のコツ Memory Tip
stubbing は基本形 stub に -ing を付け、短母音の後の b を重ねた形。stub one’s toe で「つま先を固い物へうっかり強く当てる」という決まった組み合わせとして覚える。hit よりも、歩行中にベッドの枠や段差へつま先だけをぶつけ、思わず足を押さえる場面がはっきりしている。I hate stubbing my toe on the bed frame のように、stubbing+my toe+on+障害物まで一続きにすると定着しやすい。
Think of the b sound in stub as the bump of your toe against something hard. A stubbed toe is a toe that hit an object by accident.
例文
I hate stubbing my toe on the bed frame.
ベッドの枠につま先をぶつけるのは本当にいやです。
He kept stubbing his toe on the same step.
彼は同じ段差に何度もつま先をぶつけていました。
Be careful, or you may end up stubbing your toe on that chair.
気をつけて。あのいすにつま先をぶつけてしまうかもしれません。
スタブ化
(意味 2)解説 Definition
テスト目的で関数やオブジェクトの実装を簡略版に置き換えるプログラミング手法。依存関係を隔離して単体テストを可能にする。
Stubbing is the act of creating or using a simple replacement part, called a stub, during software development or testing. It helps developers test one part of a program without needing the full real system. The term is mainly used in programming.
覚え方のコツ Memory Tip
stubbing はまず stub を核に覚える。stub は「中身は作り込まず、入口だけ合わせた短い代用品」という感覚。だから stubbing は、本物の実装を全部書かず、最低限の返り値だけ返す部品に差し替えること。単体テストで DB・外部 API・重い処理を切り離す場面と結びつけると定着しやすい。mock が「どう呼ばれたかを検証する」寄りなのに対し、stub は「こう返すと決めてテストを進める」寄り。stub out a method, use stubs in tests の形でも覚える。
Remember the core word `stub`: a small, simple replacement, not the real thing. In programming, connect `stubbing` with tests where you do not call the real database or API, but use a basic stand-in instead. It also helps to contrast it with `mock`, which often focuses more on checking how something was called.
例文
Stubbing the function allows testing without implementation.
関数をスタブ化すれば、実装なしでテストできる。
Developers use stubbing to isolate code units.
開発者はスタブ化によってコードの各単位を切り離す。
Stubbing simplifies complex test scenarios.
スタブ化は複雑なテストシナリオを単純化する。
stubbing の類義語・関連語
stubbing の語源・成り立ち Etymology
stub はもともと「切り株」や「短く残った固いもの」を表す語と関係があります。足のつま先をそのような固いものに当てる感じから、「つま先をぶつける」という意味で使われるようになりました。
Stub is related to words for a short, hard remaining piece, such as a stump. The verb developed the idea of striking your toe against something hard and sticking out.
同じレベルの英単語をもっと
外部辞書で調べる
この単語を英単語クイズで覚えよう