3 ms·
So we should start to teach ppl to fly planes by first teaching them to ride a bike? Riding a bike will not help you fly. Programming isn't hard but if "public
by RandyRanderson 10y ago
So we should start to teach ppl to fly planes by first teaching them to ride a bike? Riding a bike will not help you fly. Programming isn't hard but if "public static..." melts your mind, software may not be for you.
Also the classic file read idiom (the C one) teaches some of the most basic things every programmer should undertand:
. file encoding (which you ignore)
. buffer sizes
. error handling (likely 80-90% of production code)
Your python example ignores these basic instructive points. Why is there no "String str=String.read(file)"? Because it's seldom useful in production (see points above).