week1 exercise 23, infinite while loop

96 views
Skip to first unread message

Karola

unread,
Nov 7, 2014, 3:34:09 AM11/7/14
to moo...@googlegroups.com
Hi,

I'm having problems to understand why you want us to code an infinite while loop. Exercise 23 in week 1 needs to be coded as an infinite while loop to pass the tests. In my eyes this is not good practice and shouldn't be taught. Or am I wrong?

Best regards
Karola
___________


Please use our build in TMC Pastebin when asking questions related to your code 

In NetBeans, select TMC -> Send code to TMC pastebin. Copy the link you receive and paste it to your message.  

You may use our web interface to share code snippets: http://paste.mooc.fi

Joni

unread,
Nov 10, 2014, 4:50:03 AM11/10/14
to moo...@googlegroups.com
Hi,

Infinite loops are not good practice, and you should, in most cases, implement functionality to exit those.
But they still are useful in some situations.

Best regards
Joni
Reply all
Reply to author
Forward
0 new messages