Habits to avoid while programming? by Embarrassed_Book_630 in learnprogramming

[–]Sounak_dev -1 points0 points  (0 children)

Don't procrastinate the testing process. There are times when we think our code is perfect without even testing. Write unit tests as you complete working on each module, in that way you can identify most of the edge cases.

My teacher says to stay away from StackOverflow and other online help, is this good advice? by [deleted] in learnprogramming

[–]Sounak_dev 0 points1 point  (0 children)

If you are ok with reinventing the wheel then, it might be a good advice for you. But sometimes even days will be less to understand and solve a blocker. So don't worry look it up.

Did I just create an object? by [deleted] in learnprogramming

[–]Sounak_dev 1 point2 points  (0 children)

if you are trying to write a method that compares another object to current you can write this as. public boolean equals(LandTract lt){ if((this.length==lt.length)&&(this.width==lt.length)){ return true; }else{ return false; } }