4 ms·
It's rather trivial to write your own specialised form of array management, that is both easier to read & debug & also produces less bloat. I've worked at sever
by cmroanirgo 4y ago
It's rather trivial to write your own specialised form of array management, that is both easier to read & debug & also produces less bloat.
I've worked at several places where std:: is verboten.
Only some of the people coming onboard never got over the shock of such a rule, but for the most part, all developers embraced the different paradigm. Teams inter operated faster, iterated changes faster, & there were less issues with inter department libraries. Bugs were far fewer.
It really gives you freedom to have complete ownership of your code, rather than 100% relying on boilerplate libraries. I now see std:: as a disempowering limitation to modern development.
Of course, YMMV.
It also makes it easier to work on other platforms, like embedded, where resources are a premium. Writing your own vector & hashmaps then become part of your muscle memory & it's no longer daunting to write a custom allocator.
- watwut 4y agoGood thing about standard libraries is that I don't have to debug them, because they just work.
- MauranKilom 4y ago> Teams inter operated faster, iterated changes faster, & there were less issues with inter department libraries. Bugs were far fewer. It's hard for me to come up with a scenario where even a single one of these follows from not using the STL. How do you "iterate changes faster" when you re-invent vectors and hashmaps so much that it becomes muscle memory? How does each team writing their own containers mean "teams interoperated faster"? How does the STL cause "issues with inter department libraries", and what bugs were caused by using standard library containers? At which point did you ever have to debug a std::vector? I'm genuinely interested if you can retell what problems you ran into there. Maybe my creativity is limited, but I'm drawing blanks. (To be clear, at the scale of Facebook or Google, writing folly or abseil can easily pay off because you can integrate, say, your profiling or debugging tooling more tightly. But that doesn't appear to be what you're alluding to. I'll also concede resource management on embedded devices.)