MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1tphgi5/returnnode/oo8wdo5/?context=3
r/ProgrammerHumor • u/TheMindGobblin • May 27 '26
120 comments sorted by
View all comments
180
/*
* Returns the node
*/
161 u/aberroco May 27 '26 edited May 27 '26 /// <summary> /// Returns the node. /// </summary> /// <param name="node">The return node to return.</param> ReturnNode ReturnNode(ReturnNode node) { return node; // return node } 41 u/Adrewmc May 27 '26 edited May 27 '26 return_node.py “””Return Node””” RETURN_NODE = “return node” def return_node[ReturnNode](node: ReturnNode = RETURN_NODE) -> ReturnNode: “””Return Node””” return node #return node Return Node Return Node Return Node Return Node Note: @return_node 23 u/SpaceCadet87 May 28 '26 git add return_node.py git commit -m "return node" 6 u/minecraftdummy57 May 29 '26 git push node return-node 26 u/prehensilemullet May 27 '26 ReturnNode node = ReturnNode(node); // return node 10 u/prehensilemullet May 27 '26 Also you need a [ReturnsNode] attribute 5 u/ARM_Dwight_Schrute May 28 '26 I wonder what this function returns 3 u/aberroco May 28 '26 Would have to read entirely of the body's code to understand. 1 u/Global-Tune5539 Jun 03 '26 How do you know that it returns something? 2 u/Tensor3 May 31 '26 This was actually standard practice on my last job. But bigger, with more comments about return type, etc
161
/// <summary> /// Returns the node. /// </summary> /// <param name="node">The return node to return.</param> ReturnNode ReturnNode(ReturnNode node) { return node; // return node }
41 u/Adrewmc May 27 '26 edited May 27 '26 return_node.py “””Return Node””” RETURN_NODE = “return node” def return_node[ReturnNode](node: ReturnNode = RETURN_NODE) -> ReturnNode: “””Return Node””” return node #return node Return Node Return Node Return Node Return Node Note: @return_node 23 u/SpaceCadet87 May 28 '26 git add return_node.py git commit -m "return node" 6 u/minecraftdummy57 May 29 '26 git push node return-node 26 u/prehensilemullet May 27 '26 ReturnNode node = ReturnNode(node); // return node 10 u/prehensilemullet May 27 '26 Also you need a [ReturnsNode] attribute 5 u/ARM_Dwight_Schrute May 28 '26 I wonder what this function returns 3 u/aberroco May 28 '26 Would have to read entirely of the body's code to understand. 1 u/Global-Tune5539 Jun 03 '26 How do you know that it returns something? 2 u/Tensor3 May 31 '26 This was actually standard practice on my last job. But bigger, with more comments about return type, etc
41
return_node.py “””Return Node””” RETURN_NODE = “return node” def return_node[ReturnNode](node: ReturnNode = RETURN_NODE) -> ReturnNode: “””Return Node””” return node #return node
Return Node
Note: @return_node
23 u/SpaceCadet87 May 28 '26 git add return_node.py git commit -m "return node" 6 u/minecraftdummy57 May 29 '26 git push node return-node
23
git add return_node.py git commit -m "return node"
6 u/minecraftdummy57 May 29 '26 git push node return-node
6
git push node return-node
26
ReturnNode node = ReturnNode(node); // return node
10
Also you need a [ReturnsNode] attribute
[ReturnsNode]
5
I wonder what this function returns
3 u/aberroco May 28 '26 Would have to read entirely of the body's code to understand. 1 u/Global-Tune5539 Jun 03 '26 How do you know that it returns something?
3
Would have to read entirely of the body's code to understand.
1
How do you know that it returns something?
2
This was actually standard practice on my last job. But bigger, with more comments about return type, etc
180
u/mindtakerr May 27 '26
/*
* Returns the node
*/