<span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">Hi,</span><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
<br></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">I don't know if this is the right place to mail this. I had a conversation with Jan Borchardt like 2 months ago, while I had started working on Impressionist. He had suggested me to go for Struct which is more "up to date and error free" as compared to Impressionist. I couldn't start at that time being new to CoffeeScript for one reason and other being a notion that no other app in ownCloud worked with CS. </div>
<div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">Now, since the news app is working with CS (a big thumbs up :D) Can I also begin including Struct. As we are done we can choose between which app to keep, can be Impressionist or Struct. Both have their plus and minuses.</div>
<div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><br></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
Thanks</div><br><div class="gmail_quote">On Mon, Nov 26, 2012 at 8:09 PM, Raghu Nayyar <span dir="ltr"><<a href="mailto:raghu.nayyar.007@gmail.com" target="_blank">raghu.nayyar.007@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br><div><div><div class="h5"><div class="gmail_quote">On Mon, Nov 26, 2012 at 7:49 PM, Victor Dubiniuk <span dir="ltr"><<a href="mailto:victor.dubiniuk@gmail.com" target="_blank">victor.dubiniuk@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>Hi,</div><div><br></div><div>It totally makes sense to me. Another good CS feature is a jslint validation. It produces valid JS out of a box.</div>
<div>Write less, Do more :)</div><div><br></div><div>---</div><div>Victor<div><div><br>
<br><div class="gmail_quote">On Mon, Nov 26, 2012 at 3:03 AM, Bernhard Posselt <span dir="ltr"><<a href="mailto:nukeawhale@gmail.com" target="_blank">nukeawhale@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
To clarify some things: I use it in the news app and im not planning on<br>
pushing anything coffeescript like into core.<br>
<br>
The selling points for me were:<br>
<br>
* I needed a buildscript to make sure that a certain js part was<br>
included before others (i use a cakefile for this)<br>
* I have 30 javascript files (coffee files atm) so listing all of them<br>
in my code before each controller method is not feasible, its also<br>
cumbersome to add new things<br>
* It shrinks down the lines of code from 2000 lines to 800<br>
* It provides nice patterns like easy inheritance which I need :) (class<br>
X extends Y is also easier to read than the whole prototype stuff to<br>
achieve the same things)<br>
* You can learn it fast, these are all features <a href="http://coffeescript.org/" target="_blank">http://coffeescript.org/</a><br>
<br>
So basically the use is limited to the news app.<br>
<div><div><br>
On 11/26/2012 12:37 AM, Robin Appelman wrote:<br>
> On Sunday 25 November 2012 18:19:41 Alessandro Cosentino wrote:<br>
>> Hi,<br>
>><br>
>> In the last month, Bernhard (Raydiation) has created a branch of the apps<br>
>> repository, which he has used as a laboratory for introducing new<br>
>> technologies in the News app. The name of the branch is news_angularjs and<br>
>> CoffeScript (CS) is one of the technologies that he has tried out. Before<br>
>> merging the branch to master, I want to discuss with the rest of the list<br>
>> the adoption of CS in ownCloud.<br>
>><br>
>> CS (<a href="http://coffeescript.org" target="_blank">http://coffeescript.org</a>) is an alternative syntax for javascript (js),<br>
>> which is becoming widely used. CS code is trans-compiled into javascript,<br>
>> so this doesn't add dependencies for ownCloud users. CS code is supposed to<br>
>> be more readable than js and the compiled code is supposed to run faster<br>
>> than hand-written js. Bernhard can tell you more about the success of his<br>
>> experiments with CS in the news_angularjs branch.<br>
>><br>
>> I don't want the News app to be the only ownCloud app to use CS. Many oC<br>
>> developers might already be comfortable with CS. If this is not the case, I<br>
>> don't want the app to be hard to maintain in the future because of this. I<br>
>> believe that people are willing to learn new things only if it's worth it<br>
>> and I am afraid that if the News app is the only app to use some<br>
>> technologies, people will just decide to work on other apps.<br>
>><br>
>> What do you think about using CoffeScript in ownCloud? In the Getting<br>
>> Started section (<a href="http://owncloud.org/dev/apps/getting-started/" target="_blank">http://owncloud.org/dev/apps/getting-started/</a>), I read<br>
>> that jquery and torch are the libraries that we use, but I don't see a<br>
>> general policy about using different js things.<br>
>><br>
>> Alessandro (zimba12)<br>
> I don't think it's a good idea to mix CS (or any complile-to-js language) with<br>
> vanilla js. It splits the code base in 2 and makes it more difficult for some of<br>
> the people to work on some of the code<br>
><br>
> (Personally I prefer TypeScript over CS but that's beside the point)<br>
><br>
> - Robin Appelman<br>
> _______________________________________________<br>
> Owncloud mailing list<br>
> <a href="mailto:Owncloud@kde.org" target="_blank">Owncloud@kde.org</a><br>
> <a href="https://mail.kde.org/mailman/listinfo/owncloud" target="_blank">https://mail.kde.org/mailman/listinfo/owncloud</a><br>
<br>
_______________________________________________<br>
Owncloud mailing list<br>
<a href="mailto:Owncloud@kde.org" target="_blank">Owncloud@kde.org</a><br>
<a href="https://mail.kde.org/mailman/listinfo/owncloud" target="_blank">https://mail.kde.org/mailman/listinfo/owncloud</a><br>
</div></div></blockquote></div><br></div></div></div>
<br>_______________________________________________<br>
Owncloud mailing list<br>
<a href="mailto:Owncloud@kde.org" target="_blank">Owncloud@kde.org</a><br>
<a href="https://mail.kde.org/mailman/listinfo/owncloud" target="_blank">https://mail.kde.org/mailman/listinfo/owncloud</a><br></blockquote></div></div></div><span class="HOEnZb"><font color="#888888">
<span style="font-size:11pt;line-height:115%" lang="EN-US"></span><br>
</font></span></div>
</blockquote></div><br>-- <br>Sincerely,<div>Raghu</div><br>