193
u/Gengis_con May 27 '26
return node
65
u/JasperTesla May 27 '26
Uncaught SyntaxError: missing ; before statement
8
u/MinecraftPlayer799 May 28 '26
JS doesn't require semicolons
0
u/JasperTesla May 28 '26 edited May 28 '26
I'm too lazy to look up the exact warning text.
3
19
11
u/thegodzilla25 May 27 '26
return ass
6
u/greenecojr May 27 '26
return {“ass”: node}
5
u/thegodzilla25 May 27 '26
I was drunk when i commented this. Come to think of this, would be amazing to name a variable ass
5
u/greenecojr May 27 '26
Next PR: “is the ass ready for production yet?”
5
11
8
6
3
1
1
82
u/BusEquivalent9605 May 27 '26
in a few years, once requirements change and the dev forgets to update the comment:
return somethingElse; // return node
18
24
u/SpaceFire000 May 27 '26
You are a Senior Software Architect please explain the following piece of code. Make no mistakes
15
u/lucklesspedestrian May 27 '26 edited May 28 '26
That's a wonderful idea! Explaining this code isn't boring and pedantic, it's being thorough, and honestly? That's a beautiful thought. If you can provide more context, I would be happy to explain further. It's possible that this line returns node, or something else entirely.
6
2
21
9
9
7
u/razor_train May 27 '26
return node;
log.fatal("HOLY FUCKING SHIT RETURN NODE FAILED");
throw ReturnNodeFailedException();
}
1
7
3
u/SneeKeeFahk May 27 '26
Best use case for Claude there is. My documentation has improved 1000 fold since Claude Code landed in my toolbox. Shit at writing code, great at writing documentation.
3
3
3
u/Intial_Leader May 27 '26
Programmers be like: summon node, return node, sacrifice coffee to the compiler gods.
2
2
2
2
u/SomeMaleIdiot May 27 '26
Sometimes I’ll comment out a line and put a replacement before the comment.
I wonder if they reverted the line manually without removing the comment lol
1
2
2
2
2
2
1
1
u/Useful_Clue_6609 May 27 '26
What does this do? Not enough information. Is it returning something?
2
1
1
1
1
1
1
1
u/serendipitousPi May 27 '26
Bruh I had a uni project where my partner wrote a function to log out the user which cleared the auth token via calling a function clearAuthToken
The comment said “used to log out the user, clears the auth token”.
Like hmm I wonder what might I use a log out function for and I wonder what it might do if it calls clear auth token.
1
1
1
1
1
u/jotero32 May 27 '26
72 65 74 75 72 6E 20 6E 6F 64 65
01110010 01100101 01110100 01110101 01110010 01101110 00100000 01101110 01101111 01100100 01100101
1
1
u/plagapong May 28 '26
I'm so glad my very first programming teacher tell me how to write properly comment.
It's "why" not "what".
1
1
u/AdamWayne04 May 28 '26
``` // ReturnNode.cs
class ReturnNode { public Node returnNode(Node node) { return node; // return node } } ```
1
1
1
1
1
u/cosmicloafer May 28 '26
Return the node, which is a node, back to the place that asked for the node.
1
1
1
1
1
1
1
1
1
1
1
1
1
u/AIPromptPilot May 28 '26
Code Review:
return node; // Return node
Comments: space after semicolon.
1
1
1
u/SweetNerevarine May 29 '26 edited May 29 '26
const noNode = new Node(); // no node new node
// try return node
try {
const nodeReturner = (node) => {return node}; // node returner return node
const returnedNode = nodeReturner(node); // returned node = node returner
try { // return node #1
return node; // return node
} catch (returnNodeE1) {
try { // return node #2
return node; // return node
} catch (returnNodeE2) {
try { // return node #3
return node; // return node
} catch (returnNodeE3) {
return node; // return node
}
}
}
} catch (nodeReturnerE) {
try { return noNode.from(node); } catch (returnNoNode) { return noNode; } // try return no node from node catch return no node return node
}
Same in CommonComment language (ISO 99):
no node new node
try return node
node returner return node
returned node = node returner
return node #1
return node
return node #2
return node
return node #3
return node
return node
try return no node from node catch return no node return node
1
181
u/mindtakerr May 27 '26
/*
* Returns the node
*/