c*****t 发帖数: 1879 | 1 【 以下文字转载自 Programming 讨论区 】
【 原文由 coconut 所发表 】
I was doing private tutoring on programming. My student's professor
gave some odd questions: Name one feature of java that
i. makes the programs difficult to read
ii. makes the programs difficult to write
iii. makes programs inefficient
iv. that is not orthogonal
For the first one, it just such a bad question. Anyone could make
anything difficult. I don't really know what to say about it.
Same thing for the second one. I could think of enumera | g*****g 发帖数: 34805 | 2 When you are talking about easy/difficult, you assume a
comparison. Suppose we compare Java with C/C++.
i. No operator overload, A+B is easier to read
than A.add(B)
ii. No multiple inheritance support, and introduce interface
(not really, we should accredit the concept of interface to
M$). Multiple inhertance is easier to understand and write
supposely, although it will cause many problem.
iii. Way too much, another may be fixed length of primitives disable
optimization on all platforms.
iv. No
【在 c*****t 的大作中提到】 : 【 以下文字转载自 Programming 讨论区 】 : 【 原文由 coconut 所发表 】 : I was doing private tutoring on programming. My student's professor : gave some odd questions: Name one feature of java that : i. makes the programs difficult to read : ii. makes the programs difficult to write : iii. makes programs inefficient : iv. that is not orthogonal : For the first one, it just such a bad question. Anyone could make : anything difficult. I don't really know what to say about it.
| xt 发帖数: 17532 | 3
Implementing more than one interfaces that has nothing more than
constant definations, and use those constants by directly calling
their variable names without the names of defining interfaces.
Don't know.
Using dynamic method invocation instead of directly calling.
Unnecessary I/O and relying on I/O.
【在 c*****t 的大作中提到】 : 【 以下文字转载自 Programming 讨论区 】 : 【 原文由 coconut 所发表 】 : I was doing private tutoring on programming. My student's professor : gave some odd questions: Name one feature of java that : i. makes the programs difficult to read : ii. makes the programs difficult to write : iii. makes programs inefficient : iv. that is not orthogonal : For the first one, it just such a bad question. Anyone could make : anything difficult. I don't really know what to say about it.
|
|