According to the language's creator, Brendan Eich, his original inspiration for JavaScript was Scheme. A major requirement handed down to him from management was that the syntax be readily understood by Java developers. This, along with choice of the name "JavaScript" was meant to appeal to Java ...
0
votes
1answer
49 views
How should I setup a UI for editing a binary tree?
I need to allow the user to create an binary tree. I have a Backbone Model populating properly from the database, the problem I am stuck on is how do I setup the ui elements in a way that is fairly ...
3
votes
1answer
52 views
How would you represent an object that can be of multiple types, when storing it as a document in MongoDB?
Somewhat related to this question, say that I have an object category which, depending on which type of object I have, has different restrictions on what it contains. (if you can reword the previous ...
3
votes
2answers
84 views
What's the Best Way to Release a Small Open Source JavaScript Library?
I wrote a nice little open source JavaScript color library called color.js. I think it's handy, and I believe other people would find it useful. What's the best approach for letting the world know ...
0
votes
2answers
170 views
If you've worked on server-side C++/Java, is client-side HTML5/JavaScript too humiliating? [closed]
I'm a C++/C/Java/C# research software engineer and have worked on large-scale server systems, including huge map-reduce and database systems. At this point I've been offered a new job working with ...
10
votes
3answers
198 views
Is JavaScript interpreted by design?
I am cautious of asking this question because it might appear overly fastidious. I just opened up JavaScript: The Definitive Guide, and it states of the first page of chapter 1
"JavaScript is a ...
1
vote
1answer
105 views
How do people speaking a different language program/script [closed]
Possible Duplicate:
Do people in non-English-speaking countries code in English?
This is a topic in which I would like us to discuss in a little.
Its a very interesting topic.
This is a ...
-3
votes
0answers
69 views
Does anyone have any experience with any of the python to javascript converters? [closed]
Edit A good interpreter is one that is 1. Not buggy. 2. Performant in that order.
I'm looking for a good python to javascript interpreter/converter. I found a list of alternatives here ...
6
votes
4answers
182 views
JavaScript Multi Threading
Well these days JavaScript is main player in all web development technologies , on client side for making user interface better, client side logic, on some web servers as server side logic also
Add ...
2
votes
1answer
113 views
What are my choices for server side sandboxed scripting?
I'm building a public website where users share data and scripts to run over some data. The scripts are run serverside in some sort of sandbox without other interaction this cycle:
my Perl program ...
3
votes
4answers
332 views
Can Javascript code be encrypted making it hard for someone to copy?
When you compile and distribute a client you are automatically protecting yourself from someone seeing and modifying your code. Can this be achieved on a Javascript client?
2
votes
1answer
146 views
List of the really big and really small discrepancies with JS in the big 5 browsers [closed]
I thought this was objective enough for SO, but it's too open-ended. Hopefully it won't be too objective here, because if so, I'm out of SX sites. Here it goes:
First, let me preface this by saying ...
-4
votes
0answers
39 views
What parts of jslint do programmers disagree with [closed]
I used to dislike jslint, but have now warmed to it and agree with a lot of the conventions it imposes. But there are still some bits I disagree with e.g.
initialised || initialise();
Throws an ...
2
votes
1answer
48 views
Is there an easy way to map directory structure to a MongoDB schema?
I'm trying to store a directory structure, including files and their content, in MongoDB. The work is part of a synching app, and is using in Node/Mongoose.
Now, I'm new to Mongo, and it's late here ...
0
votes
2answers
174 views
Is there a desktop based code editor similar to jsFiddle? [closed]
I'm looking for a code editor that allows me to see the effects of JavaScript on the page elements as I'm editing.
4
votes
3answers
102 views
Should I nest functions in languages that allow me to do that or should I rather avoid it?
In JavaScript, PL/SQL and some other languages, functions can be nested, i.e. declared within another function. This could be used to break a large function into smaller pieces, but keep those pieces ...
1
vote
0answers
67 views
Triggering custom events in AJAX callbacks
I'm pretty new to JavaScript, but one of the things that's been frustrating is that our AJAX callbacks have been getting packed with different functionality, making it difficult to keep everything ...
-2
votes
2answers
138 views
As ASP.NET C# developer should we learn HTML5 and Javascript? [closed]
Should we learn HTML5 and Javascript or can I expect ASP.NET and C# will generate my HTML5 components and Javascript code (as usual)?
-2
votes
0answers
25 views
JSP and Javasript with form [closed]
I have a form in a registeration.jsp page:
form name="users" method="post" onSubmit="return checkCorrect()"
action="Registeration.jsp">
The Script checkCorrect is written at the start of the ...
3
votes
2answers
133 views
How would you architect an application which is largely a collection of flowcharts?
I am working with a history teacher on a history app. He has like 200 flowcharts that he wants to put into the app (among other things). The two likeliest-looking ways to do it:
HTML/CSS. The big ...
3
votes
2answers
68 views
Terminology - Cache (Javascript)
I have watched a couple videos on JS where the presenter mentioned "caching" a variable but I didn't see them do anything in the code that would "cache" it beyond normal assignments. When i think of ...
0
votes
0answers
42 views
Modular Javascript based on Mediator, Facade pattern as described by Nicholas Zakas
I am kind of new to javascript programming at least in trying to do it in a sane way. Yesterday I read Patterns For Large-Scale JavaScript Application Architecture then from there found the link to ...
-3
votes
1answer
148 views
Is JavaScript strong enough for using in every possible domain? [closed]
There has been a lot of talk on Node.js and JavaScript being the language of the future. with HTML5 gaining prominence its importance will grow exponentially.
People have been using JS for server-side ...
4
votes
2answers
237 views
Is mootools alternative of jquery + backbone / spine / sprouteCore
I was a full time java developer, now I'm also working with JavaScript and Android. A couple of years back when I started learning JavaScript, the first library I tried was jQuery. But it made my life ...
3
votes
2answers
114 views
What is the best technology for a TRULY portable REST client
I develop a suite of productivity tools, for Mac, iOS and Windows. They all communicate with a sync server via a RESTful interface (using Protocol Buffers), but as we add new platforms, we realize the ...
2
votes
1answer
55 views
Should we use JavaScript and CGI variables to weed out bots from our visitor reports?
I am using ColdFusion 8 and jQuery 1.7.
** This is a programming question, because the solution I am questioning requires programming. It may not be the right solution to the problem, but if it is, ...
4
votes
3answers
146 views
Open Source Licenses
I'm independently developing a physics-based game using HTML5 canvas and JavaScript; I've used no external code at all (including physics or game engines), and my code is about 5000 lines in length. ...
0
votes
1answer
92 views
Trying to do some Obfuscation, How should I approach this particular case?
I currently have an assignment that is really pushing my limits so I need some help on how to approach this.
We have a set of 25 results
We are using a jquery plugin to vertically scroll through ...
2
votes
1answer
73 views
In javascript and other languages which lack a compiler, is unit testing a good method to ensure correct syntax and variable naming?
I've been working on a medium sized web application that makes very heavy use of javascript. I tend to introduce common errors per 10 lines of code with either an unknown variable name or function ...
0
votes
1answer
65 views
Do CDNs (such as MSFT and Google) act on the referrer header sent by clients?
Will my site be automatically indexed, or search ranking affected based on my use (or non use) of the Google/MSFT CDN?
My clients will be sending them the referrer header which I may or may not want ...
1
vote
1answer
108 views
Legal ramifications of use of the JavaScript trademark?
It's widely known that the name "JavaScript" is trademarked by Oracle (formerly a trademark of Sun, formerly a trademark of Netscape).
However, others seem to have no problem using the JavaScript ...
0
votes
0answers
11 views
How do I animate Sprites in Unity JavaScript? [migrated]
I'm learning JavaScript for Unity 3D. I'm new to programming (one month old) and I'm building a 2D game that is going pretty good so far.
Cubical Chimera
My code (game not updated in the above ...
-2
votes
0answers
26 views
image does not change when you modify the src of the img tag in opera when the img type is SVG [closed]
I am working on a project where we are using SVG in html. As part of the project we need to change the displayed image so I have been doing $("#id_of_img").attr("src","new_src_for_picture.svg"); and ...
0
votes
0answers
13 views
How can I allow users to select HTML elements of a remote site? [migrated]
I'm working on an idea for a project that has a bit of functionality I'm not sure how to implement: first, a user would be able to load up a web page and select elements on it. Those elements would ...
-3
votes
0answers
25 views
Any suggestions for learning a new framework/language? [closed]
I'm currently halfway through taking a 10-week .Net development certificate program where we learn about C#, VB, WinForms, ADO.Net, LINQ, Entity Framework, Asp.Net, Web Froms, MVC, JQuery, and I'm ...
1
vote
3answers
294 views
Why did Google develop a cross-compiler from Java to JavaScript? [closed]
Google developed a cross-compiler from Java to JavaScript. Why did they do this? Does this mean that JavaScript is not good enought for developing advanced web apps?
-3
votes
0answers
42 views
Atomic Elements Selector Engine [closed]
So, I've written a DOM element selector engine that I'm really quite happy with; wanna help me tear it to shreds? :D
It's called Atomic, and I've got a repository for it over @GitHub.
Check it out ...
1
vote
2answers
63 views
any website monitoring library/modules to use in my website?
I'm trying to build a site which user can add their websites which should be monitored and can view a detailed report and statistics of it. And also it should be able to monitor local webservices ...
1
vote
1answer
73 views
What is the best design pattern for asynchronous message passing in a Chrome extension?
I have a background script that is responsible for getting and setting data to a localStorage database. My content scripts must communicate with the background script to send and receive data.
Right ...
7
votes
1answer
176 views
Are there open-source JavaScript libraries addressing multiple browser tabs and client state for newer browsers?
There are a few new HTML5 features that have made it into recent browsers that allow sharing state among tabs, browser windows, same domain windows, etc. So it's probably gotten a little easier to ...
0
votes
0answers
67 views
What are some ideas for a final-year CS project? [closed]
I am a final year computer science student in search of a final-year project.
Here are some of my ideas using web technologies:
a site where someone building a house can post their plan and ...
3
votes
3answers
118 views
Feedback on this back-end stack
I'm planning to setup an scalable architecture capable of providing web services on a REST interface where JSON will be sent as a result.
The web services will be quite simple for a CRUD web 2.0 app.
...
-1
votes
2answers
211 views
Why scientific programmers love javascript? [closed]
I'm approaching to rewrite some MATLAB function to c++. And so I've been crushing my head into a lot of scientific blogs and resources for scientific programmers.
I've seen some languages like ...
-2
votes
0answers
47 views
When a game is converted to run natively in Chrome, does it become JavaScript? [closed]
Anyways, I just had my mind blown by a game that was added to the Chrome App store. I don't know if I'm allowed to mention it by name, but you can find it here.
What I'm trying to find out is if ...
6
votes
6answers
242 views
Returning an object or false in dynamic languages
Consider the following JavaScript function:
function Foo() {
function getPreferences() {
if ([there is an existing preferences object]) {
return preferences;
}
return false;
}
}
...
0
votes
0answers
46 views
How do you automagically minify your JS and CSS on OS X or in Webstorm? [migrated]
I use two different IDE's based on what I'm doing. My primary IDE is Visual Studio, whereby I use Chirpy to mash and minify my code. It works flawlessly and I love it. Problem is that when I'm not on ...
4
votes
4answers
143 views
Javascript client - which is likely to be better serverside? WCF or MVC3 controller with restful messages?
I'm looking to write a server side service, which will be accessed from a Javascript/HTML5 client.
The client will likely be sending a bunch of restful messages over HTTPS.
All other things being ...
10
votes
5answers
345 views
How do I make sense of the javascript frameworks explosion ? Should I learn them all?
For a beginner web developer who is still doing web development the conventional way (PHP/J2EE/Struts on server side, HTML/CSS/Javascript on client side), I was bowled over by the recent blog post on ...
-1
votes
0answers
42 views
Defining Technology Stack for a collaborative product [closed]
I am working at startup which is building collaborative planning platform (Yukti Axiom). We have been developing this for a year now. Our current version is built using SQL Server 2008 R2 and ...
9
votes
5answers
317 views
How can I write HTML, CSS, and JavaScript to make back-end developers work easier?
When I get a design from a designer, I get it as a PSD (Photoshop) file. I always expect proper layer and folder names, basically a clean and managed PSD. From this desigbn I develop HTML, CSS and ...
0
votes
0answers
32 views
Multi edit/save grid (hiddenfield + javascript) [migrated]
I got a gridview which contains 10 rows where 1 of the columns is a combobox that can be edited. When I click on an "edit" button, all of the 10 rows becomes editable and I want to keep track of which ...