3 ms·
It doesn't look arrogant to me. And it doesn't matter how clean the code looks like if it uses trillions of mutable states, lots of inconsistent interfaces, occ
by zzzcpan 14y ago
It doesn't look arrogant to me. And it doesn't matter how clean the code looks like if it uses trillions of mutable states, lots of inconsistent interfaces, occasional pointer arithmetics, manual memory management, gotos all over the place and no module tests whatsoever. I'd say nginx is a pretty error prone piece of software, just like most of the software written in C.
- nkozyra 14y agoWait, "most of the software written in C" is "pretty error prone?" That's a pretty big statement right there.
- ihaveajob 14y agoIMO, "most of the software written in any language" would be a good fit for that sentence.
- paraboul 14y agoSorry but that's a really stupid comment. You are just saying that C is not clean. (IMHO) nginx code-base is doing a really good job dealing with micro-optimization. >code looks like if it uses trillions of mutable state Actually, that's a very good approach. e.g. : nginx parser get optimized out as a big jump table (http://en.wikipedia.org/wiki/Branch_table http://en.wikipedia.org/wiki/Branch_table)
- zzzcpan 14y agoI didn't mean nginx parser and state machines in general as mutable states, but rather state changes in variables across multiple functions and files. They are impossible to keep track of and nginx is full of them.