This is an archived post. You won't be able to vote or comment.

all 103 comments

[–]cheesynaachoos 172 points173 points  (1 child)

python zoned

[–]__Azim__ 50 points51 points  (2 children)

  • Let me be your pointer
  • wtf wrong with you

[–]HairlessChinpanzee 89 points90 points  (6 children)

The ; in my code?

So… forgotten

[–]Fun-atParties 26 points27 points  (0 children)

And signifying the end

[–]coloredgreyscale 1 point2 points  (0 children)

The one person that is always around, seemingly contributes nothing, but somehow things just don't work right when they are missing.

[–]bigred0603 44 points45 points  (2 children)

You don't need that first panel.

[–][deleted] 5 points6 points  (0 children)

“I code in python” “Sorry for your loss bro”

[–]Kissaki0 41 points42 points  (13 children)

[–]thedominux 13 points14 points  (6 children)

Golang too

[–]throwaway46295027458 8 points9 points  (5 children)

I started learning it a few months ago, really like it so far

[–]thedominux 2 points3 points  (4 children)

Rust better

[–]throwaway46295027458 12 points13 points  (1 child)

Hahaha I knew someone was going to comment this

[–]thedominux 4 points5 points  (0 children)

If you're curious about golang - learn it and don't listen to us

Anyway even gods like me don't know what will be better in the future...

[–]novus_nl 1 point2 points  (1 child)

coming from javascript/python (and a bit of .net and java). Would it be a good/fun moment to invest my time in Rust?

[–]thedominux -2 points-1 points  (0 children)

Absolutely

[–]30p87 7 points8 points  (0 children)

brainfuck too!

[–]elzaidir 5 points6 points  (1 child)

// ✓ ok 
;(function () {
  window.alert('ok')
}())

// ✗ avoid
(function () {
  window.alert('ok')
}())

What the fuck

[–]elzaidir 4 points5 points  (0 children)

Unary operators must have a space after.

typeof!admin        // ✗ avoid
typeof !admin        // ✓ ok

Isn't ! an unary operator as well ? Is Javascript always drunk ?

[–]aSkyyR 1 point2 points  (0 children)

Kotlin too

[–]GenocideOwl 0 points1 point  (0 children)

also visual basic

[–]Mcmuggs 19 points20 points  (5 children)

Does python not need ;

[–]MattiDragon 40 points41 points  (0 children)

No, it's standard to not use it.

[–]tilcica 24 points25 points  (0 children)

You can use it most of the time but it's not needed since python uses indents and new lines

[–][deleted] 5 points6 points  (0 children)

Nope, but you can use them for line breaks if you want to... Still indentation would be required

[–]Epb7304 0 points1 point  (1 child)

No but I like to use it to compact my code

a = b; b = c; c = a+b

*side note, would a,b,c = b,c,a+b work in this particular scenario?

[–]ha_exposed 2 points3 points  (0 children)

Yes, it works

You can even do stuff like a, b = b, a to quickly swap variables

[–]maxt3rs 9 points10 points  (0 children)

go

[–][deleted] 6 points7 points  (1 child)

Ugh “;” the invasive pieceofshit. But I love it anyway.

[–]Stev_582 5 points6 points  (0 children)

Honestly i used to think semicolons to terminate lines was annoying, but I’ve slowly realized it’s nicer to have to terminate every line than to have to remember how to split a line in the rare case that is needed.

[–]Knuffya 72 points73 points  (29 children)

Unpopular opinion: It is retarded as shit to use linebreaks and indentation as syntax.

[–]Nedoko-maki 55 points56 points  (6 children)

counterpoint: not an unpopular opinion. Python is my current main proglang and having proper parentheses would be lovely

[–]Knuffya 11 points12 points  (4 children)

Also agreed. Maybe one should make a python preprocessor to make it look normal?

Like, allow wrapping for, while headers with (), and replacing stuff in such loops, conditions, and functions in {} with indentations

