DiscoverCup o' GoThis just in! When is a constructor that returns an interface appropriate? ๐Ÿค”
This just in! When is a constructor that returns an interface appropriate? ๐Ÿค”

This just in! When is a constructor that returns an interface appropriate? ๐Ÿค”

Update: 2024-05-17
Share

Description

Commentsย (2)

Aleksey Gureev

"Depend on abstraction, pass realization" is letter "D" in SOLID principles - dependency inversion principle. You should know what it means, don't you? )

May 20th
Reply

Aleksey Gureev

There is no point in creating the interface in tests since all the places you are going to pass data will accept your struct.

May 20th
Reply
In Channel
Cup o' Go - Trailer

Cup o' Go - Trailer

2024-02-0201:06

loading
00:00
00:00
x

0.5x

0.8x

1.0x

1.25x

1.5x

2.0x

3.0x

Sleep Timer

Off

End of Episode

5 Minutes

10 Minutes

15 Minutes

30 Minutes

45 Minutes

60 Minutes

120 Minutes

This just in! When is a constructor that returns an interface appropriate? ๐Ÿค”

This just in! When is a constructor that returns an interface appropriate? ๐Ÿค”

Jonathan Hall & Shay Nehmad