Alice Community  

Go Back   Alice Community > Alice 2 > How do I...?

Reply
 
Thread Tools Display Modes
Input please regarding methods
Old
jaylee72
Member
 
Status: Offline
Posts: 16
Join Date: Dec 2017
Default Input please regarding methods - 12-17-2017, 07:44 PM

I'm just starting out with Alice. In reading chapter 2 I felt like the book was encouraging the use of one method per function. "It's far better to write a separate method for each logical behavior, and associate those methods with the appropriate objects.' It seems some of the example worlds also practice this (SnowLove). My professor felt like I overly complicated my world with too many methods and suggested I use them only for repetitive behaviors. I can get behind either train of thought but would appreciate feedback from others on which practice is preferred or if this is simply a preference per programmer.
   
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



Copyright ©2024, Carnegie Mellon University
Alice 2.x © 1999-2012, Alice 3.x © 2008-2012, Carnegie Mellon University. All rights reserved.