You are viewing a single thread.
View all comments
206 points

I’ve literally told my coworkers “I’m not saying we should never use dependencies. But every time you add a dependency, you should hate yourself a little bit more. Some self flagellation can’t hurt either.”

permalink
report
reply
11 points

So, every time I use a library to recognize patterns on a picture, to interact with Kafka, do some SSL, or do database mapping, I should hate myself, noted

We did Elastic API integration in Java by creating and maintaining huge half-codegenerated transformer from code to Elasticsearch’s JSONs, it was a pain and it was source of more than one error

Dependences should be reviewed and audited to make sure they do what you need and they are worth using. Just making everything in-house gets you nowhere most of the time

permalink
report
parent
reply
24 points

Nobody is arguing that you should never depend on anything and create everything yourself, but adding a dependency for literally a one liner function is awful. Like one of the Go proverbs goes, a little copying is better than a little dependency.

permalink
report
parent
reply
3 points

Yeah, there’s mention of doing the opposite in C++ community in a neighbouring thread

permalink
report
parent
reply
11 points

You code in Java, of course you should self flagellate on a daily basis just for that. The entire ecosystem is completely fucked.

permalink
report
parent
reply
5 points

Joke’s on you, I code in Rust

permalink
report
parent
reply
3 points

That is what they were getting at by some self flagellation can’t hurt either. That sometimes “hating yourself” (adding dependencies) is worth it.

permalink
report
parent
reply
1 point

I read it as “also throw in some physical pain cause just feeling bad is not quite enough” 🤔

permalink
report
parent
reply
3 points
Deleted by creator
permalink
report
parent
reply

Programmer Humor

!programmer_humor@programming.dev

Create post

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics

Community stats

  • 3.3K

    Monthly active users

  • 806

    Posts

  • 12K

    Comments