JavaScript

Article Thumbnail
Article

Improving user experience for mobile APIs using the cloud

Evan Shortiss

For your end users, one of the most important aspects of your API is the perceived response time --- if your mobile application takes an excessive amount of time to load data, users will get frustrated. In this series of blog posts, we’ll cover three ways to approach building a RESTful API that leads to better user experience by minimizing perceived response time. These strategies include: processing requests quickly, reducing payload sizes, and eliminating requests entirely, or only downloading data...

Article Thumbnail
Article

Checking node.js dependencies with SZero - Never lose track again.

Lucas Holmquist

Node.js is a JavaScript runtime built on top of Chrome's V8 JavaScript engine. It is highly event-driven, and leverages non-blocking I/O model that makes it lightweight, efficient, and incredibly productive to use. It's that last bit, "productive", that I want to focus on today. One of the things that i feel makes Node(and NPM) so great is the ease in which you can add and use third-party modules. As most node.js developers know, to start using an external module, you...

Red Hat Mobile Application Platform
Article

Announcing fully containerized Red Hat Mobile Application Platform 4.2

Javier Perez

Last June, we announced the availability of version 4.0 of our product. This was the culmination of months of hard work and demonstrated our constantly expanding set of capabilities. I went on to recap the key technology choices made over five years ago, choices that proved to be visionary for our mobile platform’s architecture and functionality: Node.js and containers. We are very proud of our accomplishments with Red Hat Mobile Application Platform 4.0 and the new technologies we introduced to...

Red Hat and Eclipse IDE, looking back at Neon and forward at Oxygen
Article

Red Hat and Eclipse IDE, looking back at Neon and forward at Oxygen

Mickael Istria

Last June, Eclipse IDE had a great release, named Neon. It features, among many other less visible but still quite useful improvements, many new functionalities for everyone. If you did not migrate yet and are still using an older Eclipse version, just move to Neon right now, it’s worth it! For this Neon release, Red Hat managed to increase its contributions to the Eclipse IDE. The 2 main teams doing Eclipse IDE development (to package Eclipse IDE as .rpm for...

Article Thumbnail
Article

Why should I use Node.js: The Non-blocking Event I/O Framework?

Cesar Valdez

Objective Some days ago, I was having an argument with a few Java developers about Node.js, they asked questions like “why should I use that?” or “what’s the benefit?”, I told them by memory that Node.js is an event driven I/O, and thanks to that you will end up writing very efficient server-side applications. They come back saying that they can get the same effect using threads. Thing is I wasn't fully prepared to explain the difference, I had a...

Article Thumbnail
Article

Are "Web Components" in the future for PatternFly?

Dana Gutride

Web development has become increasingly complicated in recent years. The questions of which framework to use often can eat up much time at the start of a project.

Article Thumbnail
Article

Have your own Microservices playground

Rafael Benevides

Microservices are standing at the " Peak of Inflated Expectations". It's immeasurable the number of developers and companies that want to bring in this new development paradigm and don't know what challenges they will face. Of course, the challenges and the reality of an Enterprise company that has been producing software for the last 10 or 20 years is totally different from the start-up company that just released its first software some months ago. Before adopting microservices as an architectural...

Article Thumbnail
Article

Node.js - Harnessing the power of Java (for PDF generation and more)

Cesar Valdez

At Red Hat, we all love playing with new technologies, and sometimes we find gaps that haven't yet been filled. I want to take a few minutes to share a personal project I've been working on in my spare time. It is a native C++11 add-on that allows you to run a JVM in Node.js, giving access to the mature Java ecosystem of libraries and frameworks. Motivation I just wanted some mature PDF library in Node.js, like iText, PDFBox...

Article Thumbnail
Article

Javascript Engine & Performance Comparison (V8, Chakra, Chakra Core)

Huiren Woo

https://vimeo.com/162850953 The purpose of this research is to give a clear overview of how modern Javascript engines run, comparison between the different engines and a quick guide on writing well-performing code. This research analyses the Javascript engines - Chrome V8 [1], Microsoft Chakra [2] and Microsoft Chakra Core [3], and put in practices to ensure that these engines can easily profile and optimize the codes you have written, allowing better performance. Test Platform Specifications Operating System: Windows Server 2016 Technical...

Article Thumbnail
Article

JavaScript: A Repair Guide

Guy Bianco

You're a web developer. It's likely that you have written some of that nasty front-end JavaScript (JS) stuff. You probably wish your code would just work how you expect and you wonder why buttons get moved across the page, or disappear, when all you were trying to do is validate a form. Part of that is probably your Cascading Style Sheets (CSS); however, it's just as likely that… You're writing bad JavaScript This is the part where you tell me...

Article Thumbnail
Article

Have some CoffeeScript with your React

Samuel Mendenhall

In my continual search for the ever more efficient and pragmatic Javascript UI framework, I've stumbled upon React, but not just React, the special combination of React, Coffeescript, and RequireJS. JSX is the more elegant way to compose the DOM within React classes, however, it does require an additional compile step, and there is a bit of added complexity when integrating with RequireJS. It would be hard to give up JSX and go back to building the DOM with plain...