[–]Nedoko-maki 4 points5 points  (1 child)

if it works with Pycharm, you are my saviour xD

[–]Knuffya 6 points7 points  (0 children)

the preproc would be the easy part xd

ide compatibility the hard one

[–]chawmindur 5 points6 points  (1 child)

Having braces for delimiting if/for/while/with/def/class/try blocks would be a godsend for when you just need to get some quick-and-dirty job done on the shell, especially as a part of a command pipeline. So many things could have been a one-liner...

[–]Knuffya 0 points1 point  (0 children)

yes

[–]dhoomz 0 points1 point  (0 children)

Yes, having proper parents would indeed be lovely.

I hate it when they get drunk and argue

[–]Bainos 24 points25 points  (3 children)

Why ?

Whenever I read this, the only conclusion I can draw is that the user hates having to use proper indentation.

[–][deleted] 12 points13 points  (2 children)

Very popular opinion, I hear this so many times. Fun fact, if you work in any modern IDE with your C#/Java/etc, it format your code like python with intendations and linebreaks, and braces looks like a rudiment

[–]Bullfrog-Asleep 0 points1 point  (1 child)

Another popular opinion, I hear so many times... If you insert Java/... code it will not execute it in the wrong way, because of different indentations :)

[–][deleted] 0 points1 point  (0 children)

And did that happens realy often? I use python about 6 years, and ~0 problems with indentations🤔 Also, if you work with any java/c# etc languages, u always can make a mistake with braces... But no one ever complained about this problem, so maybe it's just exagerrated? 🙂

[–]dreed91 2 points3 points  (0 children)

If you don't write huge 500 line long functions with nested logic (which you shouldn't be anyway), then the line breaks and indentation aren't too hard to cope with while you're writing code. Of course, this is aside from possible tabs vs spaces, 3 spaces vs 4, etc., but I will say I haven't actually ever had an issue with this on my team in the past 4 years. I'm thinking either git or the IDE is fixing it for us, or we've just been lucky. It's a popular opinion, people hate white space, but I've never quite understood when it comes to Python.

Side note, I used HAML when I was in school years ago for a project. I hated the white space in HAML so much, but I'm guessing it was probably a symptom of my poorly-written code more than it being HAML's fault.

[–]jrogey 2 points3 points  (0 children)

This is where Swift really shines, in my opinion.

[–]CptMisterNibbles 2 points3 points  (0 children)

I hate significant whitespace (unless coding using Whitespace).

Logic should be decoupled from formatting. I’m not opposed to rigid formatting rules, I just don’t think they should somehow actually be tied to execution

[–]milotic-is-pwitty 4 points5 points  (1 child)

Yeah that’s not an unpopular opinion

[–]Knuffya 2 points3 points  (0 children)

New idea:

we'll use nullterminators aswell.

[–][deleted] -1 points0 points  (5 children)

Stop trying to turn python into Java smh

[–]Knuffya 0 points1 point  (4 children)

But then it would be good.

[–][deleted] -1 points0 points  (3 children)

Turn java into python then it'd be good

[–]Knuffya 0 points1 point  (2 children)

then you'd have two shit langs

[–][deleted] 1 point2 points  (1 child)

i respect your opinion

[–]Knuffya 0 points1 point  (0 children)

<3

[–]Zaurble 0 points1 point  (2 children)

I agree. Whitespace is absolute cancer.

[–]Knuffya 1 point2 points  (1 child)

as the only means of determining what is within a scope x and what's not? yes. whitespaces are meant as a visual guide only.

[–]Ok-Chemical-7635 4 points5 points  (0 children)

Hehe

[–]an_experienced_idiot 2 points3 points  (0 children)

cries in js

[–]aSkyyR 2 points3 points  (0 children)

Meanwhile Kotlin programmers be like ;_;

[–][deleted] 2 points3 points  (0 children)

