Thanks for the comment . I guess I failed to communicate a particular point here.
If we can do TDD , why not write blogs, tutorials in similar way.
Example: If I had to explain Observer Pattern , I would first start with showing the end result i.e. the client code first . That would give a brief idea to the reader about the intent of the author.
Now the reader , can relate the upcoming implementation much better..
Here client code is the 'Test!!!' and the 'Observer , Subject' classes are the implementation.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Thanks for the comment . I guess I failed to communicate a particular point here.
If we can do TDD , why not write blogs, tutorials in similar way.
Example: If I had to explain Observer Pattern , I would first start with showing the end result i.e. the client code first . That would give a brief idea to the reader about the intent of the author.
Now the reader , can relate the upcoming implementation much better..
Here client code is the 'Test!!!' and the 'Observer , Subject' classes are the implementation.