Hacker News new | past | comments | ask | show | jobs | submit login

>Another factor in effectiveness of security review: how much of the whole system you can fit in your head at once.

This is why I think pure functions as much as possible, i.e. a part of the functional programming mindset, is so important for making code reviewable. Yes, you can make nice abstractions in OOP, but at least in my experience OOP with it's stateful objects interacting makes you need to know a lot more about the system than pure functions.

And yes, it's not a panacea, and large allocations may take too long to copy, which is why the next best thing is mostly functional, most techniques don't work in every case.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: