JavaScript Journal

Subscribe to JavaScript Journal: eMailAlertsEmail Alerts newslettersWeekly Newsletters
Get JavaScript Journal: homepageHomepage mobileMobile rssRSS facebookFacebook twitterTwitter linkedinLinkedIn


Top Stories

The Impact of JavaScript Errors These days we are moving more and more logic towards the user into the browser to achieve higher performance and better user experience. There are Single Page Application frameworks like AngularJS, React, Ember and others supporting this trend. If it works, everything is fine. But with this trend a JavaScript error can become a website killer. What does this mean? Below you can see the same page twice, but depending on the browser used, you get a product list from which you can make a selection…or NOT! The difference is the result of a simple JavaScript error. Figure 1: JavaScript error causing a product search to return no result Here is another example of an online email interface showing a list of contacts, or in this case NONE, due again to a simple JavaScript error. JavaScript errors today can ruin the user experience of a web ap... (more)

Terracotta Claims To Solve Java’s Memory Conundrum

Java developers might want to think about hoisting Terracotta on their shoulders and marching around JavaOne this weekend. The company thinks it's overcome the garbage collection-created impasse preventing Java apps from using lots of memory just when lots of memory has gotten terribly fashionable in modern servers. And the solution is a lot cheaper and simpler than buying what amounts to a mainframe for Java from Azul. It'll be at JavaOne showing off the beta of its new BigMemory pure Java add-on for Enterprise Ehcache. The widgetry, compatible with all the popular JVMs, offers an off-heap cache that frees Java applications from the memory and performance restraints of garbage collection by managing the memory directly. See, JVMs and their attendant applications data are pretty much restricted to 2GB-4GB of in-memory cache, which explains why VMs have proliferate... (more)

Analyzing Webpage Performance with AJAX Edition 4

It's been a while since we released the last major version of Compuware dynaTrace AJAX Edition. With AJAX Edition 4 we introduce the capability to test across all versions of Internet Explorer (IE) starting with IE6 and all versions of Firefox starting with 3.6. Why is this important? Well, check out the test results of several pages we tested on IE6, 7 and 8 and contrast them with tests of the same pages using Firefox 16 and 18. A product page on Zappos.com loads in 1.3 seconds in Firefox 18 as compared to 5.6 seconds in IE6. That is four times slower on IE's rather ancient browser. Despite a concerted effort by the industry to get people to use updated browsers (including this one by Microsoft), we're still seeing a big mix in the browser versions people use to access websites. That means it's important to analyze webpage performance across browser versions to en... (more)

WebRTC Summit | The WebRTC Data Channel

Slide Deck: The WebRTC Data Channel The WebRTC Data Channel is the next big thing in browser real-time communication. In his session at WebRTC Summit, Dan Ristic, a developer evangelist for PubNub, explored the specification of what the data channel is, the potential road blocks to using it, and where to use it in production today. He also explored the future of the data channel and how it will change the browser landscape in the years to come. Click here to follow ▸@WebRTCSummit WebRTC Journal ▸Home Speaker Bio Dan Ristic is a developer evangelist for PubNub, the leading provider of real-time technologies. He is passionate about front-end engineering and looks to push the web to its limits every day. His goal is to map the future of the web and how it will change the future of the world. A Rock Star Faculty, Top Keynotes, Sessions, and Top Delegates! Cloud Expo® 201... (more)

An Introduction to Client Latency

What is client latency? Let's face it, users are impatient. They demand a blazingly fast experience and accept no substitutes. Google performed a study in 2010 which proved that when a site responds slowly, visitors spend less time there. Speed as perceived by the end user is driven by multiple factors, including how fast results are returned and how long it takes a browser to display the content. So while the effects of poor performance is obvious, it makes one wonder about the relationship between client latency and the "perception of speed". After all, the user can trigger many state change events (page load, submit a form, interact with a visualization, etc) and all these events have an associated latency to the client. However, are certain types of latency more noticable to the user then others? Let's look at all the different ways latency can creep in, throughout... (more)

[download] The Most Intelligent Ruby and Rails IDE | @DevOpsSummit #DevOps

Click Here to Download RubyMine Now! Boost your productivity for all types of Ruby projects and cutting-edge technologies with RubyMine, a powerful IDE with smart coding assistance and advanced testing and debugging features. JetBrains RubyMine IDE includes a comprehensive Ruby code editor aware of dynamic language specifics. It provides smart coding assistance, intelligent code refactoring, and deep code analysis capabilities. With easy project configuration, automatic Ruby Gems management, Rake support, and built-in consoles, it has everything a Ruby developer needs in a development environment. Click Here to Download RubyMine Now! @ThingsExpo - The World's Largest 'Internet of Things' Event, June 7-9 2016 at New York City's Javits Center! How to Win as a Sponsor and Exhibitor ▸ Here All major researchers estimate there will be tens of billions devices - compu... (more)

