What if I prefer this?
#define CURLYOPENRIGHTCLOSEDLEFTBRACKET { #define CURLYOPENLEFTCLOSEDRIGHTBRACKET } #define CURVYOPENRIGHTCLOSEDLEFTBRACKET ( #define CURVYOPENLEFTCLOSEDRIGHTBRACKET ) #define PERIODWITHPERIODONTOP : #define COMMAWITHPERIODONTOP ; int main CURVYOPENRIGHTCLOSEDLEFTBRACKET CURVYOPENLEFTCLOSEDRIGHTBRACKET CURLYOPENRIGHTCLOSEDLEFTBRACKET if CURVYOPENRIGHTCLOSEDLEFTBRACKET 1 CURVYOPENLEFTCLOSEDRIGHTBRACKET CURLYOPENRIGHTCLOSEDLEFTBRACKET asm volatile CURVYOPENRIGHTCLOSEDLEFTBRACKET "mov $1, %%rax\n" "mov $1, %%rdi\n" "lea message(%%rip), %%rsi\n" "mov $4, %%edx\n" "syscall\n" PERIODWITHPERIODONTOP PERIODWITHPERIODONTOP PERIODWITHPERIODONTOP "%rax", "%rdi", "%rsi", "%rdx" CURVYOPENLEFTCLOSEDRIGHTBRACKET COMMAWITHPERIODONTOP CURLYOPENLEFTCLOSEDRIGHTBRACKET return 0 COMMAWITHPERIODONTOP CURLYOPENLEFTCLOSEDRIGHTBRACKET asm CURVYOPENRIGHTCLOSEDLEFTBRACKET ".section .data\n" "message: .ascii \"wut\\n\"\n" ".section .text\n" CURVYOPENLEFTCLOSEDRIGHTBRACKET COMMAWITHPERIODONTOP
You can’t be helped, sorry. We will put you to an asylum for people like you
You win a free trip to the Hague
Mom, can we stop and get some Python?
No, we have Python at home.
Python at home…
Idk why but i fell in love with this and might just use it now
I just realised why we do live coding interviews.
Looks like Python, but in an editor with a weird TUI scrollbar
High chance that it’s a Python programmer who is really unhappy about having to work in Java, lol
Agreed. I saw this and thought it looked beautifully passive aggressive
That would be very cool to have in a code autoformatter
My credo on this kind of thing is never do something that will make your successor so mad that they find out where you live and post parts of your body to Interpol.
Python with extra steps
Honestly, looks neat, might adopt this
I’m not a coder, and… Well… Thanks, I hate it.
Even I know this is horrific. Where the fuck does this statement end? Which of these brackets refer to this section of other brackets. Idfk.
I could give a shit less if it was just for a single block per or something but “;}}}” hurts me.
Well the code indentation explains that, like python. The issue is not reading it. You would rather quit your job than edit this.
tooling would have to do it all after the fact or something
It’s just YAML…
YAML makes you appreciate Python’s 4 spaces indentation.
I thought python allowed whatever indentation you wanted as long as it’s consistent?
pep8 calls for 4 space but it is a guidance not a rule.
Google internal style guide recommend(ed?) 2 spaces to accomodate the line length limit.
4 spaces? Hard core Python programmers must have a callus on their thumbs.
Just assign tab to 4 spaces.
I was like, “where are the braces?”. Then, I turned to the right
And then I realized it’s python.
Wait what? It’s Python? But there are semicolons
They mean that the code is being written like it were python. You can’t get rid of the curly braces, but you can shove them all under your bed where mom can’t see.
This should be its own language. Pyava.
Or Jathon (pronounced like Mike Tyson would pronounce JSON)
Or we can round out the confusion and call it PythonScript
I kinda like it…
I think you’ll like Ruby. It has mostly done away with braces and code blocks end with
end
, e.g.def create unless admin redirect_to new_session_path and return @product = Product.new product_params if @product.save flash[:success] = "New product has been created!" redirect_to edit_product_path(@product) and return else flash[:error] = "Something went wrong! render :new end end
This is working code that I simplified a bit from an old project of mine.
Ruby syntax is nice although I prefer python way of enforcing indentation instead of adding "end"s. Personally I just want a statically typed language with enforced indent as syntax.
Last day at the company, pushed over 5,000 commits. Just style changes, still passes all the checks.
This would never pass PR review.
Jokes on you, we don’t have PR review.
This is fine.