
#Cropit bad quality stackoverflow how to
Not only does the comment help the reader understand the code in the current and referenced methods, it is helpful for determining whether the code is still needed and how to test it. I’ve seen students in upper-division computer science classes add a comment to each closed brace to indicate what block is ending: if (x > 3) Many junior programmers write too many comments because they were trained to do so by their introductory instructors. I get this error : Uncaught TypeError: Cannot read property 'push' of undefined at Cropit.init (:274) at new Cropit (:194) at. Rule 1: Comments should not duplicate the code The rest of this article explains each of these rules, providing examples and explaining how and when to apply them. Rule 9: Use comments to mark incomplete implementations. Rule 7: Include links to external references where they will be most helpful. Rule 6: Provide links to the original source of copied code. I needed to changed the crop dimension for my project but it took me a while to look for how to reinitialize 'cropit'. Rule 5: Explain unidiomatic code in comments. Rule 4: Comments should dispel confusion, not cause it. Rule 3: If you can’t write a clear comment, there may be a problem with the code. Rule 2: Good comments do not excuse unclear code. Rule 1: Comments should not duplicate the code. We believe that success is a pattern that stems from quality and. We strive to deliver lasting value to our customers. Here are some rules to help you achieve a happy medium: We are committed to excellence in everything we do. 7 8 It features questions and answers on a wide range of topics in computer programming. 4 5 6 It was created in 2008 by Jeff Atwood and Joel Spolsky. It is the flagship site of the Stack Exchange Network.
#Cropit bad quality stackoverflow professional
While all of these points are true, it would be a mistake to go to the other extreme and never write comments. C 3 Stack Overflow is a question and answer website for professional and enthusiast programmers.

