>linters crying about 80 char limit in 2016+8

>linters crying about 80 char limit in 2016+8
absolutely nothing fits into 80 chars morons

Mike Stoklasa's Worst Fan Shirt $21.68

Homeless People Are Sexy Shirt $21.68

Mike Stoklasa's Worst Fan Shirt $21.68

  1. 1 month ago
    Anonymous

    >40 inch widescreen monitors
    >nooo 80 characters only
    this is a cancer leftover from the 70s

    • 1 month ago
      Anonymous

      >40 inch widescreen monitors
      cancer
      >this is a cancer leftover from the 70s
      let's see your code

      • 1 month ago
        Anonymous

        have something old i posted here then
        https://godbolt.org/z/MYYM9KxGv

        • 1 month ago
          Anonymous

          Imagine being such a junior that you care about code style more than the compiler does.

          Looks good.

          you have high standards for bait my friend
          look at this unserious makefile for me and tell me what you see:
          https://cvsweb.openbsd.org/cgi-bin/cvsweb/~checkout~/src/usr.bin/ssh/ssh/Makefile?rev=1.81&content-type=text/plain
          if you could point to the glob it would be most appreciated.

          Looks good.
          In 2024 if you're worried about insignificant whitespace or line length or style then you are a junior and you need to get good.
          If you expect to tell whether code is correct by whether it "looks" correct, i.e. indentation and line length, then you don't actually know what you're looking for and you're going to miss actual bugs.
          It's similar to believing that a clean, pressed suit indicates a person of good moral character.

    • 1 month ago
      Anonymous

      It's because of macbook itoddlers. They have only 13" monitors as their primary screen.

  2. 1 month ago
    Anonymous

    >ask linter to cry about PEP-8
    >cries about linter crying about PEP-8
    looks like a (You) problem

    • 1 month ago
      Anonymous

      configure your max line length to be 160 in the linter section of your pyproject.toml you fricking moron
      literally not a problem

      defaults should be good
      >just coonfig this in your editor, repo, pipelines and tell everyone else to do it too!!
      "No!"

      >t. webshitter

      infra/backend but helping out with tests

      I like it 80 chars, makes it easier to have multiple editors open in column

      Your average 16:9 24" 1080p should fit two 120 char terminals with room to spare

  3. 1 month ago
    Anonymous

    >sir do the needful and increase character limit as I cannot create my "EdgeChromiumReactDriverInterfaceVirtualAbstractManagerManagerFactory" class please and thank you

    • 1 month ago
      Anonymous

      sounds like an extern library issue

    • 1 month ago
      Anonymous

      >t. fizzbuzz boomer

    • 1 month ago
      Anonymous

      >EdgeChromiumReactDriverInterfaceVirtualAbstractManagerManagerFactory
      there is a pajeet in my team, and i literally argued with him over this exact thing.

      >sir you cannot name your class StatefulService, please rename to StatefulServiceAbstractFactoryBuilderManagerImplementation

  4. 1 month ago
    Anonymous

    for me, it's 120 chars per line

    • 1 month ago
      Anonymous

      kek
      and for me its font size 12

      • 1 month ago
        Anonymous

        imagine writing makefiles in 2024
        t. cmake chad

        • 1 month ago
          Anonymous

          >cmake
          >just add ALL of your files manually like a fricking monkey bug pajeet instead of just using all C++ files recursively like you can with GNU make
          Black person

          • 1 month ago
            Anonymous

            geg, do cmaketards really

          • 1 month ago
            Anonymous

            meson does this too
            it's really strange coming from a java land where project structure is more-or-less standardized

          • 1 month ago
            Anonymous

            well that just proves that make is best

          • 1 month ago
            Anonymous

            geg, do cmaketards really

            my ide does all of that for me

            thats the technology i was traught so thats what im rolling with.
            its still sligtly less work intensive than writing a compiling environment from scratch or learning a new one
            and god willing this is the last makefile i will ever write in my life
            (i had the briliant idea to update my work environment recently. 'thought it was gonna take an afternoon, it took me two full days)

            good attitude actually, if it works it works
            but cmake isn't so bad once you get used to it, even tho everyone b***hes at first

          • 1 month ago
            Anonymous

            >my IDE
            so cmake is worthless and IDE does all the work, got it

          • 1 month ago
            Anonymous

            cmake easily builds my c++, assembly, whatever i need
            and with 3.28/3.29 modules finally just work
            nocoders like you wouldn't get it

          • 1 month ago
            Anonymous

            my 10 line Makefile also does this

          • 1 month ago
            Anonymous

            is this 10 line Makefile in the room with us right now?

          • 1 month ago
            Anonymous

            nope, only on my computer, and it's proprietary

          • 1 month ago
            Anonymous

            meson does this too
            it's really strange coming from a java land where project structure is more-or-less standardized

            well that just proves that make is best

            any serious use of makefiles, for example on openbsd, enumerates all sources explicitly as well. this is simply the only reasonable way to maintain a project, large or small.

          • 1 month ago
            Anonymous

            >openbsd
            irrelevant toy distro, can't take this shitpost seriously

          • 1 month ago
            Anonymous

            no shit, nobody else uses raw make in 2024

          • 1 month ago
            Anonymous

            weak bait

          • 1 month ago
            Anonymous

            you have high standards for bait my friend
            look at this unserious makefile for me and tell me what you see:
            https://cvsweb.openbsd.org/cgi-bin/cvsweb/~checkout~/src/usr.bin/ssh/ssh/Makefile?rev=1.81&content-type=text/plain
            if you could point to the glob it would be most appreciated.

          • 1 month ago
            Anonymous

            all I see is garbage

          • 1 month ago
            Anonymous

            yes, its a makefile. but do you see a glob?

          • 1 month ago
            Anonymous

            not GNU makefile, don't care

          • 1 month ago
            Anonymous

            I'm not going to defend CMake, it's pretty dumb, but honestly it's not that hard to maintain this. Most IDEs will add source files for you and it's not herculan to write a simple shell pipeline in your text editor (like vim, etc) that will generate all the source files and write them in your buffer.

          • 1 month ago
            Anonymous

            >IDE
            is just a point against CMake

          • 1 month ago
            Anonymous

            How? Do you enjoy using ctags like some boomer stuck in the 90s? CMake generates compile_commands.json. what does your homosexual make build system do?

          • 1 month ago
            Anonymous

            it compiles code

          • 1 month ago
            Anonymous

            >shell pipeline
            Just use Make at that point.

        • 1 month ago
          Anonymous

          thats the technology i was traught so thats what im rolling with.
          its still sligtly less work intensive than writing a compiling environment from scratch or learning a new one
          and god willing this is the last makefile i will ever write in my life
          (i had the briliant idea to update my work environment recently. 'thought it was gonna take an afternoon, it took me two full days)

    • 1 month ago
      Anonymous

      yeah, 120 is reasonable even for java

  5. 1 month ago
    Anonymous

    >t. webshitter

  6. 1 month ago
    Anonymous

    configure your max line length to be 160 in the linter section of your pyproject.toml you fricking moron
    literally not a problem

  7. 1 month ago
    Anonymous

    Make:
    make -j4

    CMake:
    mkdir build
    cd build
    cmake .. -G "Unix Makefiles"
    # wait a gorillion years for CMake to generate a bunch of shit to maybe break because of some botched shit that didn't port right because the dev is a Black person that only tested against MSVC or Ninja
    make

    • 1 month ago
      Anonymous

      Kek this is the dumbest most uninformed post in this thread.
      CMake has the most sophisticated automatic CI/CD testing pipeline of any project on the planet.

      + since like 2017 youve been able to just do

      cmake -S . -B build # configure
      cmake --build build -j4 # compile

      And that will configure + compile your code on every single platform supported by cmake.
      You're also ignoring the fact that most serious projects that use makefiles also force you to run "./configure" before running make.

      • 1 month ago
        Anonymous

        >cmake -S . -B build # configure
        how exactly is this either easier to type or remember than mkdir build<CR>cd !$?

        • 1 month ago
          Anonymous

          It doesn't require you to change directories, which is much better in scripts.

          The syntax is
          # ./configure
          cmake -S <SRC_DIR> -B <BUILD_DIR>

          # ./make
          cmake --build <BUILD_DIR>

          sure its a few extra characters of typing but those exact commands work verbatim on every platform: Linux, Windows, Mac

    • 1 month ago
      Anonymous

      Kek this is the dumbest most uninformed post in this thread.
      CMake has the most sophisticated automatic CI/CD testing pipeline of any project on the planet.

      + since like 2017 youve been able to just do

      cmake -S . -B build # configure
      cmake --build build -j4 # compile

      And that will configure + compile your code on every single platform supported by cmake.
      You're also ignoring the fact that most serious projects that use makefiles also force you to run "./configure" before running make.

      both of these ignore that this omits all configuration options of the project like optional dependencies, compile flags, linker flags, preprocessor flags... Meaning that no matter what, makefile will be better.

  8. 1 month ago
    Anonymous

    I like it 80 chars, makes it easier to have multiple editors open in column

    • 1 month ago
      Anonymous

      buy a wider monitor

  9. 1 month ago
    Anonymous

    >ObnoxiouslyLongVariableNames
    >80 char limit
    Pick one

  10. 1 month ago
    Anonymous

    Is there any compelling compatibility reason to keep the limit at 80 nowadays? I have an older 1366x768 device that I would consider probably the low end of dual-column compatibility to aim for, but is there anything else?
    On my current 1920 screen, I can do two columns of editors with 154 usable width with my text size, though that's maybe a little on the smaller end of the range. I can do three columns at 100, but three columns seems rather niche.
    I realize every team and project can decide their own limit, that's not what I'm asking. I want to know if there's some sort of legitimate reason to continue having 80 as the most general default in use.

    • 1 month ago
      Anonymous

      >Is there any compelling compatibility reason to keep the limit at 80 nowadays?
      compatibility, no, but generally it serves as an initial indicator you're doing too much on a single line/function or have shitty variable/function names. Just think of it like this, the entirety of the Linux Kernel is done mostly within 80 characters (with exceptions here and there).

      • 1 month ago
        Anonymous

        Linux is owned by a moron who
        >hates C++
        >included Rust
        >doesn't even know what Ada is
        everything he says and does, I do the opposite

        • 1 month ago
          Anonymous

          then use 320 character lines then, just don't complain when it gets unreadable.

          • 1 month ago
            Anonymous

            I use as many characters as my 4K monitor can handle

      • 1 month ago
        Anonymous

        I disagree, because with indentation and clear naming you're often pushed up against that limit before you even start doing something useful with the line. To use a Linux example, look at
        https://github.com/torvalds/linux/blob/0cc6f45cecb46cefe89c17ec816dc8cd58a2229a/drivers/android/binder.c#L2807
        That line is 98 characters long, almost 25% longer than the intended limit, and it's just a function call, with the return being assigned to a var. Note how adding it to the line above would have put it only 3 characters past that (although above a potential 100 limit), but kept it all as one line. More importantly, that line starts with 79 characters of whitespace -- you could even miss that it isn't a blank if you were expecting 79/80 char lines!
        I think restricting to 80 characters actually pressures people to use worse names, because they try to compress and use abbreviations that can be somewhat inscrutable. Part of this is style (like the *nix convention of 8-width tabs), but plenty of languages are naturally verbose. I think that, in practice, 80 is just a little too restrictive. In my opinion, looking at my own screen, 100 chars are essentially just as easily scanned as 80, but relieves pretty much all pressure from indentation. I can understand, though, that 120 perhaps adds too much of an element of horizontal scanning with the eyes when moving through blocks.

        • 1 month ago
          Anonymous

          >cnile code is shit
          color me surprised

          • 1 month ago
            Anonymous

            well, you certainly are colored but that's not a surprise

          • 1 month ago
            Anonymous

            yes, white is most diverse color of them all

  11. 1 month ago
    Anonymous

    >EdgeChromiumDriverManager
    lmao what is this shitty naming, shameful

  12. 1 month ago
    Anonymous

    79 characters is for cpython.
    The limit *should* be 100 - 120 characters

  13. 1 month ago
    Anonymous

    Do people just not use wordwrap if it bothers them?

  14. 1 month ago
    Anonymous

    >linters
    it's not linters it's this particular linter's configuration

    • 1 month ago
      Anonymous

      It's this linter's default confguration which is moronic
      and it's widespread

      Good morning goodmorningfactory.goodmorning.saar()

      Example ripped from
      https://github.com/Significant-Gravitas/AutoGPT/blob/e8d7dfa386f9e104bdb0b42aaedbf537318544ba/autogpts/forge/forge/actions/web/web_selenium.py btw

  15. 1 month ago
    Anonymous

    Good morning goodmorningfactory.goodmorning.saar()

  16. 1 month ago
    Anonymous

    Just use xmake homosexuals. It can even generate CMakeLists.txt files. https://xmake.io/mirror/plugin/builtin_plugins.html

    $ xmake project -k cmakelists

    • 1 month ago
      Anonymous

      >it can even generate garbage
      wow!

Your email address will not be published. Required fields are marked *