{"id":863,"date":"2019-03-01T06:05:34","date_gmt":"2019-03-01T06:05:34","guid":{"rendered":"http:\/\/buklijas.info\/blog\/?p=863"},"modified":"2019-03-30T12:19:55","modified_gmt":"2019-03-30T12:19:55","slug":"verification-vs-validation-in-practice","status":"publish","type":"post","link":"http:\/\/buklijas.info\/blog\/2019\/03\/01\/verification-vs-validation-in-practice\/","title":{"rendered":"Verification vs Validation in practice"},"content":{"rendered":"

Published on:<\/strong> 01.03.2019<\/p>\n

Verification<\/strong> is the process of checking that the software meets the specification.<\/p>\n

It is doing what you wanted it to do.<\/p>\n

An example could be that function need to add two numbers, then you verify (like write unit test) that it is correctly doing that.<\/p>\n

Validation<\/strong> is the process of checking whether the specification captures the customer’s needs.<\/p>\n

Using the example of the function need to add two numbers verification need to confirm that this function is really what user need, eg. maybe you need to multiply two numbers.<\/p>\n

Practice vs theory<\/h3>\n

When I first head about validation I was able to understand it in theory, but in practice, I was thinking it is easy to know what you want why do you need to validate it<\/strong>.<\/p>\n

Then I had personal experience of why and how validation is hard.<\/p>\n

I build wrong software for myself and I had no one else to blame<\/strong>.<\/p>\n

How I build wrong software for myself<\/h3>\n

My idea was to make software that will be run at 1 AM every day, will take all real-estate ads from https:\/\/www.njuskalo.hr\/<\/a> for my town listed on a previous day, sort them by price for a square meter and send them to email.<\/p>\n

Basically, I wanted all new ads per day to my email, sorted by price for a square<\/strong> (one day delay was fine for me).<\/p>\n

Looks simple enough, what could go wrong?<\/strong><\/p>\n

After a few days and I had it running in production and it was working, verification was successful, I every day I got all ads from the previous day.<\/p>\n

Why validation was wrong<\/h3>\n

After a week I found out that my software was useless<\/strong>.<\/p>\n

What was the problem?<\/p>\n

Rember that I wanted to get “I wanted all new ads per day to my email”, I wanted all “new ads per day”, but what I got was all updated and new ads per day.<\/p>\n

Let me explain.<\/p>\n

Every day I was getting around 200 ads per day and I noticed that a lot of them were the same ads, day after day.<\/p>\n

What was happening is that a lot of people were just updating the same ad every day<\/strong>.<\/p>\n

And they are doing this so that their ad is always on the first page, sometimes they even do it a few times per day (later I found out that a friend of a friend was contracted by one local real-estate agency to make software that will automatically update ads for them).<\/p>\n

Altho my software was working correctly, only after I have made it I found out it is useless because of wrong assumptions<\/strong>.<\/p>\n

My assumption was that every ad will be added only once, not that 60% of adds will be updated every week<\/strong>.<\/p>\n

I have solved this problem by making version two that could know if an ad is new or updated and if updated what was updated.<\/p>\n

Am I stupid<\/h3>\n

This experience was fascinating to me.<\/p>\n

On this project, I was everything<\/strong>: user, project manager, architect, coder, quality assurance, investor, every hat was on my had and I manage to build the wrong thing<\/strong>.<\/p>\n

It gave me a practical understanding of why it is common that the end user is not happy with the finaly product.<\/p>\n

Even if everything is done correctly it is possible that the final product is not solving user original problem due to wrong initial assumptions<\/strong>.<\/p>\n

How to improve validation<\/h3>\n

One approach is to make MVP, in this way you will spend fewer resources on version one<\/strong>.<\/p>\n

If validation of MVP is correct, then add additional features, if not cancel it<\/p>\n

Another approach is to get some domain knowledge ether internal or external<\/strong>.<\/p>\n

I had built a few web-scrapers in the last few years and now know a few tricks about that domain, but I learned each on the hard way<\/strong>.<\/p>\n

I also understood why some companies hire domain experts consultants (just be sure to have a good one).<\/p>\n

Technology<\/h3>\n

For those interested in what tools did use to build my software here is the list: Scrapy<\/a>, dataset<\/a>, yagmail<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"

Verification vs Validation in practice<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"spay_email":"","jetpack_publicize_message":"","jetpack_is_tweetstorm":false},"categories":[27],"tags":[38],"jetpack_featured_media_url":"","jetpack_publicize_connections":[],"yoast_head":"\nVerification vs Validation in practice - Sasa Buklijas<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"http:\/\/buklijas.info\/blog\/2019\/03\/01\/verification-vs-validation-in-practice\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Verification vs Validation in practice - Sasa Buklijas\" \/>\n<meta property=\"og:description\" content=\"Verification vs Validation in practice\" \/>\n<meta property=\"og:url\" content=\"http:\/\/buklijas.info\/blog\/2019\/03\/01\/verification-vs-validation-in-practice\/\" \/>\n<meta property=\"og:site_name\" content=\"Sasa Buklijas\" \/>\n<meta property=\"article:published_time\" content=\"2019-03-01T06:05:34+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2019-03-30T12:19:55+00:00\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\">\n\t<meta name=\"twitter:data1\" content=\"Sasa Buklijas\">\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\">\n\t<meta name=\"twitter:data2\" content=\"3 minutes\">\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebSite\",\"@id\":\"http:\/\/buklijas.info\/blog\/#website\",\"url\":\"http:\/\/buklijas.info\/blog\/\",\"name\":\"Sasa Buklijas\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":\"http:\/\/buklijas.info\/blog\/?s={search_term_string}\",\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"http:\/\/buklijas.info\/blog\/2019\/03\/01\/verification-vs-validation-in-practice\/#webpage\",\"url\":\"http:\/\/buklijas.info\/blog\/2019\/03\/01\/verification-vs-validation-in-practice\/\",\"name\":\"Verification vs Validation in practice - Sasa Buklijas\",\"isPartOf\":{\"@id\":\"http:\/\/buklijas.info\/blog\/#website\"},\"datePublished\":\"2019-03-01T06:05:34+00:00\",\"dateModified\":\"2019-03-30T12:19:55+00:00\",\"author\":{\"@id\":\"http:\/\/buklijas.info\/blog\/#\/schema\/person\/780025d597f1c5df3cc156eaffc8c561\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"http:\/\/buklijas.info\/blog\/2019\/03\/01\/verification-vs-validation-in-practice\/\"]}]},{\"@type\":\"Person\",\"@id\":\"http:\/\/buklijas.info\/blog\/#\/schema\/person\/780025d597f1c5df3cc156eaffc8c561\",\"name\":\"Sasa Buklijas\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"http:\/\/buklijas.info\/blog\/#personlogo\",\"inLanguage\":\"en-US\",\"url\":\"http:\/\/0.gravatar.com\/avatar\/9f6f7de5a4882517ca0e4a8ebd607925?s=96&d=mm&r=g\",\"caption\":\"Sasa Buklijas\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p5YHGV-dV","_links":{"self":[{"href":"http:\/\/buklijas.info\/blog\/wp-json\/wp\/v2\/posts\/863"}],"collection":[{"href":"http:\/\/buklijas.info\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/buklijas.info\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/buklijas.info\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/buklijas.info\/blog\/wp-json\/wp\/v2\/comments?post=863"}],"version-history":[{"count":5,"href":"http:\/\/buklijas.info\/blog\/wp-json\/wp\/v2\/posts\/863\/revisions"}],"predecessor-version":[{"id":889,"href":"http:\/\/buklijas.info\/blog\/wp-json\/wp\/v2\/posts\/863\/revisions\/889"}],"wp:attachment":[{"href":"http:\/\/buklijas.info\/blog\/wp-json\/wp\/v2\/media?parent=863"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/buklijas.info\/blog\/wp-json\/wp\/v2\/categories?post=863"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/buklijas.info\/blog\/wp-json\/wp\/v2\/tags?post=863"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}