Results 1 to 18 of 18

Thread: Why prefer scripting instead Qt/C++ on webdevelopment?

  1. #1
    Join Date
    Jun 2011
    Posts
    69
    Thanks
    13
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11

    Question Why prefer scripting instead Qt/C++ on webdevelopment?

    I know there is a lot of question around the Internet about it.
    But now the question is why everybody prefer using python/php/ruby/... than using c++?, Don't mention that because they're make programming fun And yay, coz now we have boost, qt, ... for c++ , IMHO this is make programming fun and yay
    I like to know why you don't like make your website project roll'n on Qt/C++ ?, And if you like it why there is no official plan on it?
    Of course i know witty, CppCms and other stuff is available.
    ...یه مرد هیچوقت زمین نمیخوره

  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: Why prefer scripting instead Qt/C++ on webdevelopment?

    The answer is quite simple - most things people do with their webpages can be expressed in fewer lines of code in scripting languages than in C++. PHP is a high level language whereas C++ is more mid level (strong typing, predeclared variables, etc.).
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. #3
    Join Date
    Jun 2011
    Posts
    69
    Thanks
    13
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11

    Default Re: Why prefer scripting instead Qt/C++ on webdevelopment?

    Quote Originally Posted by wysota View Post
    The answer is quite simple - most things people do with their webpages can be expressed in fewer lines of code in scripting languages than in C++. PHP is a high level language whereas C++ is more mid level (strong typing, predeclared variables, etc.).
    Yeah, for instance python is sweet as well in expressing code and ... .
    But is writing less code can be best reason? if you mean less code i prefer using ruby for it but you know ruby gonna be worse after a while on performance.
    Last edited by Alir3z4; 9th November 2011 at 04:39.
    ...یه مرد هیچوقت زمین نمیخوره

  4. #4
    Join Date
    Nov 2011
    Location
    Oulu, Finland
    Posts
    6
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Why prefer scripting instead Qt/C++ on webdevelopment?

    One big advantage of scripting languages is their portability. You can execute the same script in Linux and Windows web servers, of course if that web server has the interpreter, as they many times have at least for PHP. Scripting languages are usually more productive (less time to develop), and as they are usually used for post-processing, the performance is not that big problem. If it is, it is many times solved by buying more and better server machines. Usually the performance is needed mainly in database engines, and those are written with compiled languages. You can make extensions to web server with C, C++ and such (like cgi, or web server modules), in case you need it and you can compile it to all the platforms the servers are running.

  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: Why prefer scripting instead Qt/C++ on webdevelopment?

    Quote Originally Posted by Alir3z4 View Post
    Yeah, for instance python is sweet as well in expressing code and ... .
    But is writing less code can be best reason?
    Yes.

    if you mean less code i prefer using ruby for it but you know ruby gonna be worse after a while on performance.
    Ruby is also a scripting language. And since the script only runs for a couple of seconds, such drawbacks as you describe are not significant.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  6. #6
    Join Date
    Jun 2011
    Posts
    69
    Thanks
    13
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11

    Default Re: Why prefer scripting instead Qt/C++ on webdevelopment?

    such drawbacks as you describe are not significant.
    I made that line gray color instead of deleted before you meantion

    So what about those toolkits, frameworks mimic libraries for c++, like cppcms, witty?, are they developers didn't knew this fact?
    Last edited by Alir3z4; 10th November 2011 at 19:04. Reason: spelling corrections
    ...یه مرد هیچوقت زمین نمیخوره

  7. #7
    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: Why prefer scripting instead Qt/C++ on webdevelopment?

    That's the Freedom of Choice. However it is obvious that scripting languages allow obtaing a good result in short time. The quality or speed might be worse than that for general purpose languages but the tradeoff is usually worth it.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  8. #8
    Join Date
    Jun 2011
    Posts
    69
    Thanks
    13
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11

    Default Re: Why prefer scripting instead Qt/C++ on webdevelopment?

    Thank you wysota, MaKo.
    You make me sure to using all benefits of scripting language such amaz'n python,...
    Actually i have exprience with bunch of webframeworks and honestly i like them.
    But earlier when i saw wt such a wonderful web-GUI toolkit i was doubtful. (despite it's can never be good at being webframeworks ...)
    And i kept this question in my mind, till i asked here and you guyz make me sure about it.
    ...یه مرد هیچوقت زمین نمیخوره

  9. #9
    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: Why prefer scripting instead Qt/C++ on webdevelopment?

    As far as I know wt is also a scripting language.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  10. #10
    Join Date
    Jun 2011
    Posts
    69
    Thanks
    13
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11

    Exclamation Re: Why prefer scripting instead Qt/C++ on webdevelopment?

    Quote Originally Posted by wysota View Post
    As far as I know wt is also a scripting language.
    what?
    Maybe you know it as witty.
    But this is the official wt's website webtoolkit.eu
    ...یه مرد هیچوقت زمین نمیخوره

  11. #11
    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: Why prefer scripting instead Qt/C++ on webdevelopment?

    So the fact that it has a webpage of its own means it can't be a scripting language?
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  12. #12
    Join Date
    Jun 2011
    Posts
    69
    Thanks
    13
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11

    Default Re: Why prefer scripting instead Qt/C++ on webdevelopment?

    Com'n, i can't get ya.
    What's ur point!
    If you tak'n that fact, you shoulda take this fact i have a blog too, is this make me script'n language ?
    ...یه مرد هیچوقت زمین نمیخوره

  13. #13
    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: Why prefer scripting instead Qt/C++ on webdevelopment?

    So why do you think wt is not a scripting language? Because it uses C++ syntax? And please write proper English sentences instead of that trash talk.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  14. #14
    Join Date
    Jun 2011
    Posts
    69
    Thanks
    13
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11

    Default Re: Why prefer scripting instead Qt/C++ on webdevelopment?

    Quote Originally Posted by wysota View Post
    So why do you think wt is not a scripting language? Because it uses C++ syntax?
    No it's not just uses C++ syntax, it's uses C++ itself.
    And i work with it, write couple of useless examples and play with it.
    You see wyosta i can't get your point, can you explain it little bit clearly.
    ...یه مرد هیچوقت زمین نمیخوره

  15. #15
    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: Why prefer scripting instead Qt/C++ on webdevelopment?

    Quote Originally Posted by Alir3z4 View Post
    No it's not just uses C++ syntax, it's uses C++ itself.
    If you compile it yourself into a library/executable, then fine, it may or may not be a scripting language. However the sole fact of compiling (or not) doesn't determine if something is a scripting environment or not. Considering the fact that you are generating some kind of "script" that later gets translated to html/javascript, I would argue that it has some notions of scripting environments.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  16. #16
    Join Date
    Jun 2011
    Posts
    69
    Thanks
    13
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11

    Default Re: Why prefer scripting instead Qt/C++ on webdevelopment?

    Yes of course i'd compiled it on my machine, actually i wasn't successful to found binary package for distro.( despite that i found that after a while on archlinux repository )
    i'd use it like Qt libraries, include.. and other stuff
    Couple of month ago i post a new topic on wt forums about a scripting template language shortage. [topic link], but the answers isn't too helpful, maybe i don't get the way of wt.
    BTW why anybody want to make a scripting language with C++ syntax style like ?
    ...یه مرد هیچوقت زمین نمیخوره

  17. #17
    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: Why prefer scripting instead Qt/C++ on webdevelopment?

    Quote Originally Posted by Alir3z4 View Post
    BTW why anybody want to make a scripting language with C++ syntax style like ?
    Why not? I have seen (or at least heard about) at least two interpreted languages using the C syntax and they were both very successful in their domains. A syntax is just a syntax.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  18. #18
    Join Date
    Jun 2011
    Posts
    69
    Thanks
    13
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11

    Default Re: Why prefer scripting instead Qt/C++ on webdevelopment?

    Quote Originally Posted by wysota View Post
    Why not? I have seen (or at least heard about) at least two interpreted languages using the C syntax and they were both very successful in their domains. A syntax is just a syntax.
    This one is interesting.
    maybe i didn't made my point clear
    ...یه مرد هیچوقت زمین نمیخوره

Similar Threads

  1. Scripting question
    By EricF in forum Qt Programming
    Replies: 2
    Last Post: 31st January 2008, 14:54
  2. Replies: 8
    Last Post: 20th April 2007, 00:37
  3. Scripting engine
    By stevey in forum Qt Programming
    Replies: 2
    Last Post: 27th October 2006, 11:36
  4. Scripting questions
    By fullmetalcoder in forum General Discussion
    Replies: 1
    Last Post: 22nd May 2006, 13:02
  5. People prefer old forum.
    By r366y in forum General Discussion
    Replies: 19
    Last Post: 26th January 2006, 01:11

Tags for this Thread

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.