sketchucation logo sketchucation
    • Login
    Oops, your profile's looking a bit empty! To help us tailor your experience, please fill in key details like your SketchUp version, skill level, operating system, and more. Update and save your info on your profile page today!
    ⚠️ Update | Sketchucation Tools 5.0.8 released with licensing improvements and bugfixes Download

    Ruby Code Snippets

    Scheduled Pinned Locked Moved Developers' Forum
    26 Posts 7 Posters 2.7k Views 7 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.
    • Dan RathbunD
      Dan Rathbun
      last edited by

      Sorry, but I'm really good at lurking.. πŸ˜›

      Have you noticed my Ruby Newbie's Guide to Getting Started

      which points at RUBY RESOURCES

      I'm not here much anymore.

      1 Reply Last reply
      Reply Quote 0
      • L
        Larsen
        last edited by

        I am not talking about RUBY RESOURCES, but about perception process. By the way, do you know from whom we inherited lurking?

        [Every form of thinking perish by excess of its basic principles.

        1 Reply Last reply
        Reply Quote 0
        • Dan RathbunD
          Dan Rathbun
          last edited by

          @larsen said:

          By the way, do you know from whom we inherited lurking?

          @unknownuser said:

          (http://dictionary.reference.com/browse/lurking)":27ob9p2a]

          Origin:
          1250–1300; ME lurken, freq. of lower2; cf. Norw lurka to sneak away

          @unknownuser said:

          (http://www.etymonline.com/index.php?search)":27ob9p2a]
          ... probably from Scandinavian (cf. dial. Norw. lurka "to sneak away," dial. Swed. lurka "to be slow in one's work"), perhaps ult. related to M.E. luren "to frown, lurk"

          So it probably came from Viking Norse, via Middle English, as a result of the Norse invasion into Britain (circa 875-950.)

          I'm not here much anymore.

          1 Reply Last reply
          Reply Quote 0
          • thomthomT
            thomthom
            last edited by

            @dan rathbun said:

            So it probably came from Viking Norse

            😎 Grade 8 lurker

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

            1 Reply Last reply
            Reply Quote 0
            • honoluludesktopH
              honoluludesktop
              last edited by

              Didn't read all of the above, how about this SketchUcation Topic? Been there lots of time to look at stuff. Thanks to Jim!!!

              1 Reply Last reply
              Reply Quote 0
              • L
                Larsen
                last edited by

                Very interesting link.

                http://jasonpaulgrant.co.uk/my-work/articles/42-is-lurking-a-problem.html

                [Every form of thinking perish by excess of its basic principles.

                1 Reply Last reply
                Reply Quote 0
                • Dan RathbunD
                  Dan Rathbun
                  last edited by

                  "snippet" does not mean 'small' ...

                  ... it means some code that you can 'cut and paste' into your own code project.

                  I'm not here much anymore.

                  1 Reply Last reply
                  Reply Quote 0
                  • C
                    Cleverbeans
                    last edited by

                    @dan rathbun said:

                    "snippet" does not mean 'small' ...

                    If we're being pedantic then "snippet" is the diminutive of "snip" so it does in fact mean "a small portion of".

                    1 Reply Last reply
                    Reply Quote 0
                    • Dan RathbunD
                      Dan Rathbun
                      last edited by

                      Ok fine.. I'll give ya that.

                      But he wants a word that is smaller than small (limited to 10 lines.)

                      How about pygmy code or pygmy snippet ??

                      I'm not here much anymore.

                      1 Reply Last reply
                      Reply Quote 0
                      • K
                        kwalkerman
                        last edited by

                        How about compiling a list of simple plugins that newbies can learn from? I find it is really helpful to learn from something that actually does something useful. We can develop a list of existing plugins, that are well-written, short, and accomplish something useful. I've learned alot from reading other people's code, and it definitely would've been useful to me to have a short list of plugins to download and learn from.

                        I think that lots of people on this forum could develop a short list of their plugins that would help a beginner. This would provide an excellent resource without sapping TONS of time.

                        --
                        Karen

                        1 Reply Last reply
                        Reply Quote 0
                        • Chris FullmerC
                          Chris Fullmer
                          last edited by

                          Thats not a bad idea. Many of my smaller scripts are simple. There are always questions about learning bad habits from others. I try hard, but I'm sure there are still things I do wrong. I'd hate for others to learn that from me.

                          Also, am I the only one that finds the linetool.rb rather dense to read? I have not looked at it for a little while now, but when I was learning, I could not make heads or tales of that thing.

                          Lately you've been tan, suspicious for the winter.
                          All my Plugins I've written

                          1 Reply Last reply
                          Reply Quote 0
                          • thomthomT
                            thomthom
                            last edited by

                            @chris fullmer said:

                            Also, am I the only one that finds the linetool.rb rather dense to read? I have not looked at it for a little while now, but when I was learning, I could not make heads or tales of that thing.

                            Yes. I think a cleaner linetool would be useful.

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

                            1 Reply Last reply
                            Reply Quote 0
                            • K
                              kwalkerman
                              last edited by

                              I also found the linetool.rb pretty dense.

                              @chris fullmer said:

                              There are always questions about learning bad habits from others

                              It would be helpful to have some other coders review the files and make suggestions for cleanup prior to submission to the thread. I will definitely volunteer my material selection plugin (http://forums.sketchucation.com/viewtopic.php?t=31378), but would definitely like some criticism regarding the coding and clarity prior to having someone learn from it!

                              --
                              Karen

                              1 Reply Last reply
                              Reply Quote 0
                              • L
                                Larsen
                                last edited by

                                Yes, a lot of good ideas.

                                [Every form of thinking perish by excess of its basic principles.

                                1 Reply Last reply
                                Reply Quote 0
                                • L
                                  Larsen
                                  last edited by

                                  I am now sure that the concept of "Ruby Script Video Tutorial" formulated by Chris is the one I dreamed for.

                                  [Every form of thinking perish by excess of its basic principles.

                                  1 Reply Last reply
                                  Reply Quote 0
                                  • L
                                    Larsen
                                    last edited by

                                    Perhaps what makes problem is the word "snippet".

                                    [Every form of thinking perish by excess of its basic principles.

                                    1 Reply Last reply
                                    Reply Quote 0

                                    Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                    Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                    With your input, this post could be even better πŸ’—

                                    Register Login
                                    • 1
                                    • 2
                                    • 2 / 2
                                    • First post
                                      Last post
                                    Buy SketchPlus
                                    Buy SUbD
                                    Buy WrapR
                                    Buy eBook
                                    Buy Modelur
                                    Buy Vertex Tools
                                    Buy SketchCuisine
                                    Buy FormFonts

                                    Advertisement