Task 7.2 :
>>Write a blog explaining the ‘use case’ of ‘JavaScript’ in any of your favorite industries.
According to the reports, There were meaningful differences across industries in how and why people use JavaScript.
- tech: 45%
- finance: 7%
- advertising and marketing: 5%
- education: 5%
- entertainment: 5%
- business support and logistics: 4%
- healthcare: 4%
- retail: 3%
- government: 2%
- manufacturing: 2%
As an open-source framework, React Native can be used for building cross-platform native apps. When used in combination with JavaScript, React Native applications are indistinguishable from apps built using other languages such as Swift, Java, and Objective-C.
What is JavaScript used for?
JavaScript is mainly used for web-based applications and web browsers. But JavaScript is also used beyond the Web in software, servers, and embedded hardware controls. Here are some basic things JavaScript is used for:
1. Web Applications
As day-by-day there is a continuous improvement in the browsers, so JavaScript gained popularity for making robust web applications. We can understand it by taking the example of Google Maps. In Maps user just requires to click and drag the mouse; the details are visible just by a click. There is a use of JavaScript behind these concepts.
2. Web Development
JavaScript is commonly used for creating web pages. It allows us to add dynamic behavior to the webpage and add special effects to the webpage. On websites, it is mainly used for validation purposes. JavaScript helps us to execute complex actions and also enables the interaction of websites with visitors. Using JavaScript, it is also possible to load the content in a document without reloading the webpage.
3. Mobile Applications
Now a day’s mobile devices are broadly used for accessing the internet. Using JavaScript, we can also build an application for non-web contexts. The features and uses of JavaScript make it a powerful tool for creating mobile applications. React Native is the widely used JavaScript framework for creating mobile applications. Using React Native, we can build mobile applications for different operating systems. We do not require writing different codes for the iOS and Android operating systems. We only need to write it once and run it on different platforms.
4. Game
JavaScript is also used for creating games. It has various libraries and frameworks for creating a game. The game can either be 2D or 3D. Some JavaScript game engines such as PhysicsJS, Pixi.js help us to create a web game. We can also use the WebGL (web graphics library), which is the JavaScript API to render 2D and 3D images on browsers.
5. Presentations
JavaScript also helps us to create presentations as a website. The libraries, such as RevealJs, and BespokeJs, can be used to create a web-based slide deck. They are easier to use, so we can easily make something amazing in a short time.
The Reveal.js is used to create interactive and beautiful slide decks with the help of HTML. These presentations work great with mobile devices and tablets. It also supports all of the CSS color formats. The BespokeJS includes animated bullet lists, responsive scaling, and a wide variety of features.
6. Server Applications
A large number of web applications have a server-side to them. JavaScript is used to generate content and handle HTTP requests. JavaScript can also run on servers through Node.js. The Node.js provides an environment containing the necessary tools required for JavaScript to run on servers.
7. Web Servers
A web server can be created by using Node.js. Node.js is event-driven and not waits for the response of the previous call. The servers created using Node.js are fast and don’t use buffering and transfer chunks of data. The HTTP module can be used to create the server by using the createServer() method. This method executes when someone tries to access port 8080. As a response, the HTTP server should display HTML and should be included in the HTTP header.
</> LinkedIn :
LinkedIn relies on NodeJS for its mobile site. A few years back, LinkedIn used Rails for its mobile site. As with other large Rails applications, it was slow, monolithic, and it scaled poorly.
LinkedIn switched over to NodeJS to solve its scaling problems. Node’s asynchronous capabilities allowed the LinkedIn mobile site to perform more quickly than before while using fewer resources. Node also made data sharing and building APIs easier for LinkedIn developers.
After switching to node.js the Linkedin development team realized the advantages.
- Much better performance and lower memory overhead than other tested options, running up to 20x faster in some scenarios
- Programmers could leverage their JavaScript skills.
- Frontend and backend mobile teams could be combined into a single unit.
- Servers were cut to 3 from 30. Enough headroom remains to handle 10x current levels of resource utilization.
- The development could focus more on application development than firefighting.
No comments:
Post a Comment