[-] tatterdemalion@programming.dev 2 points 1 month ago

Which is... not trivial?

would have

What happened? What prevented Stafford Road Man from migrating to Britain?

[-] tatterdemalion@programming.dev 2 points 1 year ago* (last edited 1 year ago)

Prices really do got wings at this present moment.

[-] tatterdemalion@programming.dev 2 points 1 year ago* (last edited 1 year ago)

What does Wikipedia have to do with the mission statement of the HO&GRC? Isn't Wikipedia an NGO charity? I don't know how much federal funding they get. But Wikimedia isn't actually contributing to the database IIUC. They just develop the wiki software.

[-] tatterdemalion@programming.dev 2 points 2 years ago

Look up Operation Paul Bunyan AKA The Korean Axe Murder Incident

[-] tatterdemalion@programming.dev 2 points 2 years ago

Seems like a stretch to file a federal murder charge when it was really only the stalking that can be argued as "cross state". Isn't federal murder charge usually reserved for serial killers or killers that transport the body across state lines?

[-] tatterdemalion@programming.dev 2 points 2 years ago

I'd wish for humanity to transcend our physical form and live in a virtual world as gods.

[-] tatterdemalion@programming.dev 2 points 2 years ago

You implied that religion necessarily results in fascism.

[-] tatterdemalion@programming.dev 2 points 2 years ago* (last edited 2 years ago)

I've found that it's usually best to keep it iterative if it can be done with a simple data structure, like stack (DFS) or queue (BFS). But that's not always a simple task.

One common case where recursion is actually more natural is post-order tree traversals. For example if you had a tree where every node held a number and you wanted to calculate the sum of each node's descendants. This is natural with recursion because a node is able to directly sum the values returned from recursive calls. Doing this with an explicit stack would be awkward, because you don't usually get to visit a node twice (once to put children on the stack, once again to accumulate the descendants sum).

Like, just look how weird this algorithm is: https://www.geeksforgeeks.org/iterative-postorder-traversal-using-stack/ I don't think I've ever done it this way.

[-] tatterdemalion@programming.dev 2 points 3 years ago* (last edited 3 years ago)

This is why code review exists. Writer's can't always see what's wrong with their work, because they have the bias of knowing what was intended. You need a reader to see it with fresh eyes and tell you what parts are confusing.

That's not to say you shouldn't try to make it readable in the first place. But reviewing and reading other people's code is how you get better.

[-] tatterdemalion@programming.dev 2 points 3 years ago

I'm not really talking about REST APIs. More concerned with code libraries.

[-] tatterdemalion@programming.dev 2 points 3 years ago

Definitely hyperbole, but it's not uncommon for CTOs to be the main author of a company's tech.

view more: ‹ prev next ›

tatterdemalion

0 post score
0 comment score
joined 3 years ago