|
|
| darwin666 |
| Posted: May 11 2007, 09:54 PM |
 |
|
Advanced Member
  
Group: Members
Posts: 165
Member No.: 15677
Joined: 26-June 05

|
I'm here again, in the offtopic part, asking a favour: I have to find (quickly ) an open source program, which is - easy to understand - written in c++ or java - have a method with at least 15 branch, including at least 3 of the next different types: if, switch for, while, do-while
I'm doing my search of course, but hoping that someone, reading this message willl shout out.... Ahaaa, I know one which is exactly like this....
...so please help |
 |
| phaeron |
| Posted: May 12 2007, 03:55 AM |
 |
|

Virtualdub Developer
  
Group: Administrator
Posts: 7773
Member No.: 61
Joined: 30-July 02

|
Is this homework? If so, I think it's fair to give warning to anyone who may answer.
The requirements seem a bit odd to me. When I see a method with 15+ branches and at least three different control structure types, I don't think "easy to understand," I think "time to refactor." |
 |
| darwin666 |
| Posted: May 12 2007, 08:15 AM |
 |
|
Advanced Member
  
Group: Members
Posts: 165
Member No.: 15677
Joined: 26-June 05

|
| QUOTE (phaeron @ May 12 2007, 03:55 AM) | Is this homework? If so, I think it's fair to give warning to anyone who may answer.
|
Yes, it is for homework, and no it is not a homework. The homework is to make a tester application for the method, and there are no requirements on how you find that method, it just have to be open source (or something you have written earlier as a homework, but I haven't used that much branch in any of them).
| QUOTE (phaeron @ May 12 2007, 03:55 AM) | The requirements seem a bit odd to me. When I see a method with 15+ branches and at least three different control structure types, I don't think "easy to understand," I think "time to refactor." |
Ok not 'easy to understand'... but 'not impossible' ... (this understandibilty of course is not a requirement, it's just something, I added to make me possible making the tester for the method... because without understanding it, it's not easy)
I know that +15 branch is pretty much, and we were complaining about it, but that's what they told us to do. |
 |
| darwin666 |
| Posted: May 13 2007, 12:54 AM |
 |
|
Advanced Member
  
Group: Members
Posts: 165
Member No.: 15677
Joined: 26-June 05

|
and to avoid misunderstandment: the method has to be easy (or not impossible) to understand, not the whole program. |
 |
|