Re: [JSMentors] Re: I didn't understood the term javascript Engine,what does it mean.

2011-08-20 Thread Anatoly Geyfman
Def. Like I said, it's just an example of a language being applied. -- Anatoly Geyfman http://www.geyfman.net On Saturday, August 20, 2011 at 10:36 PM, Andrew Hedges wrote: > Actually, JavaScript on the server can do a lot more than just serve web > requests. E.g., we use it as a build tool.

Re: [JSMentors] Re: I didn't understood the term javascript Engine,what does it mean.

2011-08-20 Thread Andrew Hedges
Actually, JavaScript on the server can do a lot more than just serve web requests. E.g., we use it as a build tool. and...@hedges.name / http://andrew.hedges.name/ On Aug 20, 2011, at 10:02 PM, Anatoly Geyfman wrote: > server-side javascript is when the application written in Javascript is run

Re: [JSMentors] Re: I didn't understood the term javascript Engine,what does it mean.

2011-08-20 Thread Anatoly Geyfman
server-side javascript is when the application written in Javascript is run as a server handling requests. Javascript is a language, and as such can be used to do a lot of things - you can make a drawing application w/ javascript on the client, and you can also make a program that receives web

[JSMentors] Re: I didn't understood the term javascript Engine,what does it mean.

2011-08-20 Thread Rahul
Ok , now i understood that Javascript engine is used in browser to execute loaded javascript faster. But than what does Server-side javascript mean ? and how it has to do any thing with Javascript engine ? On Aug 21, 4:52 am, Laurie Harper wrote: > Oops; appologies to the list for such a Node-ce

Re: [JSMentors] Accessing private vars in the revealing module pattern

2011-08-20 Thread Christian C . Salvadó
On Sat, Aug 20, 2011 at 1:22 PM, Nick Morgan wrote: > On 20 August 2011 20:10, Peter van der Zee wrote: > > > Personally I'd never use a construct like this. Just expose private > > variables as you go. Using eval is dangerous, especially because I > > don't quite see the point of the regex. I m

Re: [JSMentors] I didn't understood the term javascript Engine,what does it mean.

2011-08-20 Thread Laurie Harper
Oops; appologies to the list for such a Node-centric reply. To be clear: Node is by no means the only server-side Javascript platform; there are others. I assume the reference to "Node: Up and Running" is an indication that that's what the OP is looking at though ;-) L. On 2011-08-20, at 7:50

Re: [JSMentors] I didn't understood the term javascript Engine,what does it mean.

2011-08-20 Thread Laurie Harper
Specifically, in your frame of reference: the Javascript Engine is roughly equivalent to the Java Virtual Machine (JVM) -- i.e. the component that handles compiling/evaluating your code. Tomcat is an application written in Java which implements the Servlet API. For web application development

Re: [JSMentors] "Essentials of interpretation" Lesson 2. Parsing. Lexer of AE in math infix notation.

2011-08-20 Thread Xavier MONTILLET
Ok thank you very much :) (Should I say that you on groups or will it bother everyone with another email?) On Sat, Aug 6, 2011 at 10:46 PM, Dmitry A. Soshnikov wrote: > Yep, right, though, in ES3 anyway standard practice was/is to check own > properties. And in ES5 you may control enumerable att

Re: [JSMentors] "Essentials of interpretation" Lesson 2. Parsing. Lexer of AE in math infix notation.

2011-08-20 Thread Dmitry A. Soshnikov
Yep, right, though, in ES3 anyway standard practice was/is to check own properties. And in ES5 you may control enumerable attribute. Besides, I added the line with restoring the constructor only by the habit; in fact I do not use there this check and it's not needed there, so I wouldn't care ab

Re: [JSMentors] "Essentials of interpretation" Lesson 2. Parsing. Lexer of AE in math infix notation.

