Shop OBEX P1 Docs P2 Docs Learn Events
Is the Propeller the right tool to Learn C - Page 3 — Parallax Forums

Is the Propeller the right tool to Learn C

13»

Comments

  • Dr_AculaDr_Acula Posts: 5,484
    edited 2009-12-20 00:42
    @RossH - I'm looking forward to checking that code when I get home from work.

    @JCee, great to hear you got C working on a PC. If you are learning C this quickly you will probably learn Spin just as quickly. I read a study once showing people who are bilingual are less likely to get dementia. I'd like to think that applies to computer languages too - ie don't be afraid to learn several languages, all at the same time if you like!

    Have you got a propeller running yet? I found it quite a steep learning curve getting a led to flash, but that it was quite easy going from that to a vga display, keyboard and plugging together code from the OBEX library. What is the project you are working on?

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    www.smarthome.viviti.com/propeller

    Post Edited (Dr_Acula) : 12/20/2009 12:52:43 AM GMT
  • jazzedjazzed Posts: 11,803
    edited 2009-12-20 05:35
    @JCee,

    I was just looking at the www.cprogramming.com/tutorial.html#ctutorial ... nothing better to do on Saturday night a week before Christmas [noparse]:)[/noparse] ....

    It occurred to me that the tutorial would be very good to re-write for SPIN if you have time. The program "int main(int argc, char**argv)" arguments don't apply. The varargs concept has to be done a cheater's way in SPIN. The linked-list and binary tree data structures could be skipped but that and more is possible in SPIN. Aside from those caveats, the translation should be fairly easy. If you can re-write that tutorial, then you would have accomplished learning much of both languages and many newbies who follow would be very happy too. A beginner writing for other beginners is an effective tool for all concerned. Old salts can help by keeping things correct ... but that's about it usually.

    One thing you mentioned may be somewhat mis-understood: the C header files mostly define the library usage rather than implementation. This allows using binaries without having source code. By comparison SPIN is more library implementation focused than C. To get objects with C, you have to go C++ or learn how to do it "by hand" .... Too bad C++ is so weird. C# is much better to me (except the .net reputation problem).

    When it comes to applying your new C skills to Propeller, many people will be happy to help. Just filter the agenda junk and keep your eye on the ball.

    Best of luck.
    --Steve
Sign In or Register to comment.