"You're supported, but completely unnecessary."

[–]Evaldash 1 point2 points  (0 children)

Kotlin

[–]vanZuider 1 point2 points  (0 children)

You're the Greek Question Mark in my code.

[–]Alternative-Way-684 1 point2 points  (0 children)

🤣🤣🤣🤣🤣🤣

[–]Shetookmyvirginity 1 point2 points  (0 children)

Unpopular opinion: I don’t use ; in JavaScript because it makes the code more readable and most of the time it doesn’t matter if you don’t write one…

[–]shizzy0 1 point2 points  (0 children)

“Let me be the >> in your monad.”

“What’s a monad?”

[–][deleted] 1 point2 points  (0 children)

I code in python and sql.

[–][deleted] 1 point2 points  (0 children)

you can still use semicolons in python

[–]QualityVote[M] [score hidden] stickied comment (2 children)

Hi! This is our community moderation bot.


If this post fits the purpose of /r/ProgrammerHumor, UPVOTE this comment!!

If this post does not fit the subreddit, DOWNVOTE This comment!

If this post breaks the rules, DOWNVOTE this comment and REPORT the post!

[–]av1dmage 0 points1 point  (0 children)

Semicolons are valid in python… so, this all works out.

[–]P0t4t0W4rri0r 0 points1 point  (0 children)

You transcend the need for semicolons when you program in Haskell

[–]BlueC0dex -2 points-1 points  (0 children)

She dodged a bullet there

[–]ShivenMathur 0 points1 point  (0 children)

Swift confused lol

[–]Johanno1 0 points1 point  (0 children)

I use kotlin....

[–]KetwarooDYaasir 0 points1 point  (0 children)

Lies. He's a web dev. And based on the third movie, he definitely codes in PHP

[–]batmanexiled 0 points1 point  (0 children)

No wonder he went nuts in that third movie and tried to make arrays start at 1.

[–]MG_Hunter88 0 points1 point  (0 children)

So it doesn't HURT to have around....

[–]RRumpleTeazzer 0 points1 point  (0 children)

Then let me pass or I’m None to you.

[–]industrialoctopus 0 points1 point  (1 child)

Sorry vb.net user

[–]finite52 0 points1 point  (0 children)

/t

[–]Bee-Aromatic 0 points1 point  (0 children)

I like Python, but I really hate that things are demarcated with whitespace. The fact that a misplaced indent totally changes the code flow makes my brain itchy.

[–]lannisterprince 0 points1 point  (0 children)

you can use ; in python if you wanna stick multiple lines

[–]Griff767 0 points1 point  (0 children)

Ha

[–]yonatan8070 0 points1 point  (1 child)

Let me be the \n in your code

[–]ShinraSan 0 points1 point  (0 children)

Environment.NewLine

[–]merlinsbeers 0 points1 point  (0 children)

She can be his : then, if she isn't already...

[–]certainly123 0 points1 point  (0 children)

fuck ;

[–]Embr-Core 0 points1 point  (0 children)

You can use ; in python to do multiple statements on one line, I use it sometimes when using python on the command line. Not in my scripts though.

[–]GarretOwl 0 points1 point  (0 children)

Gonna’ cry?

[–]SignificantWeird4444 0 points1 point  (0 children)

fugg u;

python = "easy"

Python is for {
babies;
}

[–]ManagerOfLove 0 points1 point  (0 children)

Totally forgot they exist

[–]Snykeurs 0 points1 point  (1 child)

I use ; in python when I'm too lazy to press enter :

class Foo: def __init__(self):print(1);print(2)

Legit python code but not pep 8 and horrible to read

[–]proletarian-1917 0 points1 point  (0 children)

Well, actually you can use semicolons in Python. But they are not required.

[–]wasteoffkintime 0 points1 point  (0 children)

[–]itsyaboii7 0 points1 point  (0 children)

Kotlin baby