You are currently viewing Fun with Interfaces: Testing

Fun with Interfaces: Testing

  • Post category:Live Blog
  • Post comments:2 Comments
  • Reading time:4 mins read

Oh how much fun we had today on my live stream, it’s just amazing. First, all the viewers had fun of waiting for me to go live for nearly an hour, and then at some point I managed to unplug my reflector. Perks of live streaming 😁

First of all, I would like to – once again – apologize to everyone who waited for me to go live. I’ll explain in the end of this blog what really happened. For now, let’s go on-topic.

If you didn’t have a chance to follow my stream, you can check the recording from here:

Today’s session is important because it illustrates why you would actually want to go to the pains of using interfaces in places where you normally don’t see a need for them. Microsoft has made sure any use cases for interfaces when enums are involved are totally clear. However, interfaces can be very useful in scenarios where no enums are actually needed. By applying the dependency injection pattern, and using interfaces to represent functionality, you not only make your code better structured, but you also make it more testable.

You can access all of the code examples on my GitHub page, here:

What went wrong?

Unfortunately, today I blundered again. At 2PM I went on happily, started my stream, checked that YouTube was receiving it. My phone wasn’t ringing so no technical issues… All seemed fine. Yet, it wasn’t.

YouTube has this Schedule feature which you can use to schedule your stream. So I scheduled my stream this morning and then used the stream’s direct link to announce the event on social platforms. However, when I started streaming, I didn’t realize that my OBS used the general live stream key (which I can use at any time to just randomly go live without a scheduled stream), instead of my scheduled stream key (which is different). Also – I didn’t click the “Go Live” button (and I am pretty sure it wasn’t there) which sometimes I have to press.

What happened is that I presented everything for nearly an hour, before realizing something must be wrong when there was no chat activity. Normally people say “hi” or something, they also ask questions. This time – nothing. When I finished the stream, YouTube still showed the stream as “scheduled”, and when I clicked it, it didn’t actually record anything.

And then I opened Teams to check with Waldo if he had by any chance been there. He said he was, but that there was no stream.

So – I went back, and reconfigured it, used the correct key, and redelivered the entire presentation. It would have been almost perfect if I didn’t knock the reflector cable with my foot, unplugging the reflector and causing me to perform some unexpected live gymnastics.

Yeah 😁

Anyway, the quality of my streams is almost there, in a year you wouldn’t know what kind of amateur I’ve been in the early beginnings 😂

Enjoy the stream, and let me know if you have any questions. The audience today didn’t have many. But then, again, there wasn’t much audience, because most gave up when I wasn’t really going live at the announced time. I don’t blame anyone – I’d do the same.


Vjeko has been writing code for living since 1995, and he has shared his knowledge and experience in presentations, articles, blogs, and elsewhere since 2002. Hopelessly curious, passionate about technology, avid language learner no matter human or computer.

This Post Has 2 Comments

Leave a Reply