Slashdot is powered by your submissions, so send in your scoop

 



Forgot your password?
typodupeerror
×
GNOME Programming News

Gnome Goes JavaScript 387

mikejuk writes "Much to most programmers' shock and dismay Gnome has made JavaScript its main language for apps. It will still support other languages and it still supports C for libraries, but for apps it is JavaScript that rules. JavaScript seems to be a good choice for Gnome 3, as the shell UI is written in the language. It is also consistent with the use of JavaScript in WinRT, Chrome Apps, and FirefoxOS apps, and generally the rise of web apps. As you might expect, the initial reactions are of horror at the idea that JavaScript has been selected rather than the favorite language of the commenter. There is a great deal of ignorance about (and prejudice against) JavaScript, which is often regarded as an incomplete toy language rather than the elegant and sparse language that it actually is."
This discussion has been archived. No new comments can be posted.

Gnome Goes JavaScript

Comments Filter:
  • by Anonymous Coward on Monday February 04, 2013 @02:28PM (#42787311)

    Some body misplaced a calendar?
    Aprils Fools is in two months time.

  • by Anonymous Coward on Monday February 04, 2013 @02:42PM (#42787459)

    Its clear that x86 asm is the predfered language for noobs to write proper Gnome Apps.

  • by serviscope_minor ( 664417 ) on Monday February 04, 2013 @02:45PM (#42787519) Journal

    You could argue C gives you all the rope you need as well.

    C gives you all the rope you could ever want, wraps it wround your neck and encourages you to run very fast across a long, wobbly plank.

    Oh, and don't forget to free() the rope when you're done with it.

  • by Remus Shepherd ( 32833 ) <remus@panix.com> on Monday February 04, 2013 @02:50PM (#42787575) Homepage

    JavaScript is the programming language of a Gnome programmer; an elegant language for a more civilized age.

    But hokey nonstandard libraries and ancient browser syntaxes are no match for a good object class at your side, kid.

  • by Anonymous Coward on Monday February 04, 2013 @02:57PM (#42787649)

    Because then people would be bitching endlessly about The Whitespace Thing, whereas JS has the curly braces that God and Dennis Ritchie intended.

  • by Cro Magnon ( 467622 ) on Monday February 04, 2013 @02:58PM (#42787667) Homepage Journal

    I've heard that C++ gives you all the rope you need to string yourself up and bind and gag everyone in the neighborhood.

  • by Chris Mattern ( 191822 ) on Monday February 04, 2013 @03:30PM (#42788041)

    At this point, I can only envision somebody at the head of Gnome saying, "Dammit, people are still using Gnome! Well, what else can we do to kill this thing?"

  • by the_B0fh ( 208483 ) on Monday February 04, 2013 @03:31PM (#42788053) Homepage

    Obviously that's because anyone who uses C++ is heavily into BDSM.

  • by Chris Mattern ( 191822 ) on Monday February 04, 2013 @03:33PM (#42788077)

    So why not Guile?

    Personally, I prefer Chun Li.

  • by Chemisor ( 97276 ) on Monday February 04, 2013 @04:04PM (#42788461)

    Don't worry: the rope is automatically freed when you are terminated.

  • by Ceriel Nosforit ( 682174 ) on Monday February 04, 2013 @05:48PM (#42789767)

    Why is this funny? Assembler was the first programming language I really understood because it's so simple to see what's going on in it. What I struggled with was object orientation because I thought objects were redundant with classes. It seemed philosophical compared to how concrete a stack and an arithmetic unit is. I knew what the circuits of the latter looked like and even knew about electrons and holes.

    Unless you've been living under a rock the past decade you know the Internet runs on Javascript because it is non-blocking. I don't expect most of the Slashdot crowd to know what that means anymore, nor why halting is a problem. I'll appeal to authority instead and tell you that it is what Google uses and Google cares about the responsiveness of the UI. Slashdot's favorite mobile phone, the N9, uses QML and Javascript for the UI and wow have you been happy with it until now!

    People complain about how it's easy it is to screw things up in Javascript. It's pretty easy to write a recursive loop in C and mess up the exit too. Javascript has frameworks, and if you use the Chrome Inspector you can actually see the variables update at a high FPS and then drop to a crawl when the tab loses focus. You don't need to compile anything. With just CSS and jQuery you can start doing useful things in your daily environment.

    IMO an example of a truly monstrous language is Java. It just seems idiotic that that by writing the same thing in three slightly different ways you'll somehow come up with more robust code. It's like a language that was never meant for humans to write, but for some reason we were supposed to read it. Yet it's ECMAscript that's considered harmful??

  • by Anonymous Coward on Monday February 04, 2013 @06:38PM (#42790527)

    JS has the curly braces that God and Dennis Ritchie indented

    FTFY

"Here's something to think about: How come you never see a headline like `Psychic Wins Lottery.'" -- Comedian Jay Leno

Working...