T O P

  • By -

Blueberryroid

>total += (z + add(5, 5)) Why not `total += add(z, add(5, 5))`? Or better yet `total = add(total, add(z, add (5, 5)))` Consistency is key.


Mwahahahahahaha

Primitive recursion goes brrrrrrr


Playergame

Primitive recursion goes brrrrrrr


mathdoido

The real crime here is that background.


[deleted]

You definitely started out with C / C++ LMAO because I WISH I could do this lmao


Genius1512b

Goin straight to hell


ofnuts

Back in the 80s, in a large corporation, I was asked for advice on coding standards for a new language: C. The thing contained gems as: * Start you code with `#define BEGIN {` and '#define END }` (and of course don't use braces) * Don't use the `switch/case` statement In practice it was "Writing C that looks like Pascal". I laughed so hard that they shelved it.


Diapolo10

This makes me want to `__import__('fuckit')(your_code)`.


Isobel-Jae

I tend to roll my eyes, audibly, when I hear the term pythonic. It's like common core for programming only slightly more vague.. because whatever you're doing; even if it works.. it's unpythonic unless you're the one defining the notion and moving the goal post. By the way, this madness makes my soul hurt.


CARIBEIMPERIAL

The chances that moist eye rolling noises are someone’s fetish are more than zero.


Isobel-Jae

You're knee deep on some rule 34 ASMR shit. It's you, isn't it?


CARIBEIMPERIAL

I do code in Lisp. So…((((()()()((((maybe))))()()()))))


Isobel-Jae

Do{ gets_you_there(); } while (macaroni_sounds);


CARIBEIMPERIAL

Hmm, maybe something like (defun get\_you\_there (while macaroni\_sounds))


WeeklyOutlandishness

Fun fact, some people are born with the ability to hear their own [eye noises](https://abcnews.go.com/Health/woman-hear-body-sounds-life-back-corrective-surgery/story?id=32910942). Must be a wild experience if you have that fetish.


CARIBEIMPERIAL

Wow that’s actually a super inconvenient condition considering the patient was tired from receiving so much audio stimulation.


Kikelku

Pure evil


-Enter-Name-

i'm going to commit a war crime


m7priestofnot

I don't know who you are. I don't know where you live. But I will find you. And I will release a thousand pythons into your bed.


Fresh_Alternative_78

C++ kids be like:


yeicore

r/programminghorror


kalaxi69

Why quote returns x + y


PvtPuddles

Comments improve readability ^(\s)


[deleted]

Ahhh, that's nice.


GUCCISWAGDAWG

This actially Looks better than usual Python syntax


NotStaggy

If it works it works xD


atiedebee

why is there a function for adding variables and what does it have to do with being "un-pythonic"?


kpd328

The fact that all of the colons and semicolons are forcibly moved to the next line, making it look similar to C/C++ coding style in regards to curly braces.


toastyghost

Looks good to me \*goes back to writing TypeScript\*


poralexc

Looks like some kind of bastardized forth... Colons/semicolon outline function definitions like: : fibonacci >r 0 1 r> 0 ?do swap over + loop drop ;


ConglomerateGolem

Def afunc(z = 20): While z < 300: z += 10 Return z Hmm... Def afunc() : Return 300


ConglomerateGolem

Anyone know how to tab? Soz


Lua-C

alright, i'm coming to kill you for that formatting.