Yasir Satti’s Post

View profile for Yasir Satti, graphic

Product Developer at AND Digital

#softwareDevelopment #Testing #TDD #TestDrivenDevelopment One way I find it very helpful to learn writing code quickly, but rightly, is to try to attempt to build the feature or requirement I am working on using Test Driven Development, TDD. I learned with time the following: 1. I am encouraged to understand what the user asked early before even thinking about coding, and raise a few questions for clarifications, 2. Then I went through a few iterations to get the right test in place. These iterations involved discussions with users, PO and the team. So communication is key here, helping to align perspective and understanding early in the development phase, 3. Yes, write the code! I tried to write code to make the test pass. This took me through a number of iterations of fail-pass-refactor cycles. Here I was forced to think about the design of my solution, data flow and manipulation. Again, I found myself sharing my design with the team for quick feedback. So more communication, and emphasis on aligning perspectives and understanding. Now you have your code and unit test(s) completed. Push your code and created the PR/MR for code review and approval to merge with Master. These are simple baby steps, but their impact is profound and big. They will help build a structured approach to building software features. TDD might not be suitable for all cases, but no harm in trying. Push yourself and find where it stops! Here are some useful links to experience TDD in action An introduction to TDD https://lnkd.in/eiJ7Vvrd Building login form in React JS using TDD https://lnkd.in/etVkAZ-e Building RESTful APIs in Spring Boot using TDD https://lnkd.in/e-5Ntt9Q

What is Test Driven Development (TDD) ? | BrowserStack

What is Test Driven Development (TDD) ? | BrowserStack

browserstack.com

To view or add a comment, sign in

Explore topics