Results 1 to 7 of 7

Thread: Python or ruby or lua

  1. #1
    Join Date
    Aug 2006
    Location
    Bangalore,India
    Posts
    419
    Thanks
    37
    Thanked 53 Times in 40 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default Python or ruby or lua

    Hi guys,
    I don't actually want to start yet another flamewar on this topic.
    Actually i will be having some time in the next month and i thought of learning a new language. Python was my first choice but i read an article in a magazine about Lua and found that a bit interesting. And to confuse me more, the choice of ruby also sprung up in my mind.
    Now i am totally confused so thought i can take help of you people in taking decision.

    I want to learn a scripting language to aid me in programming (to modify/refactor code) and also test some ideas (mostly involving qt) rapidly. If you recommend me some , please also recommend me a good book to start. I do have some good c++ programming experience with qt currently.
    The biggest difference between time and space is that you can't reuse time.
    -- Merrick Furst

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Python or ruby or lua

    In a situation when you want to prototype Qt apps, I'd suggest Python. About books... well... go to Amazon and tap in Python + Qt.

  3. #3
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Python or ruby or lua

    Python is a very nice language, but I think that Ruby offers more (especially when comes to philosophy). On the other hand, Boost.Python and PythonQt are big pluses for Python (it's possible to embed Ruby as well, but AFAIK there is no ready-made solution available). I've never tried Lua, but I've read an article praising it in recent Software's issue, so it might be worth a try. The only problem is that Qt bindings for Lua seem a bit unmaintained. Anyway if you want to use dynamically typed languages for something serious, learn TDD first. Books and tutorials for all three languages are available on-line on their home pages.
    Last edited by jacek; 29th September 2007 at 19:33. Reason: it's PythonQt not QtPython

  4. #4
    Join Date
    Aug 2006
    Location
    Bangalore,India
    Posts
    419
    Thanks
    37
    Thanked 53 Times in 40 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default Re: Python or ruby or lua

    Thanks for answering.
    I have decided to learn python since it has more inclination towards qt when compared to others.
    The biggest difference between time and space is that you can't reuse time.
    -- Merrick Furst

  5. #5
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Python or ruby or lua

    I'd say its bindings are just more mature. Python is really similar to C++ so you might want to try some other language if you want to learn something completely new. But still I say Python is the best choice in the general case.

  6. #6
    Join Date
    Oct 2007
    Posts
    2
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Python or ruby or lua

    I'm working with lua bind, and say that is a very competent library. Like all, the best choice depends a lot of your personal style and of your objective. But i recomend learn something of lua.

    Experience is always welcome.

  7. #7
    Join Date
    Aug 2006
    Location
    Bangalore,India
    Posts
    419
    Thanks
    37
    Thanked 53 Times in 40 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default Re: Python or ruby or lua

    Python seems to be good and easy to learn..
    But somehow Lua still is in my mind, i'll try to learn in the weekends atleast.

    Has anybody integrated Lua scripting with their application ? If so how do you find it ?
    The biggest difference between time and space is that you can't reuse time.
    -- Merrick Furst

Similar Threads

  1. Replies: 7
    Last Post: 15th April 2007, 01:39
  2. QTreeWidgetItemIterator with python
    By rosmarcha in forum Qt Programming
    Replies: 2
    Last Post: 6th September 2006, 17:19

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.