Please also review our SoylentNews Moderation Guidelines.
As always, we are willing to make changes to the system, but please post examples *with* links to any cases of suspected mod abuse. It's a lot easier to justify changing the system when evidence is in black and white. I also recommend that users make serious proposals on changes we can make. I'm not going to color the discussion with my own opinions, but as always, I will respond inline with comments when this goes live, and post a follow up article a few days after this one
(Score: 2) by Marand on Thursday May 21 2015, @09:01AM
There is some serious voodoo code at work with this system. Even more so than the typical slash code.
You're definitely right about that. I took a cursory glance and it's...um...something. I don't know the codebase so I was just searching around, and I saw that it's checking a database value for length and max length (which defaults to 4096 in the sql schema), which seemed like a good start, but that lead dead-ended when I tried actually figuring out where the truncation actually happens. Or is supposed to be happening.
Seems like it'd be easy to set up new truncation rules if you could actually figure out where the magic is happening, but goddamn. Some useful fucking comments would have been great, but the original authors were too pro for that shit I guess. You have my condolences for having to deal with this stuff, it looks like a nightmare. Too much "look at me, I'm clever!" and not enough "# this is what my clever code does".