Simple != few lines of code, nothing incompatible about those two statements
Clean, simple code that is easy to understand and contribute to
The problem with grabbing small snippets of code is a lot of context is lost. Don’t trust anyone who does that. PieFed has 50,000 lines of code so anyone showing you 50 lines is leaving out 99.9% of the picture.
These 2 statements are incompatible.
Plus depending on the snippets they definitely can tell how things work
UndercoverUlrikHD@programming.dev 2 days ago
goferking0@lemmy.sdf.org 2 days ago
Saying the simple code needs lots of context outside of the code block says it’s either not simple or not easy to understand
UndercoverUlrikHD@programming.dev 1 day ago
« The problem with grabbing small snippets of code is a lot of context is lost.» does not mean that a lot of additional code is required to understand the context, additionally, simple code may require you to read a bit of code to understand it.
Simplicity does not mean small scale, nor that it must be understood at a glance.
Rich Hickey got a great presentation where he discuss simplicity vs complexity. It’s worth a watch if you want to better understand the concepts.
wjs018@piefed.wjs018.xyz 2 days ago
Previous threads about these filters were people complaining about them being hardcoded, completely ignoring that they are completely optional and off by default. It would go something like this:
Look at this awful thing PieFed does!
It completely ignored the context that the
do_the_thingfunction is only called if the admin wants to do the thing.goferking0@lemmy.sdf.org 2 days ago
Most of the issues people have brought up have been about why the snippets are even in the code not trying to obscure what the code does.
Again it’s why is this a thing