3 ms·
If you are asking if i have memorized bash syntax fully and know that everything he did was valid, than the answer is no. However the intent of the code and wha
by bawolff 7y ago
If you are asking if i have memorized bash syntax fully and know that everything he did was valid, than the answer is no. However the intent of the code and what each component is supposed to do is clear, which is what i'm looking for when reading code.
Heck, by this definition i'm not sure any code is really good enough. In my job i have to write php daily, i still need to regularly look at docs to figure out order of arguments for various library functions. I wouldn't be able to tell if explode($a, $b) in php has the right argument order at a glance without looking it up. But i understand the intent and generally assume the superficial aspects of the code are right unless that part appears not to work.
And furthermore, adjusting the number of newlines isn't going to help with the question of if that piece of code is using bash syntax correctly.
- organsnyder 7y agoI don't see anyone claiming that the syntax is incorrect. But it definitely causes me to have to stop and do some mental processing (mainly thinking about order of operations) to make sense of it.
- mst 7y agoAdmittedly, PHP is kinda legendary for having accidentally ended up with all sorts of odd argument orders. Other languages seem to've made things at least somewhat more predictable. (and then, being software, suck in different ways of course)