3 ms·
> If another developer comes on board, will their English be fluent enough to know those terms? That's why my startup uses language-neutral variable names like
by pzh 10y ago
> If another developer comes on board, will their English be fluent enough to know those terms?
That's why my startup uses language-neutral variable names like i, j, k and x, y, z.
- K0SM0S 10y agoSome advocates of code "expressiveness" would like (or perhaps dread) a word with your lead... ;) Joke aside, for anyone curious: we use such i, j variables for abstract logic like a counter (e.g. i=0 at the beginning of a loop, and gets incremented by 1 each time the loop runs), or booleans maybe (e.g. P=0 or 1, true or false). But generally it is considered good practice to give names to variables that are self-explanatory (e.g. studentName or vehicle_age) for readability and ease of understanding. Even counters and booleans should be significant when possible (e.g. "hasResponded" or "day_num"). On topic, I think english or not doesn't matter theoretically. Its cultural and indeed 80% of computing/code happens in english on earth (no source, waddayathink!). What matters imho is that semantics are correct (both human and machine language...) and reasonably meaningful to a collaborator. To anybody wanting to know better: read open-source code. Best school there is, actual practice.