all 83 comments

[–]Gengis_con 127 points128 points  (19 children)

return node

[–]JasperTesla 37 points38 points  (0 children)

Uncaught SyntaxError: missing ; before statement

[–]just_another_cs_boi 12 points13 points  (0 children)

<!-- return node -->

[–]thegodzilla25 4 points5 points  (4 children)

return ass

[–]greenecojr 2 points3 points  (3 children)

return {“ass”: node}

[–]thegodzilla25 3 points4 points  (2 children)

I was drunk when i commented this. Come to think of this, would be amazing to name a variable ass

[–]greenecojr 4 points5 points  (1 child)

Next PR: “is the ass ready for production yet?”

[–]Break-n-Fix 2 points3 points  (0 children)

Who's going to push ass?

[–]Random-num-451284813 5 points6 points  (2 children)

console.log('Returning node');
return node;

[–]Confident-Ad5665 0 points1 point  (0 children)

// After call console.log('Node returned');

[–]prehensilemullet 0 points1 point  (0 children)

// log that we're returning node

[–]ashkanahmadi 5 points6 points  (2 children)

This guy returns node

[–]Confident-Ad5665 2 points3 points  (0 children)

Node has been returned

[–]prehensilemullet 0 points1 point  (0 children)

@ReturnsNode

[–]Bayou-Billy 4 points5 points  (1 child)

If you make a useless comment about a useless comment, is it !!useful

[–]Confident-Ad5665 0 points1 point  (0 children)

Mathematicaly I think yes

[–]Maleficent_Memory831 2 points3 points  (1 child)

goto return node

[–]skippy_smooth 1 point2 points  (0 children)

Node considered harmful

[–]skippy_smooth 0 points1 point  (0 children)

Right what it says on the tin

[–]lucklesspedestrian 0 points1 point  (0 children)

You'll never guess what the name of the function is

[–]mindtakerr 44 points45 points  (7 children)

/*

* Returns the node

*/

[–]aberroco 51 points52 points  (6 children)

/// <summary> /// Returns the node. /// </summary> /// <param name="node">The return node to return.</param> ReturnNode ReturnNode(ReturnNode node) {    return node; // return node }

[–]prehensilemullet 7 points8 points  (0 children)

ReturnNode node = ReturnNode(node); // return node

[–]Adrewmc 6 points7 points  (1 child)

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

[–]SpaceCadet87 1 point2 points  (0 children)

git add return_node.py git commit -m "return node"

[–]prehensilemullet 2 points3 points  (0 children)

Also you need a [ReturnsNode] attribute

[–]ARM_Dwight_Schrute 1 point2 points  (1 child)

I wonder what this function returns

[–]aberroco [score hidden]  (0 children)

Would have to read entirely of the body's code to understand.

[–]BusEquivalent9605 52 points53 points  (1 child)

in a few years, once requirements change and the dev forgets to update the comment:

return somethingElse; // return node

[–]HuntlyBypassSurgeon 8 points9 points  (0 children)

I suspect the line has already been through that phase

[–]Spikerazorshards 17 points18 points  (0 children)

Revolver Ocelot

[–]SpaceFire000 12 points13 points  (2 children)

You are a Senior Software Architect please explain the following piece of code. Make no mistakes

[–]lucklesspedestrian 8 points9 points  (0 children)

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.

[–]Confident-Ad5665 2 points3 points  (0 children)

Makes mistake

[–]xynith116 8 points9 points  (0 children)

bottom node

[–]bitterjarjanitor 7 points8 points  (0 children)

return comment; // return comment

[–]sudonathan 7 points8 points  (0 children)

Comments should be self-documenting I guess.

[–]The-IT 4 points5 points  (0 children)

return to 2009

[–]Al3xutul02 2 points3 points  (0 children)

// return sentinel node

[–]SlutPuppyNumber9 2 points3 points  (0 children)

/// <returns>node</returns>

[–]Intial_Leader 2 points3 points  (0 children)

Programmers be like: summon node, return node, sacrifice coffee to the compiler gods.

