Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Developer Responsibility Principle

21 views

Published on

Have you ever thought about the legal implications of the software you write? Did you ever even consider that you could actually go to jail for it? Crazy as it may sound, it has already happened.
Here we'll reflect a bit on recent precedents, and we'll review testing as an ethical approach to developing software and how to prevent your software to take you places you definitely did not want to go to.

Published in: Software
  • Be the first to comment

  • Be the first to like this

Developer Responsibility Principle

  1. 1. #SCBCN18 Software Crafters Barcelona - VI Edition
  2. 2. Standard behaviour Manageable Available Reliable Truthful
  3. 3. So, tests… what good are they?
  4. 4. How do tests help us?
  5. 5. Readable Patterns Meaningful
  6. 6. /** @test */ public function updateWhenClientDoesntExist() {...}
  7. 7. /** @test */ public function syncClientNotExistsUsername() {...}
  8. 8. public function checkMailDoesntExitWithCorrectEmailAndUnexistentMail($email) {...} public function checkMailDoesntExitWithIncorrectEmailAndUnexistentMail($wrongEmail) {...} public function checkMailDoesntExitWithEmptyEmail($requestData) {...} public function checkMailDoesntExitWithCorrectEmailAndExistentMailWithoutContact($email){...} public function checkMailDoesntExitWithCorrectEmailAndExistentMailWithContact($email) {...}
  9. 9. /** @test */ public function registration() {...}
  10. 10. /** @test */ public function testGivenWhenThen() {...}
  11. 11. /** @dataProvider requestUserData ...*/ public function createUserWithCorrectData() {...}
  12. 12. /** @happyPath ...*/ public function calculateProfileWithCorrectParamShouldReturnAValidResponse(){...}
  13. 13. /** @test ...*/ public function invoiceNumberShouldBeResetWhenChangingYear() {...}

×