There have been multiple accounts created with the sole purpose of posting advertisement posts or replies containing unsolicited advertising.

Accounts which solely post advertisements, or persistently post them may be terminated.

nexussapphire ,

Last day at the company, pushed over 5,000 commits. Just style changes, still passes all the checks.

Binette ,

Pseudo-python

MadMadBunny ,

WE CAN DO THAT!?!??

Skullgrid ,
@Skullgrid@lemmy.world avatar

… whitespace is whitespace.

Revan343 ,

I kinda like it, easy to see unbalanced braces

victorz ,

;}}}

MTK ,

Honestly, looks neat, might adopt this

Sanctus ,
@Sanctus@lemmy.world avatar
the_tab_key ,

I forgot Moses was in Tron

TunaCowboy , (edited )

What if I prefer this?


<span style="color:#323232;">#define CURLYOPENRIGHTCLOSEDLEFTBRACKET {
</span><span style="color:#323232;">#define CURLYOPENLEFTCLOSEDRIGHTBRACKET }
</span><span style="color:#323232;">#define CURVYOPENRIGHTCLOSEDLEFTBRACKET (
</span><span style="color:#323232;">#define CURVYOPENLEFTCLOSEDRIGHTBRACKET )
</span><span style="color:#323232;">#define PERIODWITHPERIODONTOP :
</span><span style="color:#323232;">#define COMMAWITHPERIODONTOP ;
</span><span style="color:#323232;">
</span><span style="color:#323232;">int main CURVYOPENRIGHTCLOSEDLEFTBRACKET CURVYOPENLEFTCLOSEDRIGHTBRACKET CURLYOPENRIGHTCLOSEDLEFTBRACKET
</span><span style="color:#323232;">  if CURVYOPENRIGHTCLOSEDLEFTBRACKET 1 CURVYOPENLEFTCLOSEDRIGHTBRACKET CURLYOPENRIGHTCLOSEDLEFTBRACKET
</span><span style="color:#323232;">    asm volatile CURVYOPENRIGHTCLOSEDLEFTBRACKET
</span><span style="color:#323232;">      "mov $1, %%raxn"
</span><span style="color:#323232;">      "mov $1, %%rdin"
</span><span style="color:#323232;">      "lea message(%%rip), %%rsin"
</span><span style="color:#323232;">      "mov $4, %%edxn"
</span><span style="color:#323232;">      "syscalln"
</span><span style="color:#323232;">      PERIODWITHPERIODONTOP
</span><span style="color:#323232;">      PERIODWITHPERIODONTOP
</span><span style="color:#323232;">      PERIODWITHPERIODONTOP "%rax", "%rdi", "%rsi", "%rdx"
</span><span style="color:#323232;">    CURVYOPENLEFTCLOSEDRIGHTBRACKET COMMAWITHPERIODONTOP
</span><span style="color:#323232;">  CURLYOPENLEFTCLOSEDRIGHTBRACKET
</span><span style="color:#323232;">  return 0 COMMAWITHPERIODONTOP
</span><span style="color:#323232;">CURLYOPENLEFTCLOSEDRIGHTBRACKET
</span><span style="color:#323232;">
</span><span style="color:#323232;">asm CURVYOPENRIGHTCLOSEDLEFTBRACKET ".section .datan"
</span><span style="color:#323232;">  "message: .ascii "wut\n"n"
</span><span style="color:#323232;">  ".section .textn" CURVYOPENLEFTCLOSEDRIGHTBRACKET COMMAWITHPERIODONTOP
</span>
humbletightband ,

You can’t be helped, sorry. We will put you to an asylum for people like you

milicent_bystandr ,

Asylum? We have the electric chair for this.

humbletightband ,

Yeah, now I see why you want him dead. He used mov after lea

MajorHavoc ,

Thanks. I hate it.

z500 ,
@z500@startrek.website avatar

You win a free trip to the Hague

SkyezOpen ,

They don’t even deserve the trial. Straight to gulag.

dariusj18 ,

Can this be done with emoji?

magic_lobster_party , (edited )

I’m more concerned about that poor stack with all those recursions.

It’s also O(n^2) O(n!). I’m not sure what they’re trying to do, but I’m sure it can be done in O(n) (or at least polynomial).

Reject.

Fillicia ,
user224 , (edited )

Mmmm, perfectly level.

gofsckyourself ,

It’s just YAML…

Fillicia ,

YAML makes you appreciate Python’s 4 spaces indentation.

victorz ,

I thought python allowed whatever indentation you wanted as long as it’s consistent?

zalgotext ,

It does, but most style guides and autoformatters will use 4

HK65 ,

Python is one of the few languages with an official style guide, I think that guide says 4 spaces.

northendtrooper ,

Tabs!

nexussapphire ,

I’ve set tabs to four spaces in vim because who the fuck defaults tab to eight spaces. That shit looks alien and pushes text off the screen fast.

Fillicia ,

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.

mariusafa ,

Literally me every time I want to program something slightly complex in Python.

some_guy ,

What the fuck!

angelmountain ,

How happy I am with prettier. This is just a thing in an ancient past for me now.

Username ,

Recently tried biome for a web project. It’s a combined linter and formatter, and it’s so good. Compatible with prettier too.

key ,

Are you referring to autoformat like most linters and IDEs can do or does prettier have some special transpilation capability to hide braces?

GissaMittJobb ,

Automatically enforced deterministic formatting is the best, there’s nothing that beats it. The productivity in just being able to format on save knowing that the code will be in the ideally formatted state, along with the anti-bikeshedding properties of this strategy, makes it unbeatable.

h0bbl3s ,
@h0bbl3s@lemmy.world avatar

gofumpt and gofmt are the best. One of the reasons if I have a choice I’ll code in go. I heard rumblings that rust was working towards having rustfmt be a standard crate.

GissaMittJobb ,

Go is in a good position, yeah. JavaScript has prettier, which is nice. Java has google-java-format. Python has ruff, which is quite good. Kotlin has ktfmt, which I believe made a mistake with their standards by not following the standard formatting guidelines for the language, but whatever. Uniform and deterministic for the win.

nick ,

Jesus fucking Christ.

bdonvr ,

Actually that seems great?

  • All
  • Subscribed
  • Moderated
  • Favorites
  • [email protected]
  • random
  • lifeLocal
  • goranko
  • All magazines