• 109 Posts
  • 4.38K Comments
Joined 3 years ago
cake
Cake day: August 4th, 2023

help-circle











  • Once I saw this guy on a bridge about to jump. I said, “Don’t do it!”

    He said, “Nobody loves me.”

    I said, “God loves you. Do you believe in God?”

    He said, “Yes.”

    I said, “Are you a Christian or a Jew?”

    He said, “A Christian.”

    I said, “Me, too! Protestant or Catholic?”

    He said, “Protestant.”

    I said, “Me, too! What franchise?”

    He said, “Baptist.”

    I said, “Me, too! Northern Baptist or Southern Baptist?”

    He said, “Northern Baptist.”

    I said, “Me, too! Northern Conservative Baptist or Northern Liberal Baptist?”

    He said, “Northern Conservative Baptist.”

    I said, “Me, too! Northern Conservative Baptist Great Lakes Region, or Northern Conservative Baptist Eastern Region?”

    He said, “Northern Conservative Baptist Great Lakes Region.”

    I said, “Me, too! Northern Conservative Baptist Great Lakes Region Council of 1879, or Northern Conservative Baptist Great Lakes Region Council of 1912.”

    He said, “Northern Conservative Baptist Great Lakes Region Council of 1912.”

    I said, “Die, heretic!” And I pushed him over.

    Attributed to comedian Emo Philips.

    See also Freud’s “narcissism of small differences”.








  • The person you replied to was me and the person who replied to you is also me (and I’m me… I think ;) ). But I think we’re talking past each other.

    My first post in this thread was making the point that 48,000 files in a single code repo is an outlandishly hugely ridiculous number of files and that is probably a good indication (so I was agreeing with the previous poster) that Claude wrote the vast majority of that code.

    As in “if the number of lines in my codebase is significantly less than that 48,000 number of files, how much more stark must be the difference between that 48,000 files the number of files in a repo built by a single normal-but-avid developer (like me)?” Like, if someone said “I ate 5 dozen eggs today” and you responded “holy shit, dude, I haven’t even had five single eggs today”.

    Nobody was talking about any particular number of lines being outlandishly large. Just the number of files in the repo in the OP being outlandishly large. And your post was about how the number of lines in a repo could be very large, which isn’t really relevant to anything I was saying.

    (Actually, it sounds like there were 55,000 files in the repo of which 48,000-ish were deleted. Either way. Huge number of files.)


  • Yeah, but the OP was about how many files there were in the project. And none of what you’ve mentioned here has any significant effect on how many files there would be in a project.

    Though I do think probably my style of coding probably results in fewer lines of imports than many coders. I tend to eschew dependencies fairly radically. “A little copying is better than a little dependency” and all that. And also, my language of choice is Go, which doesn’t allow importing individual things from a package the way, say, Java does. An import imports a package in Go. Just looking at that “biggest thing I’ve ever made”, the most imports I have in any one file in my entire codebase is 18.

    methodology
    for f in $(find . -iname '*.go') ; do grep '^ "' "${f}" | wc -l | tr -d '\n' ; echo ' ' "${f}" ; done | sort -n
    

    (Go syntax for imports generally adds a couple of lines in each file, so 18 imports would typically be 20 lines of code. And then there’s usually a blank line after that before other code starts. You know how it is.)

    And the total number of lines of just imports (including the two extra lines per import statement and blank line before other code starts) in my whole project is 1002 in a codebase that cloc calls 25693 lines and wc -l calls 28543 lines. So, like 3.37% to 3.351% of the codebase is imports. Oh, and the whole repo is 136 files.

    (Full disclosure, there’s a tiny bit of non-Go code in my project and I’m omitting all that in the above. A little HTML/JS/CSS here, a little GLSL there. And what I’m writing is a language, so I’ve got some code in my own language in the repo. Also, there’s no vendored code in my repo or anything, so every character of what I’m talking about above was at one point a keystroke on my keyboard.)