5 ms·
The proper YAGNI reply to this would be to use a proper library or work in the right abstraction layer so that you don't have to worry about SQL injection. For
by sherjilozair 10y ago
The proper YAGNI reply to this would be to use a proper library or work in the right abstraction layer so that you don't have to worry about SQL injection. For instance, Django provides the csrf_token which can be dropped in. That's still less code and secure.
- stcredzero 10y agoRight. There's a world of difference between a mature, well maintained database library and some random goofy thing to post to social media written by newb coders. A corollary to writing less code is doing less debugging -- and furthermore, exploiting freely available code that represents 1000's of hours of debugging already done for you. Good taste is just a form of 3rd order laziness.
- TeMPOraL 10y ago> Good taste is just a form of 3rd order laziness. Great line! Saved in my quotes file.
- mrec 10y agoI don't think that's a YAGNI reply, it's a don't-reinvent-the-wheel or anti-NIH reply.
- contravariant 10y agoI think the only proper YAGNI reply would be not to use any kind of user input. Of course, only if you actually don't need it.