Events

Feed icon 28x28
Work original

Videos provided by JSConf via their YouTube Channel

JSConf 2014 Schedule

May 27 - 31, 2014

( 26 available presentations )
Work thumb
Rating: Everyone
Viewed 387 times
Recorded at: May 28, 2014
Date Posted: July 7, 2014

We have everything we need to read DVD-video discs in a browser, so why don't we start?

For that purpose, I ported libdvdread and libdvdnav libraries to JavaScript so that we can parse the DVD-video info files and emulate a virtual machine.

But this comes with technical challenges such as browsers being bad at manipulating huge files or not supporting the codecs used in DVD (MPEG-2, AC-3...). That's why this port comes with a server in Node.js to circumvent these limitations.

The resulting project is a mix of websockets, video elements, media source extensions and a lot of open source love.

Get ready for a mind blowing demo!

Work thumb
Rating: Everyone
Viewed 462 times
Recorded at: May 28, 2014
Date Posted: July 7, 2014

When writing complex business logic, it is critically important to maintain clean code though the judicious applications of Test Driven Development and Domain Driven Design. However, even these powerful techniques fall short of solving the problem at the heart of building complex software: building what the customer actually wants.

Domain Specific Languages (DSLs) allow us to capture complex business requirements in code written in the language of the customer. Once an ubiquitous language between you and your customer is defined and implemented as a DSL, the code can quite literally be given back to the customer to edit and refine. This is not a theory, or a myth. I have done this under real-world constraints and deadlines, and you can as well.

JavaScript's ability to blend Object Oriented and Functional Programming paradigms makes it an ideal language for authoring custom DSLs. Unfortunately, too often developers are unclear on how to identify when a custom DSL is an appropriate solution, and when it is, how to go about writing one. I will take you through the process of developing a few different custom DSLs from planning to implementation, as well as how to performance tune and debug your new custom language. My hope is that you will gain a powerful tool for managing complex software that will keep you sane, and your customers happy.

Work thumb
Rating: Everyone
Viewed 408 times
Recorded at: May 28, 2014
Date Posted: July 7, 2014

Emotional safety is the most important predictor of the health of an organization and a community. But more importantly, it has a enduring repercussions on our lives as individuals. Like, our real lives—the ones we live for our whole lives.

I've worked in intensely unsafe professional environments prior to joining the team at &yet.

I'd like to candidly share some of the lessons I've learned from my unique perspective as a female who isn't a software developer but who spends much of her life around them (including co-organizing events like RealtimeConf, RedisConf, and TriConf).

Being "in the developer world but not of it" has given me perspective to identify blind spots within our culture as a company and a community. Traditionally copywriters on a software team are viewed as a supporting role: we help sell what gets made. But what if all contributors to a team were true equals capable of leading and shaping a continuously improving company culture? That's the foundation of emotional safety.

Work thumb
Rating: Everyone
Viewed 642 times
Recorded at: May 28, 2014
Date Posted: July 7, 2014

What does enterprise grade server-side Javascript look like? Do you work at a large org over 2000 people that probably is a Java or .Net shop? Could you be better served leveraging the cloud and the vibrant Node.js community for some projects? Do you need to convince your boss?

At Fidelity we have several security/quality checkpoints across many departments to validate that applications and platforms protect customer data. Security code reviews, penetration test, risk audits, legal compliance and many other factors go into signing off on an application. Fidsafe is a new virtual safe deposit box offering by Fidelity that is the first application to be served outside the Fidelity firewall on the cloud. Fidsafe challenges every aspect of how the organization builds and deploys software. We had to answer a lot of questions and provide practical tooling/solutions to get Node into production.

We will cover what it takes from top to bottom build and operate a secure and scalable service backend implemented in Node.js and deployed to AWS. Topics covered:

1.) Node Process Management
* Lifecycle management -- Upstart and Forever
* Smart defaults for scalability and uptime
* Reactor — How we use cluster to scale across cores
2.) Hardened Express
* End to End Javascript — CouchDB / MongoDB
* Layering security using middleware
* Strategies for bulletproof cookies
* SSL termination strategies
* Authenticating end-users and API consumers
3.) Building a Secure PaaS — A brief overview
* If you want it to be secure you have to build your own. What's the minimum you need for Node?
* Devops in across organizational boundaries — AWS, Python, Boto, AMIs, and Asgard
* Ubuntu as PaaS — real solutions are diverse and polyglot

Work thumb
Rating: Everyone
Viewed 439 times
Recorded at: May 28, 2014
Date Posted: July 7, 2014

