in reply to Re^2: Clarity in parsing fixed length data.
in thread Clarity in parsing fixed length data.
In general you should aim to localise the understanding of the code to the current context. By that I mean, the bit of code you are looking at now should be written so its purpose is clear without having to refer to other materials.
Generally that means rewriting something like:
setOptions (1, 0, 'e');
as:
setOptions (send_log => 1, suppress_warnings => 0, max_level => 'e');
A little more verbose, but now (even without the context) it's pretty clear what the parameters do and what setOption is likely to achieve.
Or to paraphrase a great man: make your code as clear as possible, but no clearer :).
|
|---|