javascript

Red Hat Logo
Article

Riviera Dev/JUDCon: Riviera 2017 Recap

Lance Ball

I returned late Sunday night from a trip to the south of France, where I was privileged to speak about Microservices, OpenShift, and how to do it all on Node.js. The conference was RivieraDev/JUDCon: Riviera 2017 and took place in Sophia Antipolis, near Nice, Cannes, St. Tropez and other fabulous Mediterranean cities on the southeastern coast of France. This was a two-day conference, sponsored in part by Red Hat. It was great to see so many Red Hatters there and...

Red Hat OpenShift logo
Article

Develop and Deploy on OpenShift Next-Gen using Red Hat JBoss Developer Studio (Part 2)

Jeff Maury

In the first part of this series, you can see how to use and configure Red Hat JBoss Developer Studio in order to develop and deploy on the Next-Gen OpenShift platform. A step-by-step guide was given allowing us to: connect to the Next-Gen OpenShift platform from Red Hat JBoss Developer Studio deploy and tune a JBoss Enterprise Application Platform based application debug the deployed JBoss Enterprise Application Platform based application In this second part, we will follow the same pattern...

Service browser
Article

Service Workers in the Browser (Not Clerks The Movie)

Samantha Donaldson

As long as there are humans on earth, places to travel to, and mobile devices in their hands, the need to be able to view content offline will remain, and the APIs created to tackle these issues will continue to progress along with the demand. The newest script hoping to support offline experiences and put the control in the hands of the developer is the Service Worker API and, luckily for developers, this API found solutions to most of the...

Article Thumbnail
Article

Data Encapsulation vs. Immutability in Javascript

Lance Ball

A while ago, I wrote a fairly long post attempting to shed some light on a few things you can do in your JavaScript classes to enforce the concept of data encapsulation - or data "hiding". But as soon as I posted it, I got some flak from a friend who is a Clojure programmer. His first comment about the article was this. Mutability and data encapsulation are fundamentally at odds. Eventually, he walked that back - but only just...

Article

Installing Red Hat Developer Studio 10.2.0.GA through RPM

Jeff Maury

With the release of Red Hat JBoss Developer Studio 10.2 , it is now possible to install Red Hat JBoss Developer Studio as an RPM. It is available as a tech preview. The purpose of this article is to describe the steps you should follow in order to install Red Hat JBoss Developer Studio. Red Hat Software Collections JBoss Developer Studio RPM relies on Red Hat Software Collections. You don’t need to install Red Hat Software Collections but you need...

Article Thumbnail
Article

Node 7 and Promise Rejections - Please Handle them

Lucas Holmquist

Node.js 7.0.0 was released just last week, and the announcement dropped a bombshell. I'm guessing the following announcement might freak some people out: DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code. While the UnhandledPromiseRejectionWarning has been in node since 6.6.0 , this deprecation warning is new --- basically, it means you've rejected a promise in your code, but you are not handling it...

Article Thumbnail
Article

Data-hiding in ES6 (JavaScript) from an Object Oriented perspective

Lance Ball

For a long time during my early career, I was an OO --- object oriented --- developer. I genuflected regularly in front of the altar of data encapsulation, object hierarchies and static typing. And the syntax. Oh the syntax! But I have changed, of course, and so much of the dogma and ceremony that I participated in during those times has come to seem a lot less important than it was 20 years ago. Languages, and developers evolve. But that...

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...

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...

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

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

Building JBoss Projects with PatternFly and AngularJS

James Falkner

Recently I've been looking into different UI tech in use for apps built on top of Red Hat middleware, and I've discovered that many of Red Hat's products use PatternFly (in differing capacities) for their administrative UIs. PatternFly is "A community of designers and developers collaborating to build a UI framework for enterprise web applications." (from the website). There are also components, directives, etc, for AngularJS projects (which I really like). This sounds awesome, particularly because I'm a terrible designer...

Development for building APIs in Node.js and Express
Article

Test-Driven-Development for building APIs in Node.js and Express

Cian Clarke

