• Login
sketchucation logo sketchucation
  • Login
๐Ÿ”Œ Quick Selection | Try Didier Bur's reworked classic extension that supercharges selections in SketchUp Download

What if we could use <blank>?

Scheduled Pinned Locked Moved Developers' Forum
63 Posts 17 Posters 3.6k Views 17 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    jessejames
    last edited by 19 Jan 2009, 00:37

    Hello Azuby,

    @azuby said:

    @jj

    1. What is wrong with WebDialogs?

    Nothing that i know of, I just prefer a real GUI toolkit. The great thing about Pythons built-in GUI Tkinter is it's simplicity. Pro's and noobs will find it equally useful.

    @azuby said:

    1. What is wrong with the multi line consoles I mentioned? (Have you tried them?)

    No i haven't. What i want is a built-in Multi-Line Interactive Console in SU. The first experiance a new scripter will have is "playing around" in the console. Using a one-line-at-a-time Console will surely defeat them before they have a chance.

    @azuby said:

    1. Why not writing an own Python lib with the help of the Sketchup SDK instead of using a bridge and getting angry about Ruby?

    Good Idea!, i will look into this.

    Thanks

    Always sleep with a loaded gun under your pillow!

    1 Reply Last reply Reply Quote 0
    • J Offline
      jessejames
      last edited by 19 Jan 2009, 00:50

      Hello Chris,

      @chris fullmer said:

      I fully agree with #1 and 2. I'm not familiar with what #3 is in Ruby or any language, so I don't know what I'm missing. I'm sure it would be welcome though. Isn't there a plugin for this already?

      Python has beautiful multi line interactive console and editor in one neat builtin package called IDLE. Ruby has IRC. But what i am referring to is a replacement of the single line Ruby Console in SU. The current Ruby console only allows for one-line-at-a-time entry. Which renders it completly usless as an effective learning tool. Multi line(good). Single line(Bad).

      The console can be a noobs best friend, or worst nightmare. The current implementation resides on elm st.

      @chris fullmer said:

      #4 is something that seems like a no brainer to include from the start, but what do I know? So I agree, it would be nice - no, more than that. Is there a way to incorporate SciTE or something into SU?

      Your SciTE idea is a good but SU DEV may not want to deal with an outside editor due to version confilcts and what-not. I am proposing a very simple custom built-in editor for beginners. Pro's have various ideas as to the best text editor . Remember, pro's don't need any help, they know where to find the advanced tools they need, besides most of them will never use a built-in text editor because it does not have "this" or "that" feature. My concern are those that are both new to programming, and SU-API scripting. They need a way to get started learning quickly without adding this thing or that thing... and "HEY New Guy" don't forget this other thing too!

      @chris fullmer said:

      It seems like there should be better real time feed back (well not realtime, but better testing and execution) inside of SU. (How are #3 and #4 different? I don't quite get what the difference is) #5 I haven't seen how poorly the built in ruby options are.

      A multiline interactive console and a text editor with syntax highlight are two very different tools but together make for easy writing/debugging of code. Small pieces of code, algorithms, etc... can be debugged/improved immediantly in the multi-line console, and then pasted into the text editor. This work-flow is paramount to a new programmers learning of a language, not to mention the SU API.

      @chris fullmer said:

      Those are some great points and they would be a good starting point for helping get more of us into ruby.
      Chris

      This is the kind of well thought out post i am looking for from you and everybody. The ultimate goal here is to make SU scripting less painfull, and available to all who wish to learn.

      Thank you Chris!

      Always sleep with a loaded gun under your pillow!

      1 Reply Last reply Reply Quote 0
      • D Offline
        Didier Bur
        last edited by 20 Jan 2009, 21:10

        Hi,
        Tomot PM'ed me to ask what I was thinking about all this. Pfffewww, it took almost an hour to read the entire topic, and I my opinion is: "useless debate".
        I have coded in Z80, basic, lisp, pascal, C (awful thing), and Ruby. For an autodidact in programming (I'm an architect) like me, it was a pain to change from procedural to OOP, but I find Ruby very easy and powerful now.
        Wether Python is better or not is a question for specialists.
        And I think Jessejames is REALLY annoying, to say the least.
        Game over for me.

        DB

        1 Reply Last reply Reply Quote 0
        • J Offline
          jessejames
          last edited by 21 Jan 2009, 01:22

          hello Didier,
          From your words you seem to be a very accomplished programmer, and i will agree. You have given greatly to the SU community with your scripts, and i thank you for you contributions.

          But your professional experience is actually a handicap in this discussion. It is easy for "US" to forget the struggle of a new programmer. The knowledge you and i take for granted, is a complete mystery to others.

          SU is a tool aimed at modelers, not professional programmers. They need a scripting language that is well documented, widely known, and most of all easy for non-programmers to learn.

          I intend to prove that Python meets and exceeds all these qualities and then some -- making it the perfect scripting language for any application.

          And i want to keep Ruby. Choices are good for the users of SU. When everybody can easily write scripts for SU, they will be able to use this software(tool) to it's full potential.

          Thanks

          Always sleep with a loaded gun under your pillow!

          1 Reply Last reply Reply Quote 0
          • C Offline
            CPhillips
            last edited by 21 Jan 2009, 04:09

            I really tried to stay out of this thread. The whole Ruby v Python thing is a classic flame-bait topic. It has been fought a million times over on forums all over the internet. No one ever wins. And the losers are usually everyone who participates. Eventually most non-zealots agree that they are roughly equivalent in every respect and its really a matter of taste.

            http://c2.com/cgi/wiki?PythonVsRuby
            http://johan.kiviniemi.name/blag/ruby-vs-python/
            http://lambda-the-ultimate.org/node/1480
            http://www.tbray.org/ongoing/When/200x/2006/07/24/Ruby
            http://rapd.wordpress.com/2008/03/03/python-vs-ruby-the-flame-war/

            The reason I decided go ahead and post was to point out that it is a totally moot point. No one but Google can add a new scripting language to Sketchup. And they have specifically said that they considered Python and instead chose Ruby. Even if you convinced everyone on this board that Python is the Greatest Language Evar. It isn't going to make a bit of difference. If you really want Python I would suggest taking your arguments straight to Google.

            Before you tell me I am biased let me tell you I have known Python longer and written far more code in it than Ruby. I wont answer and probably wont bother to read any Python v Ruby arguments.

            1 Reply Last reply Reply Quote 0
            • J Offline
              jessejames
              last edited by 21 Jan 2009, 04:29

              Hello CPhillips,

              I have said time and time again that Ruby and Python are equals in Power. Where Python has an edge is free well written tutorials aimed at non-programmers, and a built-in GUI. I don't think there has been any flaming of languages here. Everybody has stated their opinion and i accept it. If you like Ruby over Python, i respect that, and i do not want to take it away from you. If you would like more resources on your quest to SU scripting, i give you Python.

              I am not here to say "Down with Ruby or Up with Python". I want the users to have a choice between the two best high-level-languages in the world today. That's all. I could show you one site that contains 300 plus Python tutorials in 50 different categories, if there is such a site for Ruby please let me know and i will include it in my post.

              I know about the long standing "bad blood" between Ruby and Python. I think this is due to two tools that achieve the same results but in very different ways. Some people find Ruby fits their brain-type and some find Python.

              Ruby and Python defiantly stand out among all programming languages because of their ease of use, and are by far the best choices for scripting. My argument is that with Python, the learning resources are almost limitless, and it is easier to get started. Thats all.

              Thanks

              Always sleep with a loaded gun under your pillow!

              1 Reply Last reply Reply Quote 0
              • T Offline
                todd burch
                last edited by 6 Feb 2009, 18:07

                I'm not fueling the fire, but merely making Jesse James' day. Actually, I'm just the messenger. Greg will be making Jesse's day.

                http://groups.google.com/group/sketchupruby/browse_thread/thread/40b5b924ab1c90d5#

                At that link, you'll find an announcement for SuPy, a plugin to use Python as your scripting language.

                Todd

                1 Reply Last reply Reply Quote 0
                • T Offline
                  tomot
                  last edited by 7 Feb 2009, 20:48

                  @unknownuser said:

                  I'm not fueling the fire, but merely making Jesse James' day. Actually, I'm just the messenger. Greg will be making Jesse's day.

                  http://groups.google.com/group/sketchupruby/browse_thread/thread/40b5b924ab1c90d5#

                  At that link, you'll find an announcement for SuPy, a plugin to use Python as your scripting language.

                  Todd

                  I've always been suspicious that JJ's avatar, was helping him to be a "make my day" kind of guy ๐Ÿ˜„ Regardless, I hope we can all take the main contents of this thread with a little more sense of humor, and good intention, rather than looking at it as a Ruby versus Python debate.
                  Perhaps we can end up with a second scripting alternative. Which I think would would be a huge plus. To the general SU user this would a non issue in any event. But as CPhillips has noted. It sure would be nice to hear from Google.

                  [my plugins](http://thingsvirtual.blogspot.ca/)
                  tomot

                  1 Reply Last reply Reply Quote 0
                  • T Offline
                    todd burch
                    last edited by 7 Feb 2009, 22:46

                    @tomot said:

                    But as CPhillips has noted. It sure would be nice to hear from Google.

                    I heard from Google about the Python interface Greg is implementing. They said "Neat".

                    With all the whining going on about the current state of affairs with Ruby, (doc mostly, then unfixed bugs), ask yourself if you even want Google to take focus off of Ruby to implement yet another scripting language, with which the user community will most certainly want them to document, and support, and, and, and.....

                    I personally don't even want Google to read this post to entertain the idea of a second language. I'd rather they fix a bug or two in the one we got.

                    1 Reply Last reply Reply Quote 0
                    • thomthomT Offline
                      thomthom
                      last edited by 7 Feb 2009, 23:13

                      @unknownuser said:

                      I'd rather they fix a bug or two in the one we got.

                      I second that. I'd be more than happy if SU8 only addressed bugs.

                      Thomas Thomassen โ€” SketchUp Monkey & Coding addict
                      List of my plugins and link to the CookieWare fund

                      1 Reply Last reply Reply Quote 0
                      • 1
                      • 2
                      • 3
                      • 4
                      • 4 / 4
                      • First post
                        Last post
                      Buy SketchPlus
                      Buy SUbD
                      Buy WrapR
                      Buy eBook
                      Buy Modelur
                      Buy Vertex Tools
                      Buy SketchCuisine
                      Buy FormFonts

                      Advertisement