10 ms·
I'm not sure if the examples support your case :) The 'former style' is instantly readable code. You can see roughly what is going on and make a mental picture
by edblarney 10y ago
I'm not sure if the examples support your case :)
The 'former style' is instantly readable code. You can see roughly what is going on and make a mental picture of it.
The 'later style' reads like Chinese. Everything requires a lot of context.
I should point out a major difference: in Java etc. you're often dealing with abstractions that have allegories in the real world, i.e. 'isEditable'. Well, that means something can be edited or not, obviously. But in C, you might be dealing with so many low-level things like memory addresses, pointers, complex data structures etc..
Software has to be maintained, and I'd personally rather have a little dose of 'tedious' than to have to decrypt some byzantine names every time I glance at some code.
I wonder what most people think about this?
- vorg 10y agoPerhaps combine the benefits of both the 'former style' and 'later style' into one -- use actual Chinese so it's still readable by most of the world's programmers (who live in China) but also utilizes the short context-required names (e.g. two characters '会编' instead of 10 'isEditable').