Page 1 of 1

AppleScript

Posted: Mon Jun 11, 2007 2:28 am
by JellyFish
AppleScript always seemed to interest me in that it is more of a worded language rather then punctual.

What do you think of AppleScript? Do you think this is a good idea for a programming language? Do you know of any other languages like this?

Posted: Mon Jun 11, 2007 6:07 am
by Chris Corbyn
I've never really worked with it. Most likely on my Mac I'd just write a bash script. I'd like to try writing a Cocoa application though 8)

Posted: Mon Jun 11, 2007 7:37 am
by superdezign
This may just be me, but I don't like languages that seem too... "English." They tend to require more typing and aren't as easy for me to follow.

Besides, why have so much wording in the actual code? That's what comments are for. :-D

Posted: Mon Jun 11, 2007 2:12 pm
by JellyFish
I just thought it was interesting. I think that the English-like approach is a cool idea. If you think about it, characters like, $, #, { and }, :, etc, aren't really easy to type. Most of the time you need to hold shift along with the key, which could add up, and in the end it's not as readable.

I'm not against the standard way to program, just open to new ideas.

instead of:

Code: Select all

if (this == that)
{
//do something
}
you could have:

Code: Select all

if this equals that, (do somthing).
or something like it.

Then again 'equals' is more characters the == or = but seems more accessible in my opinion. :D

Posted: Mon Jun 11, 2007 2:14 pm
by feyd
AppleScript is fairly "old skool." It's aged well however. It's always been more of a macro language than a real language. I generally don't think programming languages should have grammatic-like syntax. Mostly because grammatics are based on a language. While the language may be prevalent, you severely limit the penetration into other cultures and languages often. While this may only last a short time, it does hamper the adoption and adaption to it. Lingo is another language that's heavily (English) grammatic.

Posted: Mon Jun 11, 2007 3:17 pm
by superdezign
Yeah, as long as we're down to keywords, anyone can do it if they remember them. I oftentimes see code with Spanish and French variable names, but they easily use the keywords "if," "for," and "while."

Besides... The languages that are similar to the way that we speak are generally just for small scripting for those who aren't familiar with programming.

Posted: Mon Jun 11, 2007 3:41 pm
by feyd
superdezign wrote:Besides... The languages that are similar to the way that we speak are generally just for small scripting for those who aren't familiar with programming.
Lingo wasn't for small stuff. :)

Posted: Mon Jun 11, 2007 3:46 pm
by superdezign
Wasn't? Or isn't? :P

:lol: I don't know. I've never used the language before. Is it similar to Basic?

Posted: Mon Jun 11, 2007 3:53 pm
by feyd
superdezign wrote:Wasn't? Or isn't? :P

:lol: I don't know. I've never used the language before. Is it similar to Basic?
Not at all.

http://www.adobe.com/products/director/ It used to be apart of Director. I don't know if it still is.

Posted: Mon Jun 11, 2007 4:10 pm
by superdezign
ActionScript used to use a similar style too. lt was less that... lte was less than or equal to... Very strange to use, for me.

But ever since ActionScript 2.0, they've gone ecma. I hoped they did the same for Director.

Posted: Mon Jun 11, 2007 4:18 pm
by JellyFish
I was thinking of making a HyperTalk-style langauge for the web, and using a javascript compiler to compile it to the equivalent.

Would it be sensable to go with a project like this? Would you find it useful?

HyperTalk-styled web language or not, just making an all-purpose, javascript compiled, web langauge.

Posted: Mon Jun 11, 2007 4:22 pm
by thiscatis
JellyFish wrote:I was thinking of making a HyperTalk-style langauge for the web, and using a javascript compiler to compile it to the equivalent.

Would it be sensable to go with a project like this? Would you find it useful?

HyperTalk-styled web language or not, just making an all-purpose, javascript compiled, web langauge.
This would have given at least one parse error.

Posted: Mon Jun 11, 2007 4:23 pm
by JellyFish
thiscatis wrote:
JellyFish wrote:I was thinking of making a HyperTalk-style langauge for the web, and using a javascript compiler to compile it to the equivalent.

Would it be sensable to go with a project like this? Would you find it useful?

HyperTalk-styled web language or not, just making an all-purpose, javascript compiled, web langauge.
This would have given at least one parse error.
What do you mean? What would give...?

Posted: Mon Jun 11, 2007 4:25 pm
by thiscatis
nevermind :)
Back to my study books :cry: