r/IStartedProgrammingAWeekAgoHumor
Disappointed that's not real (yet)
Still not available. I’m taking it
Edit lol too many letters
r/firstweekprogrammerhumour
God dammit.
She is a try-catch girl and I am an Ok-Err boy. It would never work.
In Python, no semicolon is necessary, just good intentions
And indentation.
God have mercy on your soul if you mess up tabs vs spaces.
such a common thing to say, yet for what reason if you can just ruff format .
?
Speaking of third-party tools being required to un-fuck the language at a fundamental level, the compiler/interpreter should come with a formatter
third-party tools being required to un-fuck the language
it is literally the same as the package lock in typescript or pubspec.yaml in flutter
no compiler in python :) it's an interpreted language
yeah python may be ass in some aspects (especially speed and a lot of missing features - i miss null conditional operators) but don't shit on it just because the community makes improvements.
also, never knew typescript wasn't a third party tool to un-fuck javascript!
edit: null conditional operators, not null coalescing - python has the latter in the form of or
, where x or y
evaluates to y
if x
is the number zero, the boolean value false, or an empty string/set/list/tuple (which i think is way more useful compared to C#, where bool x = null; if(!x) return "x is falsey"
will fail, due to null
not being a falsey value)
That one hits home...
Happy coding. We all start somewhere
You’re a better man than most lol
gotta debug my way into your heart
She gotta give him some space(s)
You're better off, Red -- he uses tabs instead of spaces.
She wants to be forgotten more than I'd like to admit until a computer reminds me?
Typical women wanting the end of the statement :(((
I omit semicolons from my typescript, too
';'
Sorry, I meant I do code golf in python
Python code can have semicolons
which are useless and so are girlfriends
Semicolons in python allow you to write python one liners.
Which you should never do.
I sometimes test things using the command line. Why can I not use semi colons lord MDivisor?
But you wouldn't call that one liners, right?
python - c
is probably the main legitimate use of semicolons in python. Any code/script that you write persistently probably shouldn't have any semicolons at all.If you really want to do
python -c "<some massive oneliner command>"
on the command line I can't stop you. But you'd most likely be better off writing those commands into a file with proper formatting and then calling that file.It's useful when doing
python -c
only useful scenarios:
? I think you're misunderstanding what
python -c
is/is useful for.i'm talking about semicolons in python in general, not just using the
-c
optionIt's a useful trick for a jupyther notebook to suppress the object printouts at the end of the cell executions
I take this as a challenge.
... unless you know exactly what you're doing.
I use inline Python frequently in bash while investigating and troubleshooting system issues or doing root cause analysis.
Its a tool like any other, people (incorrectly) say the same thing about bash one-liners but pipes and redirection an integral part of using the shell effectively.
Sometimes its awk, sometimes a Python one-liner, but one way or another if it works and is not destructive and you know exactly what everything is doing I see no issues using ad-hoc one-liners.
Would I document that and give it to a junior engineer as a best practice? No - but using the word "never" in this situation is unrealistic, for personal use one-liners are just a minified scripting syntax.
I don't care what you get up to in the privacy of your own shell. I'm saying don't commit it into version control.
100% agree, not for distribution
which is messed up like girlfriends
And are a great tool to see if a project has been vibe coded with gemini too
you just need the right type of indent...
Don't break my heart further.
But they are unnecessary and the girlfriend wants to be necessary