▲ 748 ▼ I can definitely maybe do this! (thelemmy.club) submitted 5 days ago by akunohana@piefed.blahaj.zone to c/programmer_humor@programming.dev 103 comments fedilink hide all child comments
[–] partial_accumen@lemmy.world 37 points 5 days ago* (1 child) Ohhh nice! I could see replacing dozens of nested if statements with dozens of nested case statements! permalink fedilink source parent hideshow 2 child comments replies: [–] MonkderVierte@lemmy.zip 3 points 5 days ago (1 child) Also don't nest case statements. Please. permalink fedilink source parent hideshow 2 child comments replies: [–] partial_accumen@lemmy.world 2 points 5 days 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. permalink fedilink source parent hideshow 2 child comments replies: [–] MonkderVierte@lemmy.zip 1 point 4 days ago Yes, but also, it makes for twistsd code. permalink fedilink source parent
[–] MonkderVierte@lemmy.zip 3 points 5 days ago (1 child) Also don't nest case statements. Please. permalink fedilink source parent hideshow 2 child comments replies: [–] partial_accumen@lemmy.world 2 points 5 days 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. permalink fedilink source parent hideshow 2 child comments replies: [–] MonkderVierte@lemmy.zip 1 point 4 days ago Yes, but also, it makes for twistsd code. permalink fedilink source parent
[–] partial_accumen@lemmy.world 2 points 5 days 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. permalink fedilink source parent hideshow 2 child comments replies: [–] MonkderVierte@lemmy.zip 1 point 4 days ago Yes, but also, it makes for twistsd code. permalink fedilink source parent
[–] MonkderVierte@lemmy.zip 1 point 4 days ago Yes, but also, it makes for twistsd code. permalink fedilink source parent