2011-08-20 Thread Xavier MONTILLET
Never thought assigning a new object as prototype was taking that away... But then when you use for in loops, it is shown whereas it shouldn't... On Sat, Aug 20, 2011 at 8:10 PM, Dmitry A. Soshnikov wrote: > On 20.08.2011 7:42, Xavier MONTILLET wrote: >> >> What's the aim of line 69? >> >> https:

Re: [JSMentors] math expression evaluator

2011-08-20 Thread Ariya Hidayat
Well, the code for TapDigit has been there for a while. In fact, there is unpublished stuff, which I'll share here when it's ready, that might be interesting to math + JS freak :) I'll crossref your article in the last part, in case the reader wants to see a different take on the subject. Regar

Re: [JSMentors] Accessing private vars in the revealing module pattern

2011-08-20 Thread Nick Morgan
On 20 August 2011 20:10, Peter van der Zee wrote: > Personally I'd never use a construct like this. Just expose private > variables as you go. Using eval is dangerous, especially because I > don't quite see the point of the regex. I mean, what is clean() trying > to do? `alert('foo');` is going t

Re: [JSMentors] Accessing private vars in the revealing module pattern

2011-08-20 Thread Peter van der Zee
On Sat, Aug 20, 2011 at 8:22 PM, Nick Morgan wrote: > Hi guys > > Thought I'd share a little toy I just made, to see what you thought: > ... > It gives you access to the value of private vars via a safe eval. > Thought it might come in useful for testing occasionally. I'm not > suggesting using it

[JSMentors] Accessing private vars in the revealing module pattern

2011-08-20 Thread Nick Morgan
Hi guys Thought I'd share a little toy I just made, to see what you thought: http://jsfiddle.net/skilldrick/EjHWT/1/ var obj = (function () { var private = 5; var private2 = 10; function clean(varName) { var invalidIdentifier = /[^\w]+/g; if (varName.match(invalidIde

Re: [JSMentors] "Essentials of interpretation" Lesson 2. Parsing. Lexer of AE in math infix notation.

2011-08-20 Thread Dmitry A. Soshnikov
On 20.08.2011 7:42, Xavier MONTILLET wrote: What's the aim of line 69? https://github.com/DmitrySoshnikov/Essentials-of-interpretation/blob/master/src/lesson-2.js To restore `constructor` property since we override it when assign to `prototype`. var F = function() {}; var f = new F; consol

Re: [JSMentors] math expression evaluator

2011-08-20 Thread Dmitry A. Soshnikov
Yeah, seems a similar work (perhaps you may want to refer to my series as well, it will be a good addition; especially if you notice that it motivated you). I looked on sources, yes quite good written parts (lexer, parser -- also LL, and interpreter) -- congrats! Dmitry. On 20.08.2011 7:35, A

Re: [JSMentors] I didn't understood the term javascript Engine,what does it mean.

2011-08-20 Thread Amit Agarwal
Javascript engine is the part of a browser which is responsible for executing loaded Javascript code. Better your JS engine executes JS faster. Details? http://en.wikipedia.org/wiki/JavaScript_engine Example? http://www.youtube.com/watch?v=KTkTBKSnqbA On Sat, Aug 20, 2011 at 6:59 PM, Rahul wr

[JSMentors] Re: Code Review Request: Facebook Wrapper (fsw.js)

2011-08-20 Thread Philip Schweiger
I'm using jQuery.getScript(), and in the callback function I resolve a jQuery Deferred object. All actions using my script, then have to be wrapped inside the "done" callback of the Deferred object. I don't think there's any way to avoid that overall mechanism, since the FB library must be loaded

[JSMentors] I didn't understood the term javascript Engine,what does it mean.

2011-08-20 Thread Rahul
I searched on Wikipeidia , but i didn't understood the explanation. Many article says that Javascript engine is used for "Javascript Web server", But how come web server ? I have worked on Tomcat server and having knowledge of J2EE framwork, here a browser send request using a url, now this requ