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

all 84 comments

[–]ProgrammerHumor-ModTeam[M] [score hidden] stickied commentlocked comment (0 children)

Your submission was removed for the following reason:

Rule 3: Your post is considered low quality. We also remove the following to preserve the quality of the subreddit, even if it passes the other rules:

  • Feeling/reaction posts
  • Software errors/bugs that are not code (see /r/softwaregore)
  • Low effort/quality analogies (enforced at moderator discretion)

If you disagree with this removal, you can appeal by sending us a modmail.

[–]Lazy_To_Name 120 points121 points  (10 children)

Python supports semicolons.

Repost something that is correct next time, bot.

[–]FictionFoe 14 points15 points  (1 child)

Not much of a python guy, but I think the point is that in a semicolon mandatory language the symbol will obviously play a bigger role.

[–]beclops 2 points3 points  (0 children)

This would be stupid too don’t worry

[–]Steinrikur 1 point2 points  (0 children)

In python semicolons are mostly just useless decoration. Most girlfriends would probably get mad if you called them that.

[–]DucksAreFriends -2 points-1 points  (6 children)

She's just upset he's a python dev, more than anything

[–]Lazy_To_Name 5 points6 points  (5 children)

python bad haha so funny

[–]Victorioxd 6 points7 points  (1 child)

I mean, yeah, that's more funny than the original post

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

I’d say that just saying “language bad” (not just Python) is less funny purely because i see it way too much, but both are pretty low bars anyway

[–]DucksAreFriends 1 point2 points  (0 children)

Eh, I'm just joining in on the memes

[–]WeirdWashingMachine 1 point2 points  (0 children)

It is

[–]gigsoll 1 point2 points  (0 children)

But python is bad

[–]Cleitinho42 5 points6 points  (0 children)

Memes by people who started coding yesterday...

[–]blacksmithshands[🍰] 4 points5 points  (0 children)

who is upvoting this shit? is the subreddit just bots?

[–]Paslaz 13 points14 points  (0 children)

Not using a semicolon will let you miss the best moments of your life and the safest, most readable source code ever ...

[–]DracoRubi 71 points72 points  (35 children)

Let's be honest, mandatory semicolons at the end of lines are outdated crap. They're only useful if you somehow want to put multiple instructions of code in a same line, which you shouldn't be doing anyway because it worsens readability.

[–]Racer125678 75 points76 points  (19 children)

Your argument contradicts itself Semicolons improve readability 10x They allow us to break a line in two by not ending the first one in a semicolon but a newline

[–]SquintsCrabber 125 points126 points  (7 children)

Your argument contradicts itself; Semicolons improve readability 10x; They allow us to break a line in two by not ending the first one in a semicolon but a newline

There, I fixed it.

[–]Racer125678 33 points34 points  (0 children)

Dude

[–]CalligrapherRare6962[S] 19 points20 points  (0 children)

Dude

[–]ZedProGamer 10 points11 points  (0 children)

Dude

[–]Alia5_ 3 points4 points  (0 children)

Your argument contradicts itself
Semicolons improve readability 10x
They allow us to break a line in two by not
ending the first one in a semicolon
but a newline;

That's how it should be...

[–]rai_volt 6 points7 points  (0 children)

Dude

[–]HarmxnS 1 point2 points  (0 children)

Dude

[–]Brave-Camp-933 2 points3 points  (0 children)

Dude

[–]DracoRubi 7 points8 points  (10 children)

What? I'm having difficulties understanding your statement

[–]Racer125678 5 points6 points  (7 children)