This talk covers build tooling, processes, and your development workflow. You'll get a glimpse as to why you should be building, and why you should put together a build process from the get-go. Then we'll move on to tooling. Here I'll discuss some of the most popular JavaScript build tools, namely Grunt, Gulp, and npm.

We'll investigate how each one performs for certain tasks, and I'll help you forge your own build sword. Lastly, I'll discuss the benefits of going for the module format Node.js uses, which is Common.js, and how you can leverage those modules in the browser, using a tool called Browserify.

Work thumb
Rating: Everyone
Viewed 630 times
Recorded at: May 28, 2014
Date Posted: July 7, 2014

Even something as simple as a dropdown menu or a bar graph can introduce usability problems. From a slide out menu disappearing when a user's mouse moves a few pixels too far, to requiring NASA-like levels of precision to mouse over the right element, there are algorithms already implemented in Javascript to help us overcome these problems. If an algorithm is defined as "a step-by-step procedure for calculations", let's visually break down those steps for 2 different non-trivial algorithms and explore how these algorithms are applied to some standard & everyday user interface patterns. We'll first look at an algorithm for predicting a user's intentions by calculating mouse speed and direction, and then tackle determining hit state for hundreds of non-uniformed, variably sized and placed UI elements.

Work thumb
Rating: Everyone
Viewed 342 times
Recorded at: May 28, 2014
Date Posted: July 7, 2014

What will it take for native code to become part of the web platform? The web platform has many wonderful qualities, but easy interoperability with other platforms is not one of them. Do you want to simultaneously develop for both native mobile and the web? Or use an awesome library in your web app, but it’s written in C++? Well… you can. Almost. Maybe. Sometimes. Sort of. Many disclaimers and restrictions apply. But what will it take for the answer to just be “yes”?

This talk will dive deep into the world of native code on the web, compiling C++ into JavaScript, and look at the gaps that need to be filled. A number of intertwined topics will be touched on, including: Emscripten, PNaCl, pepper.js, JS VM and browser internals, web workers, nitty-gritty details of JavaScript and C++, multi-threaded programming, and the horror of memory models. All will be explained, as long as you’re willing to take the plunge.

Work thumb
Rating: Everyone
Viewed 502 times
Recorded at: May 28, 2014
Date Posted: July 7, 2014

MontageJS is an open source framework for building large single-page Web applications. The framework's unique component model can simplify frontend Web development and increase opportunities for code reuse. In this session, you will learn how to take advantage of the MontageJS component system to build modular Web apps that are easy to maintain as they grow. The presentation will illustrate how component-based composability strengthens frontend Web development.

Work thumb
Rating: Everyone
Viewed 561 times
Recorded at: May 28, 2014
Date Posted: July 7, 2014

Web applications do not require an over-arching framework to be organized and maintainable. In fact, an application with modules from all over the place can in fact be maintainable, understandable, and encouraged. Instead of subscribing to one framework that provides developers with an entire slew of unused or unneeded functionality, an architecture can be built from the ground up using small modules from a variety of different sources.

This kind of architecture is taking off in the Node community, and is starting to make its way in client-side javascript. This talk explores the differences between using a formal framework- like Ember, Backbone, Express, or Sails- and using a modular approach. Frameworks are not entirely out of the picture- there are a few examples of frameworks that encourage this kind of architecture by providing minimal structure in the right places. This talk will explore those frameworks, and the general ideas, benefits, and possible pitfalls of a modular architecture, from both the client and server-side perspective.

Work thumb
Rating: Everyone
Viewed 952 times
Recorded at: May 28, 2014
Date Posted: July 7, 2014

Comparing Angular, Backbone, Ember, Polymer and React.
We're all building a client-side framework. And they're all different implementations of the same stuff. I want to compare the approaches that popular frameworks take to solving these patterns. If they even try to solve them at all. I also want to include info about the custom framework that Yammer uses. It'll be illustrative to see how all of these have different approaches to the same set of patterns.

Work thumb
Rating: Everyone
Viewed 493 times
Recorded at: May 28, 2014
Date Posted: July 7, 2014

In 1980 the United States Department of Defense (DoD) released the equations and source code used to predict the positions of satellites around the Earth. These simplified perturbations models (SGP4) were originally written in FORTRAN IV and have since been ported to C++, Java, MATLAB, and Pascal. And now, with a JavaScript port, it's time to bring satellite tracking to the browser!

In this talk we'll learn how to use existing tools to calculate and plot realtime satellite positions on a map using Leaflet.js and satellite.js. Along the way we'll sneak in some orbital mechanics concepts, minus a lot of the hardcore math.

Perturbations, polar orbits, orbital eccentricity, Kepler's laws, orbital propagation, oh my!

