The easiest way to learn how to program


Closed Thread
Results 1 to 20 of 20

Hybrid View

  1. #1
    T.Jackson's Avatar
    T.Jackson Guest

    Default The easiest way to learn how to program

    I'm learning an educational programming environment called "Alice" at the moment for uni. Alice allows you to build 3D programs by dragging & dropping items as apposed to written syntax. I think this is a fantastic way to learn object orientated programming. Alice is free and can be downloaded here; http://www.alice.org/ I think this is definitely the future of programming in many years to come.

  2. #2
    T.Jackson's Avatar
    T.Jackson Guest


    Did you find this post helpful? Yes | No

    Default

    Sorry, make that "object based" programming.

  3. #3
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    From the web site
    Alice is a freely available teaching tool designed to be a student's first exposure to object-oriented programming.
    I think you were correct the first time.

    This looks like fun. Might be the thing for one of my kids. Thanks!
    Dave
    Always wear safety glasses while programming.

  4. #4
    T.Jackson's Avatar
    T.Jackson Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by mackrackit View Post
    From the web site

    I think you were correct the first time.

    This looks like fun. Might be the thing for one of my kids. Thanks!
    Definitely not bud. Strict rules apply for any language to be classified as object orientated. This includes having polymorphism and inheritance traits. Wikipedia confirms this. Alice is object based at best. OOP was a typo.

  5. #5
    T.Jackson's Avatar
    T.Jackson Guest


    Did you find this post helpful? Yes | No

    Default

    Differences between the two: http://stason.org/TULARC/software/ob...nd-Object.html

    Alice has taught me nothing about inheritance or polymorphism yet, but I'll keep at it (might be there somewhere)

  6. #6
    Join Date
    Mar 2005
    Location
    Iowa, USA
    Posts
    216


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Trent
    This includes having polymorphism and inheritance traits.
    FYI, I found this at alice.org -
    Quote Originally Posted by http://www.alice.org/index.php?page=faq
    Does Alice support polymorphism?
    polymorphism

    Unfortunately, Alice does not support this sort of functionality directly. There are a few ways around this, but they aren't nearly as elegant as the solution you're looking for. The first way to do this is to write a method external to the objects in the list (off of world) that takes an object as a parameter. If then go to any object's questions and scroll down to "other", you'll find the question called "object"'s part named "key". This question lets you any part on an object--whether it's there or not (it will throw an error if you try to reference a part that doesn't exist, so be aware of that when using it). You can then write a generalize method that takes in any given chicken and has it look for food. If you don't want to deal with the "part named" question, then the other option is to write a similar function but use if/else statements to determine which chicken is passed in.
    Wisdom is knowing what path to take next... Integrity is taking it.
    Ryan Miller

Similar Threads

  1. Presetting Configuration Fuses (PIC Defines) into your Program
    By Melanie in forum FAQ - Frequently Asked Questions
    Replies: 82
    Last Post: - 15th December 2013, 09:54
  2. Replies: 1
    Last Post: - 23rd May 2009, 09:22
  3. Compile and Program help using PICKit2
    By ozarkshermit in forum mel PIC BASIC Pro
    Replies: 15
    Last Post: - 10th March 2009, 14:51
  4. Making Program Code Space your playground...
    By Melanie in forum Code Examples
    Replies: 15
    Last Post: - 19th July 2008, 08:26
  5. PIC16F684 Program question
    By Nicholas in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 28th December 2006, 14:30

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts