News for hackers. Stuff that matters.
Re:Birth of Prettier by lifestyleguru on Thursday October 09, 2025 @07:43AM (#45526287)
A lot of tools are fucking up the parentheses and apostrophes. Unnecessarily adding, removing, matching, or closing them. In terms of parentheses and apostrophes I know what I'm doing, stop "helping".
Re:Birth of Prettier by maratc on Thursday October 09, 2025 @07:53AM (#45526372)
It's just not a big issue today if you know what you're doing or not, as everyone now seems to care about "consistency" only.

My personal pet peeve is python's formatter named "black" (mentioned in TLA) that converts this:

     important_numbers = {
        "x": 3,
        "y": 42, # Answer to the Ultimate Question!
        "z": 2
    }
into this:

    important_numbers = {"x": 3, "y": 42, "z": 2}  # Answer to the Ultimate Question!
Re:Birth of Prettier by ezarowny on Thursday October 09, 2025 @09:45AM (#45527626)
I imagine if you add a comma to the end of the `"z": 2` line, Black will not try and push the dict onto a single line.