The less code the better! Usually when I see massive PRs with hundreds of lines of code, the engineer who wrote it has through lack of experience or lack of humility re-written a huge chunk of stuff that's already in the standard library.
Less code reaches a limit where readability and future maintenance costs more. The art is having just enough code to do the job without having too much or too little. Unfortunately, programmers are not often measured on their ability to write code that can be handed off to others and maintained for the next 20 years.