Test-Driven-Development ( TDD ) is an increasingly popular, and practical, development methodology in today's software industry, and it is easy to apply in Node.js - as we'll see in this article. TDD forces much greater code test coverage, and if you aren't already using it, I'd strongly encourage trying. The process is: define a test that expects the output we want from our library, API, or whatever it is we're testing to produce; ensure that the test fails - because...

Eclipse logo
Article

Red Hatters at EclipseCon NA this week

Mike Guerette

If you're attending EclipseCon NA in Reston, Virginia this week, be sure to find these Red Hat sessions: TUESDAY Docker, Vagrant and Kubernetes walks into an Eclipse'd bar , by Max Anderson Grand Ballroom AB - Tuesday, March 8, 2016 - 11:45 to 12:20 Abstract: Today's software industry is booming with tools like Docker, Kubernetes, Vagrant and more to enable faster turnaround times via virtualization. How does Eclipse the IDE deal with that ? Can it deal with it...

RedHat Shadowman Logo
Article

Apps 101: An Absolute Beginner's Guide to building a Mobile App

Cian Clarke

Building applications can be a laborious process. Sourcing work to bespoke app development studios is expensive, and there's often a large backlog of applications built up within a business needing development. While there's no magic bullet solution to clearing this backlog, there are tools that can help. In today's post, we're going to look at building a mobile application on the Red Hat Mobile Application Platform as a complete beginner. Since mobile developers are an increasingly rare commodity, this post...

RedHat
Article

Angular, React, and Javascript framework fatigue

Samuel Mendenhall

Introduction I'm an avid follower of Hacker News and many various programming related subreddits. There is a constant flow of posts where the author expresses fatigue, weariness, and many times backlash at JavaScript and the plethora of front-end frameworks. Much of this conversation surrounds React and Angular and then other frameworks such as Mithirl, Meteor, Ember, Vue and others (and there are many others). The conversation many times will go X is the best framework, or X is not the...

Article Thumbnail
Article

React.js with Isotope and Flux

Samuel Mendenhall

TL&DR To integrate React.js and Isotope you need to tell Isotope of changes to the DOM through Isotope's API ( remove and addItems ). Overview Pairing React.js with Isotope is not particularly difficult when dealing with static content. However, pairing the two with dynamic content does get a bit tricky. The problem with the combination is that Isotope, by default, expects a known set of DOM elements so that it can make computations internally. When the elements change, which will...

Article Thumbnail
Article

Scala vs. Node.js as a RESTful backend server

Samuel Mendenhall

VS. I've been involved with full-stack development for a while now, especially stacks involving single page apps. When choosing to go with a single page webapp the backend concerns change. While any backend will do the job (think ruby, python, java, etc.) more emphasis is placed on the front-end stack as most of the time is spent in Javascript and less in the backend language since that is not where the UI logic resides. This is liberating in some senses...

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...

Article Thumbnail
Article

Communicating Large Objects with Web Workers in javascript

Samuel Mendenhall

As html5 and client side solutions become more prevalent, the need for handling more and more data through javascript will increase. One such challenge, and the focus of this article, is a strategy for handling hundreds of megabytes of data through Web Workers . What created this need for me personally was the development of Log Reaper [1] which is a client side approach to parsing log files with no server side upload or processing. Log Reaper identifies and parses...

Article Thumbnail
Article

Interview from O'Reilly Fluent - Red Hatters on Javascript, more

Mike Guerette

Learn what Red Hatters, Langdon White and Ryan Jarvinen, had to say during this (6 minute) interview at the O'Reilly Fluent conference regarding what we're doing with Javascript, DevOps, and more. {"preview_thumbnail":"/sites/default/files/styles/video_embed_wysiwyg_preview/public/video_thumbnails/NWzEv9SXsLs.jpg?itok=zqxmeqLD","video_url":"https://www.youtube.com/watch?v=NWzEv9SXsLs?feature=player_embedded&w=640&h=360","settings":{"responsive":true,"width":"854","height":"480","autoplay":false},"settings_summary":["Embedded Video (Responsive)."]}