Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I know if a lib is server side, client side or both?

Tags:

dart

dart:html is a client side library, whereas dart:io is a server side library because this is obvious... but what about a funky lib get from http://pub.dartlang.org/packages ? Server side, client side, both ? How do I know for sure ?

like image 568
Gérald Reinhart Avatar asked Jun 02 '14 21:06

Gérald Reinhart


People also ask

How do you know if something is client-side or server-side?

To find out if a language is client or server side, you have to look at where the language is compiled. If this process takes place on your computer, it's a client-side language. And if it's on the server, it's a server-side language. Let's say you're loading a standard web page and your browser asks for an HTML page.

Is there a way to know that an application is CSR or SSR?

In the case of CSR, the HTML is generated on the client side by executing Javascript code in the browser. The Javascript code is executed by the browser Javascript engine (eg. Chrome V8, Nitro, SpiderMonkey etc.) In the case of SSR, the HTML is generated by executing code on the server-side.

What are client-side libraries?

Our client-side libraries are a collection of advanced features that can be used to build direct integrations with third party applications, using booking confirmation data sent via URL parameters and JavaScript. It is suitable for developers or technically savvy users with scripting or programming knowledge.

What is a server-side library?

A server side framework typically uses a programming language with a compiler and runs on a Web server, such as Node, PHP and ASP.NET. The client-side framework is usually a JavaScript library and runs in a Web browser, such as React, Angular and Vue.


1 Answers

Hopefully the library documents whether it depends on dart:html or dart:io. If not, the only real way to know is to try it.

like image 142
Justin Fagnani Avatar answered Oct 01 '22 17:10

Justin Fagnani