[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

Python Comments Suck

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 34
Thread images: 10

File: Python-logo-notext.svg.png (72KB, 1024x1024px) Image search: [Google]
Python-logo-notext.svg.png
72KB, 1024x1024px
I really want to like Python, in fact, I like most of it, functionally. However there is one major drawback that causes persistent irritation for me.

There is no official multi line comment support, and using ''' ''' is just complete garbage. Furthermore, I really dislike using the octothorpe, #, as a comment. It's extremely disappointing in comparison to other alternatives, such as a basic
/* Comment, can be multi line too */
or
--[[ Wow look, they made a modification to the single line comment to make it multi line, and -- already looks so much better than #, --]]
>>
>>56171432
>There is no official multi line comment support
yes there is. it's documented here: https://www.python.org/dev/peps/pep-0257/
>using ''' ''' is just complete garbage
that's the official multiline comment support. i don't know how to help you with stuff that triggers you except to tell you to go see a therapist or something.

>furthermore, I really dislike using the octothorpe... it's extremely disappointing
it's an octothorpe. i don't think i've ever been more certain that you need therapy. it's an almost purely cosmetic choice.

if you wanted to bitch about binding time or typing or something about the design of the language itself, this would be an interesting conversation. but it sounds like you just don't like the look of some syntactic choices.
>>
File: 1416468011617.gif (1MB, 255x255px) Image search: [Google]
1416468011617.gif
1MB, 255x255px
>>56171472
That's correct. I think it looks like shit. And you're wrong, that isn't multi line comment, it's a docstring. You discredited yourself, anyway.

That makes two problems. A hideous comment mechanism, and a lack of proper/ official multi line support.
>>
Nobody, not even you read your shitty comments on your fizzbuzz implementation

I use single line comments on huge comment blocks JUST because of faggots like you
>>
File: 1469759527363.jpg (294KB, 582x600px) Image search: [Google]
1469759527363.jpg
294KB, 582x600px
>>56171472
>>56171506
Samefag detected
Butthurt levels detected
--[
Get
on
my
level
--]
>>
>>56171491
Tomato, tomayto, it's fucking multi-line comments you fucking autist
>>
>crying about unimportant shit
looks like you're the one who sucks
>>
File: pothead.jpg (33KB, 412x600px) Image search: [Google]
pothead.jpg
33KB, 412x600px
>>56171531
I don't think you understand. A tomato and an onion are not the same thing. Both are foods. Both can be used in cooking. Both can be consumed. Both are not tomatoes. Both are not onions.

Docstring implementations are not full fledged multi line comments. Only a literal moron would think so.

>pic related
>>
>>56171528
want to try again?

>>56171491
the docstring is supposed to be made with multi line comments, made with the use of three quotation marks.

like i said, your bitching is very clearly superficial. if you had any opinion about the underlying design decisions of the language - something even marginally more substantive than which tokens are used for comments - then maybe this would be an interesting discussion. i've TA'd classes with first year undergrads who have had more insightful questions and critiques than this.
>>
>writing comments
Shit coder detected.
>>
>>56171547
>Docstring implementations are not full fledged multi line comments.
In what way? They are functionally the same.

Anyways it's clear you don't actually like python, considering you're so asshurt over comments
>>
File: Donald Duck Laugh.gif (955KB, 500x377px) Image search: [Google]
Donald Duck Laugh.gif
955KB, 500x377px
>>56171601
Maybe I'm a closet hater of the language. What can I say?

>>56171584
>Thinks a screenshot proves anything
want to try again?

>literally grasping at insults
>mfw
>>
>>56171547
>Docstring implementations are not full fledged multi line comments. Only a literal moron would think so.
But they are
A multiline string placed anywhere but the usual docstring place will cause it to be ignored like a comment. It's literally the recommended way of doing multiline comments or disabling a chunk of code.
>>
>>56171626
>What can I say?
Probably construct a better argument. Even if you knew """ was the official multiline support, your only backing of not using it was saying it's complete garbage. Why is it complete garbage? If you answered that, you'd look less like a retard
>>
>>56171626

your right it was actually me but whatever you dont actually understand anything about the underlying design decisions of the language, so theres no point in talking to you.
>>
>>56171545

That's all he can do, bikeshedding.
>>
File: wew.jpg (50KB, 811x648px) Image search: [Google]
wew.jpg
50KB, 811x648px
>>56171698
Well at least you can be honest. Fair enough.

>>56171695
You want an answer? It'll be an opinion, but I'll bite.

I find it aesthetically irritating. For one, the tokens used aren't equidistant, and therefore don't match up, relative to the top and bottom. This looks like shit. Also it's just sort of garbled tossing three of the exact same small token together.

It's an opinion, but it's valid to me. I was simply stating in my OP that other languages have much better looking comment functions, and actually have non-docstring support for multi line usage, regardless of whether or not docstring usage can effectively do the same thing.
>>
>There is no official multi-line comment support except for the support that there is that I don't like

okay
>>
>>56171738
I can see how the whitespace sensitivity might make you think python is a language for hopeless spergs but actually it's just about being pragmatic

get over whatever dumb bullshit complaints you have about quotes being too top heavy of a character
>>
File: 1467388527823.gif (1MB, 440x440px) Image search: [Google]
1467388527823.gif
1MB, 440x440px
>>56171432
OP, the # is the standard way of commenting in the majority of the unixy environments, python, didn't invent it, ruby didn't, perl didn't ... as long as your file accepts shebang definition, odds are # will be used for marking comments.

Yes, it is balls that python doesn't have multiline comments, however the majority of text editors have a "comment multiple lines" command. At least all the ones I use have (or can be extended to have). What are you editing you python files with that this is such a problem?
>>
>>56171432
>hates python
okay
>for purely syntactical/stylistic reasons
fuck off

At least present some valid complaints against python next time, please
>>
File: ewwpeewee.jpg (31KB, 336x351px) Image search: [Google]
ewwpeewee.jpg
31KB, 336x351px
>>56171792
>Oh boo hoo he didn't have a complaint about some super duper important bug in the language or something major
Nobody told you to come to this thread, butt bagel. It's fully valid, it's just an opinion. Fuck off.
>>
>>56171817
>it's just an opinion
A shit opinion
>waah triplequotes are ugly for unspecified reasons and i'm too lazy to make my editor block comment with #
>>
>>56171432
Op, if you want esthetically pleasing, learn whitespace. https://en.m.wikipedia.org/wiki/Whitespace_(programming_language)

The following is a commented Whitespace program that simply prints "Hello, world!", where each Space, Tab, or Linefeed character is preceded by the identifying comment "S", "T", or "L", respectively:
S S S T    S S T    S S S L
T L
S S S S S T T S S T S T L
T L
S S S S S T T S T T S S L
T L
S S S S S T T S T T S S L
T L
S S S S S T T S T T T T L
T L
S S S S S T S T T S S L
T L
S S S S S T S S S S S L
T L
S S S S S T T T S T T T L
T L
S S S S S T T S T T T T L
T L
S S S S S T T T S S T S L
T L
S S S S S T T S T T S S L
T L
S S S S S T T S S T S S L
T L
S S S S S T S S S S T L
T L
S S L
L
L
>>
>>56171432
>2014
>not writing self-explanatory code
>>
>>56171432
It's time to stop using notepad and use a real editor that can automatically format comments.
>>
>>56171628
No they aren't. A multiline string takes time to run, comments don't.

>your program runs 1% slower because you used strings as comments
>you used strings as comments because your text editor can't comment things for you
>>
>>56172355
Completely wrong.
Strings that aren't referenced anywhere get discarded by the interpreter.
>>
>>56171432
two words: Civilization V.

play that shit then tell me python is fast
>>
>>56172383
You mean by the CPython byte compiler, but that's not in the language spec.
>>
>>56172408
>b-b-but someone might use an uncommon, poorly-writter compiler or interpreter that doesn't do an obvious optimization!
>>
>>56172413
>I will use my hair dryer in the shower like it warns you not to because it has a safety switch that will protect me
>I don't buy hair dryers without a retard safety switch
>>
@56172532
(You)
>>
>>56172396
why? is it written in python?
Thread posts: 34
Thread images: 10


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.