18 April 2014

The Ruby Reflector

Topic

client-side

  Source Favicon
By Zeke of Heroku 1 month ago.
Email

Client-side JavaScript has a spaghetti-code legacy, but the language itself is not to blame. The lack of a legitimate dependency manager is what kept us in the jQuery-plugin copy-pasta dark ages for so many years. Thanks to npm, we're entering the front-end renaissance: the npm registry is growing like crazy, and the proliferation of modules designed to work in the browser is staggering.

Browserify is an amazing tool that makes node modules work in the browser. If you're …

blog.heroku.com Read
  Source Favicon
By Leigh Shevchik of New Relic over 1 year ago.
Email
  Source Favicon
Email

In one of our projects, we let the client-side ( JS) generate the id (using guid/uuid). It leads to interesting consequences. We no longer need to send the form data to the backend immediately. If we want, we can create the object on the client-side, give it a guid, keep editing it and then send it back to the server, with the guid. The server stores the guid and uses it for identification. The same can happen at the same time from another Ruby client that connects to the same API.

This …

andrzejonsoftware.blogspot.com Read
  Source Favicon
By Jacob of Heroku 6 months ago.
Email

…on the server side (your dyno) and sent via a WebSocket connection to the client. Client-side JavaScript running in your browser updates the DOM every time a new value is received. This is a very simple example meant to demonstrate the most basic WebSocket functionality.

Next we'll look at a more interesting example of what you can build with WebSockets.

WebSocket Geolocation App

The map below uses WebSockets and the browser Geolocation API to plot a point for every …

blog.heroku.com Read
  Source Favicon
By Holly of Blog | The Working Group 8 months ago.
Email

Client-side web applications present interesting software design challenges and I think Angular.js introduces powerful concepts to address these challenges. Through Dependency Injection, two-way bindings and modular components Angular allows us to build powerful, maintainable and most importantly testable web applications. As with any new technology, using Angular presents it's own set of challenges. The documentation needs some love and it can take a while to understand how to use …

blog.twg.ca Read
  Source Favicon
By Giles Bowkett of Giles Bowkett 1 year ago.
Email

This is not an adaptation of MVC for the world of client-side JavaScript apps. It's an adaptation of Rails's "we call it MVC but it's really M-T-(PHP-ish)" structure instead. But Ember re-uses this structure without the benefit of Ruby, which provides many powerful and unique mechanisms that make it possible for Rails to do convoluted things internally yet still emerge with very elegant developer APIs. JavaScript does not have that elegance, and although …

gilesbowkett.blogspot.com Read
  Source Favicon
By John Resig of John Resig over 1 year ago.
Email

…application in such a way that content is never being dynamically constructed from strings inside my client-side JavaScript. If I were to do that I would use a template and put the template directly into the HTML of my page, using something like my JavaScript Micro-Templating solution.

I consider it to be especially important that you try to avoid having any translatable strings in your JavaScript or CSS files as those files you'll want to heavily cache and likely put …

ejohn.org Read
  Source Favicon
By Patrick of Kalzumeus Software over 1 year ago.
Email

Scheduling Issues ( Client-side): I had about three-ish weeks of availability this year where I intended to be doing consulting work, but didn't end up billing anybody, because I didn't move engagements through the pipeline fast enough. (That would be a decent-sized hit if I were a traditional consultant, who generally aim for about 35 weeks of work in the year, but since I generally shoot for about ten-ish...) In the future, I'm going to revise the proposal-and-present-contract …

kalzumeus.com Read
  Source Favicon
On Alex R. Young over 1 year ago.
Email

Ajax exploded, JSONP became the norm, client-side JavaScript evolved from something evil to exciting and finally accepted. jQuery rules the roost. There are those working to break client-side scripting into smaller, more manageable libraries -- the Component and Ender spring to mind.

XML RPC is now largely regarded as a painful corporate technology, while RESTful JSON APIs are far more common on the contemporary Web.

Authentication has been democratised …

alexyoung.org Read
  Source Favicon
By Joey of Global Nerdy over 1 year ago.
Email

…trying to solve, copy-and-pastes it, and then tweaks it as needed. I get the feeling that a lot of client-side JavaScript is coded this way. This is one of the reasons I insisted that the FizzBuzz exercise be done on paper rather than with a computer.

Overspecialization: It could be that some candidates have simply been writing the same kind of program over and over, and now do their work "on autopilot". I've heard that FizzBuzz is pretty good at catching this sort of …

globalnerdy.com Read