15
macbury
6y

I hate fucking people that commit into repository all libraries and modules under node_modules or vendor/gems making impossible to search examples on github.

Comments
  • 0
    My node knowledge is literally zero, so how does committing libraries hinder the search for examples?
  • 2
    @asgs for example: I want to see how people use in their projects some react component or ruby gem. So I go to github and perform search. What I see now is pages with the same code pointing to source in node_modules, vendor/gems that is exactly the same(because is pulled from the same package).
  • 0
    @macbury oh, I see. A sane .gitignore in such projects would've helped, I guess
  • 4
    Why you fuck people out of anger?
  • 0
    @asgs and the first thing you do is run npm install or gems install (I think I use node not ruby) and it gets the proper version from the respective CDN based on a specification file in the project. Using a .gitignore is the solution, but idk how to fix all the previous fuck ups
  • 1
    git add /node_modules
    git commit -m 'Try to find something now'
    git push origin lol
  • 0
    I used to commit the vendor/gems folder. This is because the CI server and agents do not have internet access. So it's easy to do a bundle install --local.
  • 0
    I read about this shit, there are reasons to commit them and reasons not to 🌮
  • 1
    @mundo03 I cannot fathom a good reason to commit node_modules.

    Not to the git repo. In an electron program or something you have to ship them to the end user. If for some asinine reason you can't download them on the end target machine, zip from the dev machine and hardware transfer the files.
  • 1
    @jeeper I was talking more about Ruby, same concept though.

    I do not read too much about node because I think JS is the front end is stupid enough.

    I have seen cases where pythonists and rubyists do commit the equivalent to node_modules, but maybe it is because node_modukes tend to have way too much shit in it and mode devs tend to install full huge packages for the stupidest little things.
  • 2
    @mundo03 anything distributed over a cdn shouldn't be committed, imo. But I don't know the specifics of python and ruby.
Add Comment