An error from my past project
Last semester,we were asked to finish a big project in the Java web class.Through my working I of course made and debugged many bugs.
However,I found it was much harder for me when it close to completed.There would always come out some errors said there were some unknown errors happened that the program can not run more when I tried some special input combination with the compiler said no fault existed in my code.So what I could do was try to find the wrong place by try different data and observe what output would they mad.Finally I found what truly made those wrong output was not my program code,but my database code:wrong expression of search and insert operation.
After this experience I truly find how important it is to keep every condition into consideration:when some errors happen,we shouldn't only focus on our code,we should also take notice of other aspects we use in our program such as database expression grammer.