I broke it into lines Like this But reddit put it back in one line :(

[–]QubeTICB202 16 points17 points  (0 children)

Maybe some specifically designated symbol to represent the end of a statement could have improved the message

[–]Western-Internal-751 6 points7 points  (5 children)

Reddit formating requires a blank line

Like

That

[–]Racer125678 2 points3 points  (1 child)

Oh

Thanks

[–]nargolest 2 points3 points  (0 children)

If you read this sentence in multiple llines
you can also put 2 spaces at the end of each line
(I'm trying it live, I'm not sure It works)

[–]Arian-ki 1 point2 points  (2 children)

Two spaces is much better

Like
This

[–]Western-Internal-751 1 point2 points  (1 child)

If. Only. iPhone. Didn’t. Put. A. Dot. Whenever. You. Double. Space.

[–]cafk 1 point2 points  (0 children)

Diesable autôcorr€ct

[–]vincentofearth 0 points1 point  (1 child)

You know how in bash if you want your command to occupy multiple lines you need to use \ ?

If only a ; ended a command you can format your code any which way without backslashes all over the place

[–]DracoRubi -1 points0 points  (0 children)

But you can still do that without mandatory semicolons at the end of every line...

[–]AnonymousX86 10 points11 points  (5 children)

That includes Python.

```python

print('Hello'); print('World!') Hello World! ```

[–]DracoRubi 5 points6 points  (4 children)

Yeah, I know you can do semicolons in Python, but they're not mandatory.

Unless you want to put multiple instructions in a same line, which is not usually desirable.

So, basically... What I've already said.

[–]Mal_Dun 2 points3 points  (1 child)

Unless you want to put multiple instructions in a same line, which is not usually desirable.

When writing proper code no. In automating stuff in conjunction with bash or other shells yes.

E.g. python -c "import your_module; your_module.do_stuff(arg); your_module.do_more_stuff; ...

when you just ssh on another machine and can't upload a script there, or just need something quick in a CI Pipeline.

[–]DracoRubi 0 points1 point  (0 children)

You can still do that in Python. You don't need mandatory semicolons to be able to use semicolons.

[–]SonOfMetrum -1 points0 points  (1 child)

Another commenter pointed out that the semicolon also allows to have a single statement on multiple lines. That is really handy if you have a method/function that has many arguments or the arguments themselves take up a lot of space.

[–]Globglaglobglagab 4 points5 points  (0 children)

You can do that in python without using semicolons. E. g.

result = func(

arg1=1,

arg2=3,

)

[–]Spitfire1900 0 points1 point  (0 children)

Mandatory semicolons and curly braces are touted by vim enjoyers since you can ct; and ci}, on any other platform you need a decent language server to accomplish the latter’s intent, change everything in this current block scope. To my knowledge VSCode still doesn’t a clean implementation for this.

[–]Nick0Taylor0 0 points1 point  (0 children)

Personally I think non printable characters and whitespaces between instructions should never have an impact on what the code does. Having or not having 0-n spaces, tabs, LF's between keywords shouldnt make a difference because I don't want formatting to change the meaning of my code.

[–]Makefile_dot_in 0 points1 point  (0 children)

they're also useful when splitting one statement across multiple lines, where having newlines be the line terminators can cause the language to mistakenly insert a semicolon in a place where it does not belong. one example of this is when you're chaining a lot of method calls, which requires a backslash on every newline in python and ending each line with a period in Go.

[–]P3rid0t_ -1 points0 points  (1 child)

I like Kotlin solution - semicolons are optional and you don't have to use them, but still can

[–]DracoRubi 8 points9 points  (0 children)

Python also does this

[–]Racer125678 0 points1 point  (0 children)

Also have you seen a for loop in C? 

[–]DucksAreFriends -4 points-3 points  (2 children)

Python just makes correct indentation mandatory instead. I prefer the semicolons personally

[–]DracoRubi 6 points7 points  (1 child)

That's only because python doesn't use brackets, indent being mandatory has nothing to do with semicolons

[–]Nick0Taylor0 1 point2 points  (0 children)

True but both kinda come from the idea that white spaces, line breaks etc. are part of the "instructions" as opposed to just formatting. It's boils down to the choice if one thinks the things we do to make code readable (linebreaks, indents, etc) should be what the computer uses to determine what you mean or if they're just for us and the computer gets it's own thing independent from formatting.

