4 ms·
Who, when wanting to write a secure piece of software, thinks: "I know! I'll use JavaScript!"? Security was always going to be an afterthought at best. There ar
by tormeh 10y ago
Who, when wanting to write a secure piece of software, thinks: "I know! I'll use JavaScript!"? Security was always going to be an afterthought at best. There are legitimate reasons for writing things in JavaScript, and none of them apply to a database.
- golergka 10y agoWhat does this have to do with Javascript?
- tormeh 10y agoMongoDB is written in Javascript.
- grzm 10y agoIn part. According to the Github repo, it's 75% C++, 18% JS. https://github.com/mongodb/mongo https://github.com/mongodb/mongo
- aioprisan 10y agoThe JS is from docs and examples, not from core MongoDB code.
- grzm 10y agoThanks for the further clarification!
- tormeh 10y agoSo https://en.wikipedia.org/wiki/MongoDB https://en.wikipedia.org/wiki/MongoDB is wrong? Well, guess I trusted Wikipedia a bit too much.
- aioprisan 10y agoI'm confused, what about that page are you claiming to be right or wrong? The code is here for all to see: https://github.com/mongodb/mongo/tree/master/src/mongo https://github.com/mongodb/mongo/tree/master/src/mongo
- orf 10y agoThat's ridiculously incorrect.
- aioprisan 10y agoYou got it wrong, MongoDB is written in C++. I guess it's easier to jump on the JS hate bandwagon than look it up for yourself.