• naught101@lemmy.world
    link
    fedilink
    arrow-up
    15
    ·
    edit-2
    4 hours ago

    I was like this 5 years ago. Networking a lot is still effort for me, but it is just another learnable skill, and it has lots of benefits (depending on your aims, I guess)

    Edit: hah, just realised this is about connecting computers, not about talking to people…

  • partial_accumen@lemmy.world
    link
    fedilink
    arrow-up
    40
    ·
    edit-2
    6 hours 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.

      • chicken@lemmy.dbzer0.com
        link
        fedilink
        arrow-up
        1
        ·
        edit-2
        1 hour ago

        Early returns seems good, but personally I find code more confusing when things get arbitrarily separated out into functions, because to read it you have to keep scrolling back and forth between different parts of the page and either remembering where the other part is or typing a lot with ctrl-f, there’s more variables to hold results, and if the section of code to be separated into a function is picked just because of nesting depth reasons then it’s likely the function name isn’t going to describe what it does very clearly, leading to more scrolling and more having to keep track of things in your head.

    • Zos_Kia@jlai.lu
      link
      fedilink
      arrow-up
      2
      ·
      4 hours 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.

    • db2@lemmy.world
      link
      fedilink
      arrow-up
      3
      ·
      5 hours ago

      My universe is nested “if” statements all the way down

      Also known as AI 🤣

    • otacon239@lemmy.world
      link
      fedilink
      arrow-up
      3
      ·
      5 hours 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.

  • OwOarchist@pawb.social
    link
    fedilink
    English
    arrow-up
    8
    ·
    6 hours ago

    I’ve enabled all the relevant permissions. I’ve disabled firewall protection. I’ve enabled file sharing on both sides. I’ve checked for connectivity to the other machine from the command line…

    Why is my shared folder still not accessible!??!

  • slacktoid@lemmy.ml
    link
    fedilink
    English
    arrow-up
    2
    ·
    4 hours ago

    My confidence in disk management and partition tables is made of horse hair, single strand.

  • uen3@sh.itjust.works
    link
    fedilink
    arrow-up
    8
    ·
    6 hours ago

    That’s why I decided to build my first online multi-player game as an offline single-player game, and just figure out how to add the networking stuff when everything else is done- an architectural choice I definitely won’t come to regret later…

    • nymnympseudonym@piefed.social
      link
      fedilink
      English
      arrow-up
      9
      ·
      7 hours ago

      Still doesn’t help with things like understanding routing and subnet masks and frame sizes and jfc how does any of this work

      • floquant@lemmy.dbzer0.com
        link
        fedilink
        arrow-up
        2
        ·
        edit-2
        4 hours ago

        Of course not, but I’ve found that seeing the protocols in action and looking at real headers can be very helpful in making them click. Understanding DHCP or ARP or mDNS or BGP or whatever is much easier by inspecting a pcap than it is by reading RFCs

    • ohshit604@lemmy.halstead.host
      link
      fedilink
      arrow-up
      2
      ·
      edit-2
      6 hours ago

      As someone who understands the concept of network but has never professionally entered the field, i assume this just dumps a TCP packet to be inspected, correct?

      • floquant@lemmy.dbzer0.com
        link
        fedilink
        arrow-up
        1
        ·
        4 hours ago

        Yes, but before I used it I assumed that its scope was pretty much limited to what you just mentioned. Instead it can operate on most protocols both above and below layer 4, and it is incredibly useful as a traffic capture tool to produce a .pcap on a remote headless machine which you can then load into Wireshark. The “dump” part is the interesting one, not the “tcp” ;)

        • ohshit604@lemmy.halstead.host
          link
          fedilink
          arrow-up
          1
          ·
          6 hours ago

          Thank you for the affirmation, I got reverse proxies and certificates relatively down, however I am struggling to understand headers and their purposes, I know Mozilla has great documentation regarding headers but lately I’ve gotten lazy, haha.

          • floquant@lemmy.dbzer0.com
            link
            fedilink
            arrow-up
            2
            ·
            edit-2
            4 hours ago

            HTTP headers or headers in general? For the former I suggest Burp Suite to inspect and manipulate headers to see how things change, for the latter tcpdump/wireshark, to supplement your theory reading :)

    • printf("%s", name);@piefed.blahaj.zoneOP
      link
      fedilink
      English
      arrow-up
      2
      ·
      6 hours ago

      Thanks! I started with Wireshark, settled on tcpdump for a while and now I’m too busy learning electrical engineering to give any fucks at all. 🤣 Nah but seriously, tcpdump gave me lots of insight! :)

  • rockSlayer@lemmy.world
    link
    fedilink
    arrow-up
    2
    ·
    6 hours ago

    I’ve been trying to remotely connect to a relational database of medical data. I’ve been smashing my head against a keyboard for days trying to get my fucking code to work. I can’t even connect to their db on their Jupyter Spark cluster

      • rockSlayer@lemmy.world
        link
        fedilink
        arrow-up
        3
        ·
        4 hours ago

        It absolutely is. I’m dealing with genetic data, so I’m on their high security tier. Right now, the signs point to some poorly documented environment variables that aren’t sourced on startup for some reason