Five Steps to #MeteorJS Monitoring | @DevOpsSummit @Sematext #JavaScript

Five Steps to MeteorJS Monitoring By Stefan Thies Meteor is a full-stack JavaScript platform for developing modern web and mobile applications. It includes developer tools, websockets, MongoDB integration, and a package manager.  Atmosphere.js is the Meteor package manager.  Unfortunately, it doesn’t list many Meteor monitoring solutions. Luckily, thanks to the Meteor npm integration, it is possible to use npm packages for monitoring Meteor apps with npm based monitoring solutions, such as SPM for Node.js monitoring.  SPM for Node.js collects key Node.js metrics such as Event Loop, Garbage Collection, CPU, Memory and web services metrics. All metrics are organized in out-of-the-box charts, which can be put on additional dashboards and placed next to performance charts for other parts of the application stack and their logs for doing metric-logs correlations. Let’s s... (more)

JavaScript: The Good Parts

JavaScript is a language with more than its share of bad parts. It went from non-existence to global adoption in an alarmingly short period of time. It never had an interval in the lab when it could be tried out and polished. JavaScript has some extraordinarily good parts. In JavaScript there is a beautiful, highly expressive language that is buried under a steaming pile of good intentions and blunders. The best nature of JavaScript was so effectively hidden that for many years the prevailing opinion of JavaScript was that it was an unsightly, incompetent abomination. My intention here is to expose the goodness in JavaScript, an outstanding dynamic programming language. Within the language is an elegant subset that is vastly superior to the language as a whole, being more reliable, readable, and maintainable.  Speaker Bio: Douglas Crockford is a product of our publi... (more)

JavaScript: The Good Parts

JavaScript is a language with more than its share of bad parts. It went from non-existence to global adoption in an alarmingly short period of time. It never had an interval in the lab when it could be tried out and polished. JavaScript has some extraordinarily good parts. In JavaScript there is a beautiful, highly expressive language that is buried under a steaming pile of good intentions and blunders. The best nature of JavaScript was so effectively hidden that for many years the prevailing opinion of JavaScript was that it was an unsightly, incompetent abomination. This session will expose the goodness in JavaScript, an outstanding dynamic programming language. Within the language is an elegant subset that is vastly superior to the language as a whole, being more reliable, readable and maintainable. Register for AJAXWorld RIA Conference & Expo Submit Your Paper to... (more)

JSON Creator Douglas Crawford Reveals the Brilliance Within JavaScript at AJAXWorld

JavaScript is currently the world's most used programming language, JSON creator Douglas Crawford told a very full keynote room full of delegates at the 6th International RIA Conference & Expo in San Jose, CA, today. "The very best part of JS is its stability. That is what made AJAX possible," declared Crockford. He then went on, though, to sketch in details some of JavaScript's bad parts. The Most Distinguished Conference Faculty Alumni - A Who's Who of the RIA Rock Stars! AJAXWorld RIA Conference & Expo faculty alumni include such notable speakers as: Brad Abrams (Microsoft), Danny Allan (Watchfire), Jean-Francois Arcand (Sun Microsystems), Roland Barcia (IBM), Jeffrey Barr (Amazon), Robb Beal (Lazslo Systems), Sumeer Bhola (IBM), Robert Boedigheimer (The Schwan Food Company), David Boloker (IBM), Jeff Brown (G2One), Shane Bryzak (JBoss), Bob Buffone (Nexaweb), Ku... (more)

Part 3 | Component Models in Java

Service Component Architecture (shortly referred as SCA) is a technology for creating services from components. SCA is a set of OASIS standards and part of it is developed with the collaboration of vendors from open source community, referred as "OSOA" Open SOA. SCA helps to build systems as a collection of interconnected components. The components created in SCA communicate through the services. The advantage of SCA is its neutral component model. It allows services to be built by any language component like Java, C++, BPEL, JavaScript, Ruby, Python etc. SCA addresses two important needs of component world: Complexity Reusability SCA is best suited model for distributed systems. SCA simplifies building of systems by simple assembling of components. SCA like other component model discussed in the previous sections facilitates component assembly in the middle tier -... (more)