Websocket (javascript) vs Silverlight (ruby, python, javascript, c# etc)? [closed] - javascript

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this question
Just for clarification, is the question: websocket vs silverlight?
Cause websocket is based on HTML enabling the web browser and web client to talk with each other live. Does this mean that developers cannot use Ruby/Python in client side, but only Javascript?
If I use Silverlight, then it seems possibly for developers to use Ruby/Python on both sides right?
So in short:
Websocket => Javascript
Silverlight => Ruby, Python, Javascript etc
Is this picture correct?

WebSockets consists of parts: server and client. The server could be written in any language while the client is intended to be javascript. Using Ruby/Python on the client side is not possible unless you write a browser plugin capable of running this code (the way Silverlight does it).
Silverlight is .NET meaning that you could use any language capable of compiling into MSIL (C#, VB.NET, IronRuby, IronPython, ...) which will run inside the client browser using a plugin that needs to be installed.

Related

Do I need to know Javascript, jQuery, JSP, PHP to make large scale complex android apps? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 7 years ago.
Improve this question
I know that JAVA is the main language used to make android apps. But is there any necessity of other languages such as Javascript, jQuery, JSP, PHP to make great android apps? please note that I am not talking about a simple "hello world" android app. I am talking about large scale complex apps.
Well, it dependes on what exactly the application does. If you require to have, for example, an API on a server to which you can make requests (and you want to develop the API yourself), you need to know those "languages". If the application is complex but it's contained within itself (that means that it doesn't require from you to develope on a server-side language), the only thing you need to know is Java.
On the other side, you don't NEED to develope those server-side applications yourself. You can build the app entirely on Java and consume the data from the servers, leaving the programming of the server-side applications to a third-party (like a freelancer).

What's the difference with Node js and XAMPP [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I am reading a book "Real-Time Communication with WebRTC", it says:
Node.js is an extremely powerful software platform that allows users
to easily build scalable server-side applications with JavaScript. It
is based on a single-threaded event loop management process making use
of nonblocking I/O. The library provides a built-in HTTP server
implementation, making it independent from third-party software
components. With Node.js, it is really easy for the programmer to
implement a high-performance HTTP server with customized behavior with
just a few lines of code.
I already use XAMMP as a local HTTP server, why do i need Node.js? What's the difference with Node js and XAMPP? I am new to Node.js stuff.
XAMPP and Node.js are completely different:
XAMPP is a distribution consisting of Apache, MySQL and PHP. So you are using Apache as your web server.
Node.js is a Javascript framework. You could build you own web server with Node.js

Client - Server model using Dart as Client and Go language as Server [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 7 years ago.
Improve this question
I am trying to understand google two programing language.
Dart --> Produce Javascript
Go --> Produce machine code
If I need to combine Client - Server model. I am wondering how the architecture works.
How does it work. Is there any example/sample.
Example : Please explain this.....
I type www.learnlang.com. I expect WEB UI is served using Dart and It is calling REST API developed in GO language.
Note : Please don't relate google app engine. I am trying to understand the model in individual servers.
Thank you.
I think you got it right! So for example you compile your dart app using dart2js to produce javascript code. Then you can serve this code through a web server (like Apache or Nginx).
This code gets downloaded by clients as Javascript. Your Javascript code may connect to a backend written in Go through HttpRequests or WebSockets.
You can exchange data through both layers with JSON, XML, whatever you want.
Go will most likely run as a process, and embed its own "listening to HttpRequests" mechanism for the API.

What is full-stack javascript [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I believe "full-stack" means that a language can handle both the server and client side of things. I have heard that javascript is now able to handle the server side now. I have also heard of node.js but am not 100% sure what that is. What exactly is full-stack javascript? it seems to be the talk of the web.
"full-stack javascript" is idea and marketing term that says that JavaScript is used for both server and client side.
Node.js http://nodejs.org/ was the first JavaScript platform to become popular and set standard for server side JavaScript.
It is using V8 engine from WebKit open-source project, that power Apple browsers and Google Chrome (before they forked it into new own project.)
JavaScript cab be also used for development of Windows 8, GNOME and Mozilla FireOS apps.
Some companies promotes using their frameworks and packs as stack (choices for framework already made)

Nodejs is based on javascript, is there a posibilty the user can hack the code [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
For for my Understanding, I want to know if, since NodeJS is based on JavaScript, is there a possibility the end user can hack the code in a way that causes a security vulnerability.
What I mean is since the NodeJS is JavaScript, and JavaScript usually runs at browser, So is there a possibility that the end user who is access the application, can look into the business logic of the application?
In particular do any of JavaScript's known security vulnerabilities or precautions in browser based coding extend to server side programming? Or are there any other specific vulnerabilities peculiar to NodeJS that are not found in other server side languages?
Your javascript code running on node.js is as safe as other server side technologies as this code cannot be actually accessed by the user directly.
But lack of knowledge or errors by the person writing the code can result in security vulnerabilities in any language / platform.

Categories