I was looking through StackOverflow when I came across this question. Here the author mentions his debugging style:
I am wondering how to do debugging. Currently, the following steps:I am completing a large script,Comment on everything except the part I want to check.Execute script
I am wondering how to do debugging. Currently, the following steps:
and in one of the answers, another user says that the crawler is debugging the wrong path:
Your sequence seems completely opposite to me. Here is how I do it:I am writing a test for the functionality I need.I start writing a script by executing a bit and checking the test results.I look through what I did to document and publish.
Your sequence seems completely opposite to me. Here is how I do it:
, -. , Test-driven development, .
TDD ?
.
... ... , -.
. , , .
. . .
TDD , .
. . , .
" , , ", , . , - - , .
, .
, . . - , ATDD BDD , , .
- ( , - ) . , :
, script , , - . , . , , . ; , , . , , , .
, , . , , , ? ? , TDD. , . , , , , , , , .
, , , , . TDD - .
, , . , , . "" (, ), "" (, .)
TDD, , .
TDD . , .
, :
, , . , , . , ( = ).
TDD , 100% ( ) . , , , . :
, , , . , , // . , , , , - (, ) .
script,, , .script
. ", " , . , , , , ( !), - ( , , ). . , , , - , , , , .
TDD - - . , , , . ; () ; . , - , , - . , , , - . , , ; , .
: , , ; , ; unit test. .
, , TDD ACTUAL . , . , , . . .
, -? , . . , , , 100- , , . , , , , ..
TDD, , , .
TDD. TDD , , , TDD:
TDD , , , , . , .
, , TDD hardliner. , - . , TDD, , , (, ViewResult ASP.NET MVC).
TDD , , , , = > .
100% TDD , , , , .
:
If you do this before or after writing code, this is not so important. Some people say that if you write a test after implementation, you will modify your test to match the implementation, which reduces the effectiveness of unit test.
Source: https://habr.com/ru/post/1754600/More articles:Download jQuery Script Once onClick - jqueryдобавление карты google в приложение asp.net - asp.netIn C #, how are variables using var derived in terms of memory and life cycle? - memory-managementmove cursor from input window using jquery - jquerypersonal website hacked at ovh.com, code added to html - htmlAre Java meta annotations available at runtime? - javaC ++ optimization question - c ++How to create an external jQuery file? - jqueryProblems connecting to Oracle database from Java classes (ocijdbc11.dll) - javaApplication terminated due to Popover - ipadAll Articles