Anyone interested in a Fluent library?

Anyone interested in a Fluent library?

Yes
  0% (0)
No
  0% (0)
Don't Care
  0% (0)

Total Votes: 0

Author Message
TNO

  • Total Posts : 2094
  • Scores: 36
  • Reward points : 0
  • Joined: 12/18/2004
  • Location: Earth
  • Status: offline
Anyone interested in a Fluent library? Saturday, January 21, 2012 8:30 PM (permalink)
0
Powershell was created to replace the WSH languages such as VBScript and JScript. The problem though is that there is still a significant number of people maintaining old VBScript and creating new VBScript code for one reason or another.  As a result, I am curious to whether the VBScript community would be interested in a small to moderate library focused around managing the most common tasks that you approach everyday. The idea I have is a fluent interface approach where the code you would write would look something like this:
 
File("c:\myFile.txt").lines().trim().writeTo("c:\myNewFile.txt")
 
Dim total : total = List() _
.add(1) _
.add(7) _
.add(9) _
...
.reduce("sum")
 
Dim total2 : total = Range(1,100).filter("Mod 3").forEach("MsgBox")
 
Folder("%temp%\foo").filter("startsWithSomething").delete()
 
These functions may be namespaced. I don't know. At this point I'm just gauging interest at the idea.
To iterate is human, to recurse divine. -- L. Peter Deutsch
 
#1
    59cobalt

    • Total Posts : 969
    • Scores: 91
    • Reward points : 0
    • Joined: 7/17/2011
    • Status: offline
    Re:Anyone interested in a Fluent library? Sunday, January 22, 2012 12:14 AM (permalink)
    0
    You mean a library to enable people to write PowerShell scripts using a VBScript-like syntax? I never considered that approach very wise, because it's likely to keep people from actually learning the new language. That way they won't get a feel for the new language and are also likely to overlook new features that would enable them to create better solutions to the problem at hand. IMHO, YMMV.
     
    And for some reason I seem to be unable to actually add a vote. Did I already mention that I hate this crappy forum software?
    <message edited by 59cobalt on Sunday, January 22, 2012 12:19 AM>
     
    #2
      ebgreen

      • Total Posts : 8219
      • Scores: 98
      • Reward points : 0
      • Joined: 7/12/2005
      • Status: offline
      Re:Anyone interested in a Fluent library? Monday, January 23, 2012 3:17 AM (permalink)
      0
      Well for some reason it won't let me vote, but I would vote no for pretty much the same reason as 59cobalt.
      "... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick
      Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm
      http://www.visualbasicscript.com/m_47117/tm.htm
       
      #3
        DiGiTAL.SkReAM

        • Total Posts : 1259
        • Scores: 7
        • Reward points : 0
        • Joined: 9/7/2005
        • Location: Clearwater, FL, USA
        • Status: offline
        Re:Anyone interested in a Fluent library? Monday, January 23, 2012 1:59 PM (permalink)
        0
        As prob. the only non-programmer that frequents these forums, allow me to cast a vote for "Anything that makes writing scripts simpler".
        As a sysadmin, I write vbscript, not to create the most technically advanced script, but to achieve a particular goal as quickly as possible.  I frankly don't care if it is in vbscript, jscript, C, python, powershell, or windows batch.    I have vbscript down, so can write scripts equally well in it or batch.  I don't really see a need or any particular benefit for that matter, to learning another scripting language.
        TNO, if this powershell library would add some easy-to-use, yet powerful functionality to vbscript, I say "Please do!"

        "Would you like to touch my monkey?" - Dieter (Mike Meyers)

        "It is better to die like a tiger, than to live like a pussy."
        -Master Wong, from Balls of Fury
         
        #4
          DiGiTAL.SkReAM

          • Total Posts : 1259
          • Scores: 7
          • Reward points : 0
          • Joined: 9/7/2005
          • Location: Clearwater, FL, USA
          • Status: offline
          Re:Anyone interested in a Fluent library? Monday, January 23, 2012 2:01 PM (permalink)
          0
          And I agree with cobalt59, this forum software is possibly the worst I have ever come across.
          "Would you like to touch my monkey?" - Dieter (Mike Meyers)

          "It is better to die like a tiger, than to live like a pussy."
          -Master Wong, from Balls of Fury
           
          #5
            59cobalt

            • Total Posts : 969
            • Scores: 91
            • Reward points : 0
            • Joined: 7/17/2011
            • Status: offline
            Re:Anyone interested in a Fluent library? Tuesday, January 24, 2012 12:01 AM (permalink)
            0
            DiGiTAL.SkReAM
            As prob. the only non-programmer that frequents these forums, allow me to cast a vote for "Anything that makes writing scripts simpler".
            The problem is that it's not likely to actually make things simpler in the long run. Attempts to emulate one language in another language are prone to make things break in unexpected ways when people start writing funky stuff while relying on the assumption that the emulation will behave exactly the same as the original. At least that's my experience.

            And no, you're not the only sysadmin here.
            <message edited by 59cobalt on Tuesday, January 24, 2012 12:04 AM>
             
            #6

              Online Bookmarks Sharing: Share/Bookmark

              Jump to:

              Current active users

              There are 0 members and 1 guests.

              Icon Legend and Permission

              • New Messages
              • No New Messages
              • Hot Topic w/ New Messages
              • Hot Topic w/o New Messages
              • Locked w/ New Messages
              • Locked w/o New Messages
              • Read Message
              • Post New Thread
              • Reply to message
              • Post New Poll
              • Submit Vote
              • Post reward post
              • Delete my own posts
              • Delete my own threads
              • Rate post

              2000-2012 ASPPlayground.NET Forum Version 3.9