Login
You're viewing the f.duriansoftware.com public feed.
  • Jan 23, 2026, 5:45 PM

    In #Python, you could write sensible and transparent code, like this:

    if (curNode):
    curNode = curNode.next

    But if you prefer something that is functionally identical, but harder to read, try this:

    curNode and (curNode := curNode.next)

    Follow me for more great tips on how to make life hell for the next person working with your code (which could be you).

    #ScottProgramming

    💬 0🔄 4⭐ 6