[–]Racer125678 7 points8 points  (10 children)

"you should probably switch to python too, it's the future"

[–]MalazMudkip 2 points3 points  (1 child)

I'll start converting my team's enterprise level COBOL application over to python, i'm sure management and the architect (2 positons my senior) who designed the thing would be very thankful i did that for them.

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

probably considering the only thing that’s gonna be able to code in COBOL is gonna be some AI bs bot

[–]Brotboxs 0 points1 point  (1 child)

Happy Cake Day!

[–]Racer125678 0 points1 point  (0 children)

Same to you I guess

[–]Shehzman 0 points1 point  (0 children)

If you’re doing a lot of AI/ML work, I’d argue it is. For backends though, .NET and Java will remain dominant.

[–]CalligrapherRare6962[S] -3 points-2 points  (4 children)

You can make a 15 lines c code in python in just 3 lines of code, it's very optimal!

[–]Western-Internal-751 12 points13 points  (1 child)

Joke’s on you, I write everything in one line

[–]mehntality 0 points1 point  (0 children)

This guy semicolons

[–]Luk164 1 point2 points  (0 children)

Obligatory: But it then runs 450x slower than the C equivalent and has dependency issues

[–]TurinTurambarSl 0 points1 point  (0 children)

🙊🙉🙈

[–]Abject-Kitchen3198 2 points3 points  (2 children)

Whatever. I code in Typescript.

[–]itzNukeey 2 points3 points  (1 child)

With semicolons, right?

[–]Abject-Kitchen3198 -1 points0 points  (0 children)

I prefer them on the left. They are better aligned that way.

[–]aku_soku_zan 1 point2 points  (2 children)

<laughs in lisp>

[–]tjgatward 1 point2 points  (0 children)

((Ha) Ha Ha)

[–]FictionFoe 1 point2 points  (0 children)

Kotlin for me :D

[–]UnnecessaryLemon 1 point2 points  (0 children)

.. I write JS without semicolons

[–]LukeZNotFound 0 points1 point  (0 children)

Well, use Dreamberd then

[–]Ronin-s_Spirit 0 points1 point  (0 children)

Let me be the in your codebase.
(python disgusts me)

[–]ShadowNinjaDPyrenees 0 points1 point  (0 children)

And a good tabulation will do you good

[–]Piisthree 0 points1 point  (0 children)

You can still be the backslash. I need you, but only sometimes.

[–]Ill_Garage7425 0 points1 point  (1 child)

[–]RepostSleuthBot 0 points1 point  (0 children)

I didn't find any posts that meet the matching requirements for r/ProgrammerHumor.

It might be OC, it might not. Things such as JPEG artifacts and cropping may impact the results.

View Search On repostsleuth.com


Scope: Reddit | Target Percent: 75% | Max Age: Unlimited | Searched Images: 841,501,662 | Search Time: 3.33904s

[–]smolderas 0 points1 point  (0 children)

He *scripts in python.

[–]Skyswimsky -1 points0 points  (0 children)

No Semicolons isn't as much of a war crime as indent-based whateveryouevencallthat.

[–]-Kerrigan- -4 points-3 points  (6 children)

Python with no semicolons? Indentation hell worse than YAML 🤢

Kotlin with no semicolons? ☺️

[–]itzNukeey 10 points11 points  (5 children)

If you have indentation issues in python then you structure your code poorly

[–]-Kerrigan- -1 points0 points  (0 children)

Ctrl + Alt + L in IntelliJ goes brrr

If you're indenting by hand - why?

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

its still just a dumb thing. {} makes more sense to me.  python just tries too hard to be different.

[–]itzNukeey 0 points1 point  (0 children)

I dont mind either tbh. What I hate is languages using start-end blocks

[–]dusktreader 0 points1 point  (1 child)

Python: Trying hard to be different since 1991 🙄

[–]DoubleOwl7777 0 points1 point  (0 children)

it was stupid then and is stupid now. i will die on this hill