Path: csiph.com!aioe.org!.POSTED!not-for-mail From: =?UTF-8?Q?Arne_Vajh=c3=b8j?= Newsgroups: comp.lang.java.programmer Subject: Re: javascript Date: Wed, 16 Mar 2016 20:26:37 -0400 Organization: Aioe.org NNTP Server Lines: 52 Message-ID: References: NNTP-Posting-Host: ANasIS7Js9OyLQwgloeBLQ.user.gioia.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit X-Complaints-To: abuse@aioe.org User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 X-Notice: Filtered by postfilter v. 0.8.2 Xref: csiph.com comp.lang.java.programmer:34000 On 3/16/2016 10:58 AM, Stefan Ram wrote: > Rhino writes: >> Would you agree with me that posts about JavaScript are off-topic in >> this newsgroup? > > In Java SE, we can write: > > ScriptEngine engine = new ScriptEngineManager().getEngineByName("nashorn"); > engine.eval("print('Hello World!');"); > > , so questions about JavaScript could be interpreted as > questions about the »eval« method of Java SE's »ScriptEngine« object. Bullshit. Only questions the Java context and the interaction between Java and JavaScript would be on topic. A question only about JavaScript would be off-topic. The fact that it can be run from Java does not make it on topic. You can also run a COBOL program from Java via Runtime.exec (or ProcessBuilder). But only questions about the Java code and how to manage input and output would be on topic. Question only about COBOL would be off-topic. > After all, we also discuss regular expressions in this > newsgroup because they can be used in Java SE code, even > though regular expressions are a language different from Java. Do we? I would expect RE questions here to include significant more Java code than RE "code". A RE question without any Java involvement would certainly be off topic. >> How would you have said it? > > I have made the decision to try to ignore advertisements for > blogs in this newsgroup and not directly to reply to them. Well that part I agree with. Arne