4 ms·
> how is "X[y==1,0]" more readable in this case than something like "filterElements(arrayToFilter, arrayOfBools)"? Just the same way that a[i] *= b[j] is more
by yiyus 6y ago
> how is "X[y==1,0]" more readable in this case than something like "filterElements(arrayToFilter, arrayOfBools)"?
Just the same way that a[i] *= b[j] is more readable than a.IndexElement(firstIndex).MultiplyByFloat(b.IndexElement(secondIndex))
- marcus_holmes 6y agoyeah, sorry, but I didn't understand the first one at all, and totally understood the second one. Your definition of "readable" and mine differ ;)
- renox 6y agoBah, it's the same as Maths: notations 'compress' the formulas but at the cost of having to learn these notations..
- marcus_holmes 6y agoyes, this. Completely. Is that more readable or less?
- renox 6y agoFor who? Beginners or experts?
- FridgeSeal 6y agoExperts. Optimising your whole notation for beginners is pre-emptively putting up a skill ceiling. Beginners stop being beginners (at which point they’ll outgrow the beginner oriented syntax) but experts will remain experts. Instead, optimise for teaching/learning the skills better rather than capping everyone’s skills. The presence of a learning curve is not an inherently bad thing. Edit: re-reading your previous comments, I think you and I are in furious agreement haha
- yiyus 6y agoI don't follow. You have been coding for 40 years and you do not understand a[i] *= b[j] at all but you understood the expression I made up?