What are your thoughts on this?
I am constantly improving the series with whatever information I can get my hands on, therefore, please, do leave a comment, however positive/negative it is.
Thank you!
What are your thoughts on this?
I am constantly improving the series with whatever information I can get my hands on, therefore, please, do leave a comment, however positive/negative it is.
Thank you!
For further actions, you may consider blocking this person and/or reporting abuse
Eric Willis -
Nhan Nguyen -
Alee1454 -
Pankaj Chouhan -
Once suspended, codevault will not be able to comment or publish posts until their suspension is removed.
Once unsuspended, codevault will be able to comment and publish posts again.
Once unpublished, all posts by codevault will become hidden and only accessible to themselves.
If codevault is not suspended, they can still re-publish their posts from their dashboard.
Once unpublished, this post will become invisible to the public and only accessible to Sergiu Mureşan.
They can still re-publish the post if they are not suspended.
Thanks for keeping DEV Community safe. Here is what you can do to flag codevault:
Unflagging codevault will restore default visibility to their posts.
Top comments (6)
Good code is its own comment.
I agree, but it depends on the language. In a strongly typed language that is usually the case but when you don't even know what is the type of data that the function returns then you might need some comments.
That's why you shouldn't have arbitrary variable names (-> good code)...
Imagine the following (pseudo-)Common Lisp code:
Chances are that
username
will be a string - which is obvious even 35734 lines later. When in doubt, you might even prefix it like you would do in strongly typed languages:Admittedly,
<type>Number
is a horrible name for a variable. ;-)I fully agree
The problem is that there are times we don't create good code, we create bad code in a hurry and comment it (instead of refactoring it) due to time constraints. Couple that with working in a team of developers and comments become the norm. Unfortunately, we can't base our assumptions that the whole team will make good code and not create ambiguity with their naming.
If you don't work in a team, then by all means, don't use comments, that's what I usually do 99% of the time in my personal side projects.
Believe me, I wish we could simply get away from comments altogether since they:
It is everyone's responsibility to make a better team. :-)
Ha! Without any comments, I would not understand some of my code after a few months ... but I'm working on it!
Are you using split screen windows 10 due to lack of time and workload is more.