you are viewing a single comment's thread
view the rest of the comments
[–] 60 points 2 months ago* (19 children)

If it helps, I'm from the other side of networking and infra. You could swap the labels and make the meme accurate for me.

In the mid 1980s I learn the BASIC programming command GOTO and fell in love for a lifetime. If you look any anything I used to write in Ruby script or today in Python you'll see my love affair with "if" "elfi" and "else" continues. My universe is nested "if" statements all the way down.

  • source
  • hideshow 19 child comments
  • [–] 16 points 2 months ago* (4 children)

    If you like if statements, you'll love the python case statements for pattern matching

  • source
  • parent
  • hideshow 4 child comments
  • [–] 35 points 2 months ago* (3 children)

    Ohhh nice! I could see replacing dozens of nested if statements with dozens of nested case statements!

  • source
  • parent
  • hideshow 3 child comments
  • [–] 4 points 2 months ago (2 children)

    Also don't nest case statements. Please.

  • source
  • parent
  • hideshow 2 child comments
  • [–] 3 points 2 months ago (1 child)

    I remember one of the hardest transitions for me from scripting in Ruby to Python was the whitespace indent was larger by default in Python. With Python, I ran out of monitor width and would have to be constantly scrolling right and left when visually parsing the code because the nested loops were so deep.

  • source
  • parent
  • hideshow 1 child comment
  • load more comments (14 replies)