Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
lotd77757yA comment or when you've read enough, there's usually some distinct patterns & style that's unique
-
@lotd i have always done it as a comment. It is more what do you write og what information do you write.
I'm interested in seeing how others do it. π -
@lotd yes I'm danish π, what reveal me
Edit: danm im new to devRant, you can see it in my profil π€£ -
Generally by committing the code myself, I trust that in most cases, seeing my name on the blame will suffice.
It I know that the feature might get moved around, or a blame record wouldn't be enough (usually if I'm explaining stakeholder decisions) I add my initials and the date after the bulk of my comment.
As I generally work on projects with many other developers, adding my name to a comment at the top of a 10k line file just wouldn't be that helpful to anyone. -
@NoMad I did at first. Now, it's just the hella long functions that bug me.
If.π It's. πOver. π100.π Lines. πPull.π Something. πOut. π -
@NoMad yeah. The rest of the development team doesn't seem to mind, but I think they're afraid of looking dumb, so they don't say anything.
-
I'd hide Easter eggs or have piece of code that does absolutely nothing or something of that lives
-
Nawap13727yI usually right a Leo Tolstoy thoughts as comment in first line of my program!
But stopped following because ppl felt it's dumb style -
Rakota817yIf it is important to the code that people should be able to contact me I include a Twitter handle. Otherwise, it is nearly always included in my Gitlab repo so people know I wrote it.
-
Never understood this concept. If you're using source control, what's the point. It reminds me of DBAs pretending to be developers and using the production SQL server and comments as source control.
-
HideN1407yI remember seeing a comment on stack overflow that was something along the lines of
//If this code works it was written by {Name}
//If not it was written by {Co-Worker}
That seems to be the safest way
Related Rants
How do you write your "identity" in your code so that others can see that it's you who made it?
Do you do it with a simple "made by" or do you write more?
question
programming
signature
projects
programmer
code
computer science
project
developer