Showing posts with label teaching. Show all posts
Showing posts with label teaching. Show all posts

Saturday, December 8, 2012

S.O.L.I.D. presentation conducted!

Last Friday I conducted S.O.L.I.D. principles presentation in my company, EPAM Systems.


While I was working at Tau Craft, I tried to do it step-by-step, explaining one principle at a time.

But I stopped on the second stage -- Open-Closed Principle as I felt that I need to rethink my approach, them postponed it until this time.

Now I took a completely different approach supplying each principle with a huge amount of examples in Visual Studio 2012.

Combining live coding with theoretical part the whole things seemed more logical and memorable, so my auditory was quite satisfied (that was demonstrated by high course rates).

Let's see one good metaphor for Open-Closed Principle:
OCP

I found it during preparation and now believe that it's the best example I have ever seen! :)

There were some problems with Liskov Substitution Principle, but it went just fine thought it still needs to be improved (will do it).

The most debatable case was Dependency Inversion Principle:

DIP



We spent plenty of time discussing of how much granularity should be used.

And yes! Remember one thing: Dependency Inversion is not equal to Dependency Injection! They are often mixed out, but they should not! :)
Let's have a look at an example.

Before DIP applied:

 On this picture the layering is ok (consider namespace as an assembly/module).

UI depends on Business, Business depends on Data Access.

The DIP violated because two things:

1. UI depends on low-level detail (uses PointOfSaleTerminal class.
2. No abstractions at all.

After fixing we acquired the following picture:




 In this case dependencies were TRULY INVERTED!

All modules now depends on interface class.

I must mention that the key idea is that Dependency Injection is just a tool to implement Dependency Inversion.

You can find a good article about it in Dependency Injection is NOT The Same As The Dependency Inversion Principle by Derick Bailey

Sunday, November 25, 2012

Webinars

I think that seminars are useless in terms of learning how to conduct interesting presentation.

The main aspect of every presentation is auditory reaction. It's hardly possible to see that reaction while doing it in webinar-fashion way.

Two lectures provided last week


Two lectures provided last week:

- Event-Driven Architecture. It was the hardest one. I tried to explain this advanced topic to people, with  code example (Rhino Service Bus). As the result I may conclude that 2h is not enough for it. Will conduct once more, 4h-long this time.

The following example was used to describe event-driven system, and I am not sure if it was ok. Need to revise whole presentation.



- Introduction to UML. Actually, this was the easiest one. I spent about 5h to prepare it (a dozen of slides and a lecture plan). It was the nice one! :) Hope that it will be estimated with high scores! :)

The plan was simple: need to provide UML in scope which is widely used by developers.

I stressed that UML is useful for developers for communication purposes and provided UML in terms how to describe both static and behavior aspects of any system.

Static:
- class diagram
- deployment diagram
- component diagram

Dynamic:
- sequence diagram
- interaction diagram

Several examples were provided to establish connection between diagrams and codebase.

Wednesday, November 21, 2012

Event-Driven Architecture Presentation completed -- first round!

Провел презентацию Event-Driven Architecture, ушло 2 часа.

Подготовка заняла 16 часов.

Много примеров из жизни, но все же несколько сумбурно. Думаю, в следующий раз необходимо теоретические основы и примеры из жизни сократить до 40-30 минут, а вот практики -- побольше!

Обнаружилось, что присутствующим собственно эта практика в наибольшей степени интересна.

А вот послезавтра, 23 ноября, буду проводить новую презентацию, по UML - Introduction

Придется поработать над практическими примерами! :)

Надеюсь, все успею сделать как надо.

Monday, November 12, 2012

Another TDD session is coming soon

Another TDD session is coming soon.

I prefer to gather not more than 10-15 listeners at the same time which gives me much more responsive auditory.

Feel exciting about it.

Let's bring some brightness to the world!


Thursday, November 8, 2012

First ever BDD presentation in progress

Yesterday I provided the first part of BDD presentation.

It goes quite smoothly -- most of the people were quite responsive.

I represented BDD this way:
  • revise SCRUM workflow and point out TDD place in it
  • outline TDD "built-in" drawbacks (like Unit Tests != specification)
  • introduce the idea that we can actually use specification as a base for our unit tests
  • Reconsider testing as a whole -- we should test feature rather than a particle unit of code
  • Point out that BDD specifications can be used for communication around all people involved into development process
  • Implement a simple system (POS) as an example in BDD way (using SpecFlow .Net framework)
Yesterday I stopped on the last point -- it seems that 2 hours is engogh to provide BDD ideas, but not enough to show it in action.

Today will finish it.