• RedFrank24@piefed.social
    link
    fedilink
    English
    arrow-up
    99
    ·
    1 day ago

    Anyone who complains about code not compiling on the first try likely hasn’t been coding for very long. Getting your code to do what you tell it is easy, getting it to do what you want is hard.

    • merc@sh.itjust.works
      link
      fedilink
      arrow-up
      3
      ·
      10 hours ago

      Anyone who doesn’t complain about code not compiling on the first try likely writes dead simple programs and could be replaced by an LLM. Writing simple programs is easy, writing complex programs is hard.

    • ClownStatue@piefed.social
      link
      fedilink
      English
      arrow-up
      29
      ·
      22 hours ago

      Getting your code to do what you tell it is easy. Getting it to do what you want is hard.

      New email signature unlocked.

    • schnurrito@discuss.tchncs.de
      link
      fedilink
      arrow-up
      9
      ·
      19 hours ago

      I usually code in an IDE that tells me whether my code will compile while I am typing it.

      But when I write things like PL/SQL, yeah it is definitely an achievement to get it to compile.

      • OpenStars@piefed.social
        link
        fedilink
        English
        arrow-up
        2
        ·
        16 hours ago

        Have you ever tried compiling your BASH scripting code? Man, that’s like, almost literally impossible! :-P

    • ulterno@programming.dev
      link
      fedilink
      English
      arrow-up
      5
      ·
      20 hours ago

      When I started programming with C, it was pretty easy to get code to compile on my first try.

      Now, when I use C…
      _POSIX_C_SOURCE >= 199309L … was in the man page, but didn’t work… _GNU_SOURCE works.
      Read somewhere to just use -std=gnu17 and remove _GNU_SOURCE and nice, it works.
      Create another project with -std=gnu17, but using another function and now it doesn’t work. Need to add _GNU_SOURCE. Why?