We will also learn about the pitfalls of 2D map projections, and why a 3D projection is more accurate and intuitive. If there's time, we'll go one step further and build a 3D satellite tracker using WebGL.

Work thumb
Rating: Everyone
Viewed 431 times
Recorded at: May 28, 2014
Date Posted: July 7, 2014

Interactive art can be a powerful means to inspire conversations, creativity, and wonder among groups of people. It is now easier to build interactive and collaborative apps with JavaScript, and these features can be used for expressive works. I'll describe using JS to make web art, as well as installation and projection art. Because of web standards as well as browser performance improvements, you can make JS art that is accessible on a variety of platforms. The openness of the JavaScript community inspires the openness of creative coding in JavaScript, producing works that invite exploration, learning, and hacking.

Work thumb
Rating: Everyone
Viewed 347 times
Recorded at: May 28, 2014
Date Posted: July 7, 2014

NaN

Work thumb
Rating: Everyone
Viewed 343 times
Recorded at: May 28, 2014
Date Posted: July 7, 2014

We spend so much time building things that we sometimes forget that we're building for, and with, other complex human beings. Remembering that we are people first is the first step to making a positive shift in the way we treat each other.

Work thumb
Rating: Everyone
Viewed 327 times
Recorded at: May 29, 2014
Date Posted: July 7, 2014

Work thumb
Rating: Everyone
Viewed 355 times
Recorded at: May 30, 2014
Date Posted: July 9, 2014

How do you get the browser to render arbitrary HTML to a canvas? Sounds easy? We would beg to disagree.

While implementing an "HTML renderer" in pure JavaScript we will visit various areas of the modern browsers. Some ugly, some hacky, some really perverted, but definitely intriguing and powerful.

Work thumb
Rating: Everyone
Viewed 415 times
Recorded at: May 30, 2014
Date Posted: July 9, 2014

Ember, Angular, React, Polymer, and Backbone. Following in jQuery's footsteps, these projects (and others) are helping to drive some future APIs in the browser.

While they all get lumped into the category "Frontend MVC", an intimate look at each reveals they are quite different. These stark and subtle differences matter when choosing one for your project.

In this session, you'll see each project's sweet spot, and where each struggles. You'll get a healthy dose of code as we explore the primary APIs. You will walk away with a better understanding of the goals and intended use-cases for each project.

Work thumb
Rating: Everyone
Viewed 351 times
Recorded at: May 30, 2014
Date Posted: July 9, 2014

With the advent of the Web Audio API, processing audio signals is now possible in realtime within browsers. Let's take a look into what raw audio data actually is, the signal processing theory behind it, and practical implementations of analyzing audio using the Web Audio API. We'll see how effects processing, audio analysis tools, and DSP algorithms can be constructed, used, and shared all in JavaScript.

Work thumb
Rating: Everyone
Viewed 338 times
Recorded at: May 30, 2014
Date Posted: July 9, 2014

The current schedule for the completion of ECMAScript 6, the next version of JavaScript, dictates that the language specification be finished by the end of the second quarter of 2014. Most browser vendors have made informal commitments to have ES6 implemented by the end of the year. Over the last couple years, we've heard a lot about the many new features in ES6, along with the debate (and bickering) which has gone into its design. ES6 stands to be the most substantial change to JavaScript since ES4 (which didn't work out that great, as most users of ES5 are aware).

With this much change comes a lot of complexity. Many of the new features (like generators or proxies) are powerful, basic abstractions, and as such combine in complex (and potentially unexpected) ways. In many ways, a new version of JavaScript offers the possibility of returning us to the wild frontier days that JavaScript only recently left behind, with library and framework vendors each choosing their own combinations of features to build powerful (and complicated) architectures that can really only be understood on their own terms.

However, as a community we've learned a lot over the last half decade or so, and I think we've learned how to tackle this problem head on. I've come up with a strategy that I think would allow us to collaboratively get to a good place with ES6 relatively quickly. I'll go over this strategy and point to the areas where I think we ought to spend the most time to get the most positive results.

It's up to us -- as a community of designers, developers, and implementors -- to get out in front and provide tooling, documentation, and training that will help ourselves use these new features effectively, before folklore and superstition start to take root. And it's important to remember that finishing ES6 frees the JavaScript standards bodies to concentrate on ES7, where our feedback from using ES6 will help them refine what comes next.

Work thumb
Rating: Everyone
Viewed 440 times
Recorded at: May 30, 2014
Date Posted: July 9, 2014

Deployment shouldn't require a dozen orchestration steps and builds. Pushing your node.js app to run on a server should be as simple as running locally.