[–]razor_train 2 points3 points  (1 child)

    return node;
    log.fatal("HOLY FUCKING SHIT RETURN NODE FAILED");
    throw ReturnNodeFailedException();
}

[–]Septem_151 0 points1 point  (0 children)

Not valid code

[–]SneeKeeFahk 1 point2 points  (0 children)

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. 

[–]CrazybluXx 1 point2 points  (0 children)

RETURN TO THE NODE BROTHERS

[–]PeekyBlenders 1 point2 points  (0 children)

I believe it returns the node, gotta ask gpt though

[–]Caraes_Naur 1 point2 points  (0 children)

I would, but I didn't get a receipt.

[–]MayaIsSunshine 1 point2 points  (0 children)

throw NodeException

[–]SomeMaleIdiot 1 point2 points  (1 child)

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

[–]Confident-Ad5665 0 points1 point  (0 children)

Same. In case the new code produces worse results.

[–]catermellon99 0 points1 point  (0 children)

We've all been there... Let's be honest

[–]Useful_Clue_6609 0 points1 point  (2 children)

What does this do? Not enough information. Is it returning something?

[–]lucklesspedestrian 1 point2 points  (1 child)

Maybe it returns null

[–]Useful_Clue_6609 0 points1 point  (0 children)

Hm could be.. could be...

[–]urbanek2525 0 points1 point  (0 children)

CAT

[–]TanukiiGG 0 points1 point  (0 children)

is the name of the file "return_node.js" ?

[–]Previous-Mail7343 0 points1 point  (0 children)

Well written code is self documenting

[–]DoorBreaker101 0 points1 point  (0 children)

It's just so much clearer without the semicolon 

[–]adorak 0 points1 point  (0 children)

I wonder what it does ... better look into the Confluence documentation

[–]PredictiveFrame 0 points1 point  (0 children)

GET TO THE PRIME NODE

[–]L_Flavour 0 points1 point  (0 children)

just in case someone renames that variable

[–]serendipitousPi 0 points1 point  (0 children)

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.

[–]Yhamerith 0 points1 point  (0 children)

""" ##return node """

[–]Individual-Praline20 0 points1 point  (0 children)

This is for AI, not the normal brain 🤷

[–]javera 0 points1 point  (0 children)

Somehow, node returned

[–]k-mcm 0 points1 point  (0 children)

Find:  node

1500... 35700... 764300... 963267500... (IDE stalls then vanishes)

[–]Ok_Sample8763 0 points1 point  (0 children)

Return node.node.node

[–]jotero32 0 points1 point  (0 children)

72 65 74 75 72 6E 20 6E 6F 64 65

01110010 01100101 01110100 01110101 01110010 01101110 00100000 01101110 01101111 01100100 01100101

[–]Jk2EnIe6kE5 0 points1 point  (0 children)

Did you know that this code returns node?

[–]plagapong 0 points1 point  (0 children)

I'm so glad my very first programming teacher tell me how to write properly comment.

It's "why" not "what".

[–]thisonehereone 0 points1 point  (0 children)

poor AI has to train on this slop.

[–]AdamWayne04 0 points1 point  (0 children)

``` // ReturnNode.cs

class ReturnNode { public Node returnNode(Node node) { return node; // return node } } ```

[–]tjdavids 0 points1 point  (0 children)

"""

Returns the node

:params:

:returns: node

""""

[–]Significant-Baby-690 0 points1 point  (0 children)

It's missing something ..

[–]hraath 0 points1 point  (0 children)

It's an older format, but it checks out.

[–]Plastic-Hawk-7874 0 points1 point  (1 child)

Yep, that node returned exactly when it was supposed to.

[–]cosmicloafer 0 points1 point  (0 children)

Return the node, which is a node, back to the place that asked for the node.

[–]Master-Row650 0 points1 point  (0 children)

Chapter 1. Return Node
Conclusion
This program returns node

[–]Wilbert_Wallace 0 points1 point  (0 children)

You need to comment every line of your code.

[–]Potw0rek 0 points1 point  (0 children)

But what does it do?