Current Events > Not commenting your code is job security

Topic List
Page List: 1
SpriteLimit
02/01/22 1:16:59 PM
#1:


That way only you can fix it. Don't buy into the myth of commenting

---
Broken
... Copied to Clipboard!
Giant_Aspirin
02/01/22 1:18:48 PM
#2:


not commenting your code is making life harder for future you

---
Playing: Prey; Dead Cells
I hope something good happens to you today
... Copied to Clipboard!
HANGtheDJ_86
02/01/22 1:21:47 PM
#3:


Y'all got secret passwords up in this??

---
Green is the Color
... Copied to Clipboard!
Solar_Crimson
02/01/22 1:23:16 PM
#4:


Giant_Aspirin posted...
not commenting your code is making life harder for future you
This, as well as anyone else who comes after you after you leave one way or another.

---
I often wonder if we are growing as a people... or in fact, regressing.
... Copied to Clipboard!
TheMikh
02/01/22 1:24:12 PM
#5:


working for a company with NIH culture is the ultimate job security

---
http://i.imgur.com/A0TAfek.png
... Copied to Clipboard!
Trumble
02/01/22 1:25:57 PM
#6:


Giant_Aspirin posted...
not commenting your code is making life harder for future you

This. This. So much fucking this.

---
Anything is a Trumble if you're brave enough.
... Copied to Clipboard!
MacadamianNut3
02/01/22 1:26:42 PM
#7:


I already have job security, and commenting my code and documenting everything saves me from a lot of future headaches

I've probably annoyed my coworkers by how much I document shit and ask them for details when they figure something out on a project, but it comes in handy. Most recent example was last week when a few people were pinged for some question and guess who had the answer on the very last line of our readme

---
Roll Tide & Go Irish
... Copied to Clipboard!
theAteam
02/01/22 1:27:28 PM
#8:


Giant_Aspirin posted...
not commenting your code is making life harder for future you

this lol

"what the fuck did I do here"

---
Buffalo Bills
... Copied to Clipboard!
COVxy
02/01/22 1:27:57 PM
#9:


TheMikh posted...
working for a company with NIH culture is the ultimate job security

Lol, what do you mean by this?

---
=E[(x-E[x])(y-E[y])]
... Copied to Clipboard!
MutantJohn
02/01/22 1:39:31 PM
#10:


Comments are a lie and waste of time

---
"Oh, my mother; oh, my friends, ask the angels, will I ever see heaven again?" - Laura Marling
... Copied to Clipboard!
TheMikh
02/01/22 1:41:12 PM
#11:


COVxy posted...
Lol, what do you mean by this?

NIH culture refers to companies that rely on software/systems they developed from scratch in-house rather than outsourcing their needs to software built and actively maintained by other shops. the endgame after like a decade or two of doing this is a mountain of legacy code only supported and used in the company and which, in time as old developers leave, nobody in the engineering department really understands and is afraid to touch for fear of breaking mission critical processes.

i took it upon myself to understand and maintain it, and over the years have basically become the lone authority on the entirety of the company's software systems infrastructure.

---
http://i.imgur.com/A0TAfek.png
... Copied to Clipboard!
SauI_Goodman
02/01/22 1:48:22 PM
#12:


Lol what theyll just fire you and change the code

---
If you can see this message it's a wonder why it hasn't been modded yet by the snowflakes.
... Copied to Clipboard!
#13
Post #13 was unavailable or deleted.
Robot2600
02/01/22 1:52:41 PM
#14:


Only the arrogance of youth leads someone to write uncommented code.

---
I missed the part where that's my problem.
... Copied to Clipboard!
COVxy
02/01/22 1:55:01 PM
#15:


TheMikh posted...
NIH culture refers to companies that rely on software/systems they developed from scratch in-house rather than outsourcing their needs to software built and actively maintained by other shops. the endgame after like a decade or two of doing this is a mountain of legacy code only supported and used in the company and which, in time as old developers leave, nobody in the engineering department really understands and is afraid to touch for fear of breaking mission critical processes.

i took it upon myself to understand and maintain it, and over the years have basically become the lone authority on the entirety of the company's software systems infrastructure.

Interesting, haven't heard this before. Does NIH refer to National Institutes of Health?

---
=E[(x-E[x])(y-E[y])]
... Copied to Clipboard!
MutantJohn
02/01/22 1:56:53 PM
#16:


[LFAQs-redacted-quote]

Pull requests should link to a Jira task

---
"Oh, my mother; oh, my friends, ask the angels, will I ever see heaven again?" - Laura Marling
... Copied to Clipboard!
MutantJohn
02/01/22 1:57:16 PM
#17:


COVxy posted...
Interesting, haven't heard this before. Does NIH refer to National Institutes of Health?
Not-in-house

---
"Oh, my mother; oh, my friends, ask the angels, will I ever see heaven again?" - Laura Marling
... Copied to Clipboard!
COVxy
02/01/22 1:58:07 PM
#18:


MutantJohn posted...
Not-in-house

Ahhhhhh, makes so much more sense.

