• partial_accumen@lemmy.world
    link
    fedilink
    arrow-up
    20
    ·
    25 days ago

    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.

          • partial_accumen@lemmy.world
            link
            fedilink
            arrow-up
            3
            ·
            24 days ago

            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.

    • otacon239@lemmy.world
      link
      fedilink
      arrow-up
      3
      ·
      25 days ago

      Same here! I can put together a half-descent network in just a few hours, but even programming simple stuff on microcontrollers is a major endeavor. And the documentation is usually terrible or nonexistent. And the tutorials are usually barely able to cover basic questions. At least in the space of networking, there’s enough context clues in the UI that I can piece together the solution I need.

    • Zos_Kia@jlai.lu
      link
      fedilink
      arrow-up
      3
      ·
      25 days ago

      It was fashionable at a time to avoid ifs and other imperative structures, but I tend to like them. Functional is nice and all but I like my code to be smart in the way it works, not in the way it’s written. Nested ifs are readable, collapsible, and easy to make sense of at a glance, there’s often nothing wrong with using them.