Tuesday, November 21, 2017

Working out of one's functional boundary...

In recent years, rather more than a decade now, QE has emerged as a strong entity in overall SDLC cycle. Not saying it was not previously, but companies realizing the cost of fixing bugs in production, moved emphasis on having a disconnected test team, giving them more power.

But one side effect of this is - Misuse of power. 
Many times I observed QE team stepping out of their boundary and doing things like suggesting functional changes at the time of delivery (not at the time of backlog grooming, which actually is a good thing). 

I remember once multiple QE's huddled around me and were trying to arm twist me in changing a UI flow which 'they thought' was right. I didn't negate, but requested them to check with Product Owner. To my surprise they wanted the change to happen then and their !!!!

Thankfully I held my position.

But many developers are not like that. Recently something similar happened, where QA reported a UI error message appearing in unexpected flow. On analysis found that it was not required at the first place.
Dug further and was surprised by the reason -
A recent guideline was given to QAs to ensure unit test code coverage for the functional areas marked as critical. (Not sure how QAs can track unit test coverage)
Blindly following that policy they asked for the code coverage for a negative scenario in a method, which was not present as per the functional flow. And hence an error message was specifically added, to ensure what QA called a proper coverage !!!!
ahem... !!!

Obviously the developer should have stood his/her ground, but to make things worse even the team architect approved the approach.

Not sure if a single person can be blamed here, but overall teams should always take a firm stance when someone is trying to encroach out of their permissible limits. Not because of pride issues, but because of the scenarios like the one mentioned above.

As usual, happy coding...

Tuesday, May 10, 2016

Debug driven developer…


I love TDD (test driven development), only problem is I don’t think that way. And also feel that it makes you write more unit test than required. Anyways … (web is filled with holy wars on to do TDD or not, so let’s not get into it)

But the other end of TDD is (what I call) “Debug Driven Development” or DDD.

Basically developers tend to write a line of code then test it using a run time debug after putting breakpoint, to see if everything is working fine till that point.

I am not totally against this technique, scenarios when there is complicated peace of logic or data structure which is difficult to visualize using static code analysis. But doing it too much is criminal, especially in the cases where
  • debug environment is complicated
  • time to reach the debug point is too far in the flow or is slow otherwise

Writing a complicated piece of code and testing if you are on right path, is so easy using a unit test (even without TDD). I have saved hours doing so.

And then not just time, using too much debug just tells that:

  • you just want to make the code work without thinking if it’s a good design,
  • no thoughts on if it’s maintainable,
  • no thoughts on if there is a better way of doing it,
  • and most of the time there was no design to start with.

So take a small piece of advice – please don’t use runtime debugging just to write code.

Friday, May 22, 2015

java has come a longggg way...

Just like any other language java has got limitations and faces criticism. and due the magnitude of usage (or because now java has become one of those "love to hate" fashion statement) the criticism is bit more ...
but after reading lots of article how java has failed, read the article how Java changed programming for ever. It reminded of how difficult it was to write production code in earlier languages

Java at 20: How it changed programming forever

Wednesday, March 4, 2015

BitTorrent 2.0 based storage service...

now this sounds really interesting
BitTorrent 2.0 guns for Dropbox, Google Drive and Onedrive with free business product

Having a bit torrent protocol to sync files and folders without a need for central server is really an amazing idea. Of-course enterprizes will keep some central servers in the setup just incase teams decide to delete folders from all the machines at the same time :)

They are claiming 16X speed compared to cloud, if its even half of that it will be still a solid alternative or rather de-facto protocol to go ahead.