3 ms·
Try to beat this one: I spent 4 months, full-time (I think I was a bit depressive and unproductive, though (that might have to do with the difficulty of the pr
by Hexstream 16y ago
Try to beat this one:
I spent 4 months, full-time (I think I was a bit depressive and unproductive, though (that might have to do with the difficulty of the problem a bit)) to make a goddamn "error message merging" system where you specify some merge rules for error messages, and then said messages are "merged" efficiently at runtime (with another of my adaptations of the awesome Rete algorithm).
For instance, as a trivial example merging "Please enter your Username." and "Please enter your Password." could yield "Please enter your Username and Password."
Merging error messages efficiently with a great concise syntax looked SO EASY =/ I was wondering why the hell no websites (that I know of) do that because it's a pretty obvious feature to me... Well, now I know. People don't really mind that much about these things (maybe they just have low expectations) AND it's really hard to implement.
I finally made it, right now the implementation is utter crap, with some missing features and some bugs but the general architecture is there and works. I'll clean it up and document it within a few months, probably.
It's one of the hardest things I ever made so far in programming.
- GFischer 16y agoHeh, I was asked to do the same thing for the current system/website we're building here at the corporation I work for. Fortunately we were able to convince them it wasn't time well spent, but it would be neat.