web 2.0 javascript library sugar?
Posted: 07 March 2009 08:59 PM   [ Ignore ]
Newbie
Rank
Total Posts:  12
Joined  2009-01-26

im not privvy to the inner workings of sugar development, and im no expert on either mootools or jquery. but i was wondering if making a sugar for jquery or mootools (prototype, script.aculo.us, Y.U.I etc.) would be worthwhile? i know they all use javascript, but each have their own syntax so to speak. Are any of the sugar developers looking at developing anything for these libraries?

Profile
 
 
Posted: 08 March 2009 05:42 AM   [ Ignore ]   [ # 1 ]
Member
RankRankRank
Total Posts:  76
Joined  2008-11-04

I’m not sure if there is anyone out there currently working on one for jQuery, but when I get done with the sugars I’m working on I wouldn’t mind giving it a crack. Seeing as it’s just JS, it would mainly be snippets and code completion I’d imagine.

Profile
 
 
Posted: 08 March 2009 11:23 AM   [ Ignore ]   [ # 2 ]
Moderator
RankRankRankRank
Total Posts:  1252
Joined  2008-10-28

Yeah, a collection of text snippets injected into the Javascript Sugar’s namespace would do the trick.

 Signature 

Ian Beck
MacRabbit Support

Follow us on Twitter, or try my custom themes: Quiet Light & Earthworm

Profile
 
 
Posted: 07 April 2009 02:28 PM   [ Ignore ]   [ # 3 ]
Newbie
Rank
Total Posts:  6
Joined  2009-04-07

I would love to see a better general JavaScript sugar implemented (with codesense for all methods). And the HTML sugar should have support for JS inside the document. But a better JavaScript sugar would be awesome. I might do one myself if I have the time, but I’ll have to get more into Sugar developement then :)

Profile
 
 
Posted: 08 April 2009 12:22 PM   [ Ignore ]   [ # 4 ]
Sr. Member
RankRankRankRank
Total Posts:  232
Joined  2008-11-19

I have your jQuery sugar right here!

But a better Javascript sugar would be nice. But I guess MacRabbit will take care of that since its a core sugar? I guess if someone else came out with a better on they’d most likely adopt that.

Profile
 
 
Posted: 14 April 2009 02:25 AM   [ Ignore ]   [ # 5 ]
Jr. Member
RankRank
Total Posts:  43
Joined  2008-10-29

Yep, JavaScript is so great in TextMate. I don’t want to switch between MooTools and JavaScript so a general sugar would be awesome. :)

It should be easy to recognize the syntax of the frameworks. Just look at the start:

window.addEvent('domready', function(){

}
); 

 Signature 

Markdown.sugar – The super-awesome Markdown for Espresso.

Profile
 
 
Posted: 14 April 2009 07:07 AM   [ Ignore ]   [ # 6 ]
Newbie
Rank
Total Posts:  12
Joined  2009-01-26

i hadn’t looked at this thread for awhile, wicked a jQuery sugar :D awesome set of people developing sugars for espresso ... sugars are espresso’s saving grace :)

Profile
 
 
Posted: 14 May 2009 04:02 PM   [ Ignore ]   [ # 7 ]
Newbie
Rank
Total Posts:  2
Joined  2009-05-14

Has anyone thought about doing some sort of tool or script to create sugars from various JS frameworks or perhaps even building that in to the existing JS sugar?  Just curious, as I’m starting to look at making a sugar for another framework and wondered if anyone had tried to automate the process.

Profile
 
 
Posted: 02 June 2009 01:00 PM   [ Ignore ]   [ # 8 ]
Newbie
Rank
Total Posts:  2
Joined  2009-05-14

ping/bump… anyone?

Profile
 
 
Posted: 02 June 2009 01:55 PM   [ Ignore ]   [ # 9 ]
Moderator
RankRankRankRank
Total Posts:  1252
Joined  2008-10-28

Although I know specific Sugars whose authors have written scripts for automating the creation of CodeSense and so forth (PHP is a good example), I don’t think anyone has tried to create a general-use script for harvesting method names from disparate projects.

You might try contacting Derek (who coded the jQuery Sugar) to see if he has any tips or tricks for extending Javascript with a given framework.  Otherwise, you’ll probably need to start from scratch.

 Signature 

Ian Beck
MacRabbit Support

Follow us on Twitter, or try my custom themes: Quiet Light & Earthworm

Profile