24 April 2014

The Ruby Reflector

Topic

jQuery

  Source Favicon
By miraculous1 of mir.aculo.us 11 days ago.
Email

That cool new jQuery plugin

A custom-designed font

Multiple load-balanced "webscale" servers

All these things create the illusion of making things easier when in reality they create very complex dependencies and will be very hard to remove later if they don't turn out to be the silver bullets they promise to be. This doesn't mean these things are bad or evil. You may want some of them later, when your app grows.

Remember, keep it simple and don't over-engineer. …

mir.aculo.us Read
  Source Favicon
By Dan Tello of Viget.com Blogs 16 days ago.
Email

…your package.json file. Now you can require('jquery') in any file that needs it. The jQuery object gets exported locally to var $ , instead of globally on window . This was especially nice when I built a script that could live on unknown third party sites that may or may not already have another version of jQuery loaded. The jQuery packaged with my script is completely private to the js that requires it, eliminating the possibility of version conflict issues.

The Power of …

viget.com Read
  Source Favicon
By Techy Help of Videos related to 'Ruby on Rails demo' 1 month ago.
Email

Should I Learn Node.js or Ruby on Rails?

Should I learn Node.js or Ruby on Rails?

Node.js is a concurrency library written with JavaScript, a language from which many web-browser apps are written. Node.js is a natural progression if you're already familiar with JavaScript or jQuery.

Why is Ruby on Rails popular?

Ruby on Rails was used for developing a lot of HTTP served applications in Silicon Valley. It became synonymous with the web startup in California.

youtube.com Read
  Source Favicon
Email

…in integration test helpers that worked for most of our needs and we used jQuery to augment them in our expectations. The specs were fast enough that we could test small details in the interface that we might otherwise want to omit. Being able to test all the UI interactions gave us a lot of faith in our codebase. describe 'Navigating SEM Campaigns', -> before -> App.DailyStat.FIXTURES = [ { id: 1 clicks: 11 } { id: …

robots.thoughtbot.com Read
  Source Favicon
By Todd Hoff of High Scalability 2 months ago.
Email

Virginia with a smaller team in Dublin, Ireland.

In general the technology in use are Java 1.6, JavaServer Pages, Tomcat 5.5, Apache 2.2, CentOS 5, Git, Jenkins, Selenium, and jQuery 1.5 . There are some other technologies which are used outside that stack, but these are the main components.

Design Principles

highscalability.com Read
  Source Favicon
By Chris Manning of Viget.com Blogs 3 months ago.
Email

Nate Hunzaker wrote Transport , a small (2kB) and simple jQuery plugin for moving HTML at matching media queries.

How it Works

Transport uses matchMedia (with a polyfill included for older browsers) to check for predetermnined breakpoints. When a match is found, the HTML is appended to the specified destination for that breakpoint.

HTML <main id="main"></main> <footer id="footer"></footer> <aside id="sidebar">

viget.com Read
  Source Favicon
On ZURB 3 months ago.
Email

…a " Choose Your Own Adventure " book. We've added a drop-in jQuery $ selector replacement called big S, which is up to 20% faster! Watch out for an imageLoaded event that we've added. We even placed a throttle and debounce method to prevent events from happening more than they should. There are some other shiny utilities included, and you can check them out in the docs. Added bonus: we've created an option to let you set a custom namespace, in case conflicts …

zurb.com Read
  Source Favicon
Email

AJAX requests start and hidden when AJAX requests complete. To do this globally in jQuery: jQuery.ajaxSetup({ beforeSend: function(xhr) { $('#spinner').show(); }, // runs after AJAX requests complete, successfully or not complete: function(xhr, status){ $('#spinner').hide(); } });

What's next?

There is no official documentation on jQuery.active , since it's an internal variable, but this Stack Overflow answer is helpful. To see …

robots.thoughtbot.com Read
  Source Favicon
By Assaf Arkin of Labnotes 3 months ago.
Email

Why I'm Breaking Up with jQuery and Getting Back Together with PHP . More epic Jenn $chiffer. Money quote:

This was simpler than one would expect, as PHP is basically like Node except wrapped in question marks

Growing Pains

Why The Haters are Wrong About Growth Hacking . Growth Hacking got a reputation for being douchy, but it has its place:

If your startup isn't committed to growth hacking you'll never find extra-ordinary growth. You can …

blog.labnotes.org Read
  Source Favicon
On ZURB 4 months ago.
Email

To solve all this, the answer was clear as a spring Himalayan sky: Foundation 5 uses jQuery 2. In addition to better speed and industry acceptance, jQuery 2 benefits from better documentation and support as well. jQuery is API compatible.

But we assumed Zepto would be faster than jQuery. We didn't want to make the same assumption twice, so we tested Zepto vs. jQuery 2. The result: jQuery 2 has more operations per second. That gives Foundation 5 better performance, …

zurb.com Read