---
=E[(x-E[x])(y-E[y])]
... Copied to Clipboard!
#19
Post #19 was unavailable or deleted.
TheMikh
02/01/22 2:03:56 PM
#20:


Robot2600 posted...
Only the arrogance of youth leads someone to write uncommented code.

in my opinion comprehensive documentation (e.g., in wiki or javadoc style) and variables / functions / classes that are self-explanatory and well-modularized are more important than commenting.

i mostly comment to offer my rationale with code that isn't so intuitive even with the aforementioned best practices, and to summarize functions if they aren't obvious from the names.

COVxy posted...
Interesting, haven't heard this before. Does NIH refer to National Institutes of Health?
"not invented here."

MutantJohn posted...
Not-in-house
i haven't heard not-in-house used before but yeah, it sounds synonymous.

---
http://i.imgur.com/A0TAfek.png
... Copied to Clipboard!
Giant_Aspirin
02/01/22 2:07:48 PM
#21:


MutantJohn posted...
Pull requests should link to a Jira task

yes, but code should be self documenting. i shouldn't need to go out to an external system to understand why the code does what it does -- that's precisely what comments are for.

---
Playing: Prey; Dead Cells
I hope something good happens to you today
... Copied to Clipboard!
MutantJohn
02/01/22 2:37:52 PM
#22:


Giant_Aspirin posted...
yes, but code should be self documenting. i shouldn't need to go out to an external system to understand why the code does what it does -- that's precisely what comments are for.
That's not what self-documenting means.

---
"Oh, my mother; oh, my friends, ask the angels, will I ever see heaven again?" - Laura Marling
... Copied to Clipboard!
#23
Post #23 was unavailable or deleted.
Were_Wyrm
02/01/22 4:47:59 PM
#24:


My favorite is writing a comment block around a section of code that basically says "I know this looks wrong, but it works. Never change this code"

---
I was a God, Valeria. I found it...beneath me. - Dr. Doom
https://i.imgur.com/0EJvC4l.jpg
... Copied to Clipboard!
TheMikh
02/01/22 4:59:43 PM
#25:


[LFAQs-redacted-quote]


I'm surprised unit testing hadn't been brought up before now, but I agree that it's especially critical for ensuring that components do exactly what they're supposed to. Long before developers, other departments, and even end users would otherwise detect and report issues, the unit tests will catch them if written properly and comprehensive in the scope they cover. It spares the company a lot of potential man-hour allocation expenses, as well as whatever other costs would have been incurred had the issues surfaced in a production environment.

---
http://i.imgur.com/A0TAfek.png
... Copied to Clipboard!
pinky0926
02/01/22 5:01:36 PM
#26:


If the only safety net you have as a coder is that your code is too labyrinthian for anyone else to understand, your job security is not good by definition.

---
CE's Resident Scotsman.
http://i.imgur.com/ILz2ZbV.jpg
... Copied to Clipboard!
#27
Post #27 was unavailable or deleted.
s0nicfan
02/01/22 5:02:56 PM
#28:


If you're not commenting your code before writing it than you're an amateur and I hope for everyone's sake nothing you do is safety critical.

---
"History Is Much Like An Endless Waltz. The Three Beats Of War, Peace And Revolution Continue On Forever." - Gundam Wing: Endless Waltz
... Copied to Clipboard!
MutantJohn
02/02/22 11:04:25 AM
#29:


s0nicfan posted...
If you're not commenting your code before writing it than you're an amateur and I hope for everyone's sake nothing you do is safety critical.
I think you confused this with "writing your tests before writing the code".

Plus, safety-critical has extra components in the workflow added to it.

Again, comments really don't matter. They help, for sure, but they don't imply 1. software quality and 2. what the software actually does.

Comments are all talk whereas code is all walk, baby.

---
"Oh, my mother; oh, my friends, ask the angels, will I ever see heaven again?" - Laura Marling
... Copied to Clipboard!
s0nicfan
02/02/22 11:11:19 AM
#30:


MutantJohn posted...
I think you confused this with "writing your tests before writing the code".

Plus, safety-critical has extra components in the workflow added to it.

Again, comments really don't matter. They help, for sure, but they don't imply 1. software quality and 2. what the software actually does.

Comments are all talk whereas code is all walk, baby.

Both, but I meant commenting. It's incredibly useful to write a function description prior to writing code because you want to document what it SHOULD do so when things go wrong and someone else is trying to debug they undertand what the original intent was. Plus inline commenting prior to writing code is incredible for organization and structure. If you write your block comments before putting the implementation underneath, it also means any TODOs you throw in there are paired with what it eventually has to do. It saves a lot of time in the long run because you've fully thought through the end-to-end functionality of a function prior to starting the process of implementing it which catches any gaps in logic but also means if you have to resume another day its easy to tell where you left off.

---
"History Is Much Like An Endless Waltz. The Three Beats Of War, Peace And Revolution Continue On Forever." - Gundam Wing: Endless Waltz
... Copied to Clipboard!
Topic List
Page List: 1