Work thumb
Rating: Everyone
Viewed 779 times
Recorded at: May 30, 2014
Date Posted: July 9, 2014

After building more and more rich and complex JavaScript apps at Airbnb, we started to see the single-page app approach break down. The language and environment barriers between our Rails server and fat client app caused code duplication and the lack of server-side rendering led to slow initial page load performance and SEO headaches.

The dream of a shared UI layer and reusable business logic led us to start experimenting with ways to bring these apps back to the server. We started by converting our mobile web site, a Backbone app, to also run on Node.js and Express, which led to the open-source Rendr library. Since then we've learned a lot and have begun to refine our understanding of "isomorphic JavaScript".

There are a wide range of approaches which might be considered "isomorphic" — an app could share just a few tiny modules of business logic, or just templates, or route definitions; or it might try to share the entire application code. The more code that is shared, the more abstractions have to be built to shim the differences between the very dissimilar environments of web browser and server, and the more complex and tightly-coupled the result will be.

This talk will give some broader context for isomorphic JavaScript, show some real world examples, explain common application patterns for isomorphic apps, and then dive into the open-source tools and libraries that you can use to build isomorphic apps: libraries like Handlebars and Superagent and build tools like Browserify and Esprima.

Work thumb
Rating: Everyone
Viewed 506 times
Recorded at: May 30, 2014
Date Posted: July 9, 2014

We live in a time of vast computational resources - many of us carry around in our pockets what just thirty years ago would have been considered a supercomputer. But it’s not just the hardware, these bite sized supercomputers run software using state of the art dynamic compilation techniques to deliver stellar performance without sacrificing flexibility.

While all of this may sound incredibly futuristic, many of us still program these Dream Machines with miserly techniques not far removed from the best practices of the 1960s.

We have cycles to spare, by investing some of them into immutable data structures our programs get new wonderful properties that enable us to design solutions at a much higher level of abstraction. Om is a new library I’ve created just to explore these possibities. While Om itself is written in ClojureScript, we’ll focus primarily on the big ideas present in Om all of which are easily portable to JavaScript.

Work thumb
Rating: Everyone
Viewed 379 times
Recorded at: May 30, 2014
Date Posted: July 9, 2014

We've been talking a lot about Web Components as a community. Encapsulation, templating, custom elements, polyfills: it's an exciting time to be a developer! (taco-button, anyone?) Before we create the next generation of soulless div tags, we should consider the role of semantics in shiny, new technologies. In this talk, we'll discuss web accessibility in a bleeding-edge way to illustrate that accessibility conversations don't have to be boring or old-school.

Work thumb
Rating: Everyone
Viewed 659 times
Recorded at: May 30, 2014
Date Posted: July 9, 2014

To most people in JS, functional programmers are perceived as academic hipsters raving about things like applicative functors, semigroup homomorphisms and Yoneda lemmas for no good reason except to make the rest of us feel stupid. And this is fair; there's no better way to make you feel pitifully mainstream than throwing category theory at you. Conversely, JS programmers tend to believe functional programming, therefore, can have no real world application because nobody in the real world has any idea what a Yoneda lemma is and they seem to be getting by just fine without it.

Except we aren't. We've been living in callback hell for almost two decades now, and no matter how many control flow libraries we submit to npm, things don't seem to be getting any better. And that's where functional programming comes in—turns out callbacks are just functions, and those academics in their ivory towers with their Haskell compilers actually encountered and solved these problems long ago. And now we can have their solutions in JS too, because of functional reactive programming. To demonstrate, I'll attempt to write a browser based game, from scratch, with ponies, using RxJS, everybody's favourite reactive library, live on stage in 30 minutes with no callback hell in sight. And we'll be finding out if this reactive stuff is all it's cracked up to be or not.

Work thumb
Rating: Everyone
Viewed 422 times
Recorded at: May 30, 2014
Date Posted: July 9, 2014

In this talk, we will explore the techniques necessary to design and build CommonJS modules that work both in node.js and the browser using Browserify. We will look at both the general techniques needed, as well as a specific implementation with the Twilio module (npm install twilio), which is currently being converted to work both in node (REST API + utilities) and the browser (WebRTC + VoIP).

Work thumb
Rating: Everyone
Viewed 496 times
Recorded at: May 30, 2014
Date Posted: July 9, 2014

Browser test automation can be intimidating leaving developers to spend their time manually testing browsers (many times in VMs) or opting to simply not test a range of browsers. Join John-David Dalton as he discusses browser test automation, removes the roadblocks/gotchas, and shows lots of awesome things you can do (code coverage, perf testing, tagging, & more).