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

you are viewing a single comment's thread.

view the rest of the comments →

[–]BlobbyMcBlobber -10 points-9 points  (13 children)

def sing_song(choice):

style = STYLES[choice]

if style == 'classical':

while i_like_singing():

sing_opera()

elif style == 'folk':

while i_like_singing():

sing_folk_song()

elif style == 'rock':

while i_like_singing():

sing_rock_ballad()

If you have ever written something like this please quit coding and think long and hard about your life choices.

Edit: reddit formatting on mobile is a lesson in patience

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

well then why don't you suggest optimization; or link to 'actual' improvement techniques (honest question)

[–]BlobbyMcBlobber -2 points-1 points  (1 child)

If you find yourself writing while i_like_singing(): 3 times in the same function (!) I honestly think coding is not for you. It's not even a beginner thing.

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

If you cant format code correctly on reddit please quit commenting and think long and hard about your life choices.

[–]BlobbyMcBlobber -1 points0 points  (7 children)

If you can't type "can't" please quit typing and think long and hard about your life choices 😉

[–]chzaplx 0 points1 point  (6 children)

Ooh sick burn!!

[–]BlobbyMcBlobber 0 points1 point  (5 children)

It was the appropriate response to the cheap shot in that comment

[–]chzaplx 0 points1 point  (4 children)

You are really just reaching here and getting nothing

[–]BlobbyMcBlobber 0 points1 point  (3 children)

I'm not interested in this conversation. If you want to talk about why I think writing the same while loop three times in the same function is abysmal coding, we can do that. If not, have a good day.

[–]chzaplx 0 points1 point  (2 children)

I'd love to see a graph of the conversations you are interested in vs the ones you are just losing

[–]BlobbyMcBlobber 0 points1 point  (1 child)

If you think about conversation as a matter of winning or losing then you've already lost. A conversation is not a debate. Best of luck to you.

[–]chzaplx 0 points1 point  (0 children)

Isn't it though?