Recently, released a neat tool that makes the process of developing and testing your JavaScript a bit easier. Interested in learning more? Watch today’s quick tip to find out
I’m curious; is this something that you’ll use in your daily coding? I’m still not sure, myself. Let us hear your thoughts in the comments!
Source link
Blog News
Writing an API Wrapper in Ruby with TDD
Sooner or later, all developers are required to interact with an API. The most difficult part is always related to reliably testing the code we write, and, as we want to make sure that everything works properly, we continuosly run code that queries the API itself. This process is slow and inefficient, as we can experience network issues and data inconsistencies (the API results may change). Let’s review how we can avoid all of this effort with Ruby.
Flow is essential: write the tests, run them and see them fail, then write the minimal implementation code to make them pass. Once they all do, refactor if needed.
24 Extremely Useful Ruby Gems for Development
One of the nicer things about developing on the Ruby platform is the sheer amount of meticulously categorized, highly reusable code wrapped up in the form of aptly named gems’.
I’m sure you’ve heard of popular frameworks like Sinatra or the super popular Rails that ship as gems but you’re missing an entire spectrum of others that handle issues at a much lower level. Start using these and watch your productivity shoot through the roof!
CarrierWave
Upload files in your Ruby applications, map them to a range of ORMs, store them on different backends. It works well with Rack based web applications, such as Ruby on Rails.
Related reading
Kaminari
Kaminari is a Scope & Engine based, clean, powerful, customizable and sophisticated paginator. Kaminari supports multiple ORMs (ActiveRecord, Mongoid, MongoMapper) multiple web frameworks (Rails, Sinatra), and multiple template engines (ERB, Haml).
Related reading
HAML
Haml (HTML Abstraction Markup Language) is a layer on top of XHTML or XML that’s designed to express the structure of XHTML or XML documents in a non-repetitive, elegant, easy way, using indentation rather than closing tags and allowing Ruby to be embedded with ease. It was originally envisioned as a plugin for Ruby on Rails, but it can function as a stand-alone templating engine.
Related reading
Authlogic
A simple, unobtrusive model based Ruby authentication solution. Authlogic is very flexible, it has a strong public API and a plethora of hooks to allow you to modify behavior and extend it.
Related reading
Shoulda
Shoulda is a gem that allows you to create more understandable tests for your Ruby application. Shoulda allows you to provide context to your tests enabling you to categorize tests according to a specific feature or scenario you’re testing.
Related reading
factory_girl
factory_girl provides a framework and DSL for defining and using factories – less error-prone, more explicit, and all-around easier to work with than fixtures. It has straightforward definition syntax, support for multiple build strategies (saved instances, unsaved instances, attribute hashes, and stubbed objects), and support for multiple factories for the same class (user, admin_user, and so on), including factory inheritance.
Related reading
RMagick
RMagick is an interface between the Ruby programming language and the ImageMagick and GraphicsMagick image processing libraries.
Related reading
Cancan
CanCan is an authorization library for Ruby on Rails which restricts what resources a given user is allowed to access and is decoupled from user roles. All permissions are stored in a single location and not duplicated across controllers, views, and database queries.
Related reading
Nokogiri
Nokogiri is an HTML, XML, SAX, and Reader parser. Among Nokogiri’s many features is the ability to search documents via XPath or CSS3 selectors. Nokogiri parses and searches XML/HTML very quickly, and also has correctly implemented CSS3 selector support as well as XPath support.
Related reading
- 24 Extremely Useful Ruby Gems for Web Development
- Getting Started with Nokogiri
- Railscasts #190 Screen Scraping with Nokogiri
SASS
Sass makes CSS fun again. Sass is an extension of CSS3, adding nested rules, variables, mixins, selector inheritance, and more. It’s translated to well-formatted, standard CSS using the command line tool or a web-framework plugin.
Related reading
Formtastic
Formtastic is a Rails FormBuilder DSL (with some other goodies) to make it far easier to create beautiful, semantically rich, syntactically awesome, readily stylable and wonderfully accessible HTML forms in your Rails applications.
Related reading
Capistrano
Capistrano is a utility and framework for executing commands in parallel on multiple remote machines, via SSH. It uses a simple DSL (borrowed in part from Rake) that allows you to define tasks, which may be applied to machines in certain roles. It also supports tunneling connections via some gateway machine to allow operations to be performed behind VPN’s and firewalls.
Related reading
Omniauth
OmniAuth is a Ruby authentication framework that provides a standardized interface to many different authentication providers such as Facebook, OpenID, and even traditional username and password.
Related reading
Bundler
Bundler is a tool that manages gem dependencies for your ruby application. It takes a gem manifest file and is able to fetch, download, and install the gems and all child dependencies specified in this manifest. It can manage any update to the gem manifest file and update the bundle’s gems accordingly. It also lets you run any ruby code in context of the bundle’s gem environment.
Related reading
resque
Resque (pronounced like “rescue”) is a Redis-backed library for creating background jobs, placing those jobs on multiple queues, and processing them later. Resque is heavily inspired by DelayedJob.
Related reading
Jammit
Jammit is an industrial strength asset packaging library for Rails, providing both the CSS and JavaScript concatenation and compression that you’d expect, as well as YUI Compressor and Closure Compiler compatibility, ahead-of-time gzipping, built-in JavaScript template support, and optional Data-URI / MHTML image embedding.
Related reading
capybara
Capybara helps you test Rails and Rack applications by simulating how a real user would interact with your app. It is agnostic about the driver running your tests and comes with Rack::Test and Selenium support built in.
Related reading
Active Merchant
Active Merchant is an extraction from the e-commerce system Shopify. Shopify’s requirements for a simple and unified API to access dozens of different payment gateways with very different internal APIs was the chief principle in designing the library. It was developed for usage in Ruby on Rails web applications and integrates seamlessly as a plugin but it also works excellently as a stand alone library.
Related reading
eventmachine
EventMachine implements a fast, single-threaded engine for arbitrary networkcommunications. It’s extremely easy to use in Ruby. EventMachine wraps all interactions with IP sockets, allowing programs to concentrate on the implementation of network protocols. It can be used to create both network servers and clients.
Related reading
mustache
Inspired by ctemplate, Mustache is a framework-agnostic way to renderlogic-free views. As ctemplates says, “It emphasizes separating logic from presentation:it is impossible to embed application logic in this templatelanguage.
Related reading
Passenger
Phusion Passenger ” a. k. a. mod_rails or mod_rack ” makes deployment of Ruby web applications, such as those built on the revolutionary Ruby on Rails web framework, a breeze.
Related reading
Chef
Chef is a system integration framework designed to bring the benefits of configuration management to your entire infrastructure. With Chef, you can manage your servers by writing code, not by running commands.
Related reading
Azealia Banks Samples Birthday Girl Aaliyah In New Track Needsumluv
Azealia Banks Samples Birthday Girl Aaliyah In New Track Needsumluv
Someone notify Merriam-Webster pop stars have rebelled, four letters is too many, and love
Iggy Azalea Takes On Nicki Minajs Roman In Moscow
Azaleas on parade! Now that we’ve got a new Aaliyah-sampling track from Azealia Banks, it is only fitting to get one from Iggy Azalea as well, just to keep things as confusing and difficult to spell as possible.
In place of Aaliyah, Iggy found her inspiration in a more recent song, spitting her own rhymes over Nicki Minaj’s Pink Friday: Roman Reloaded track Roman In Moscow.
Who needs a wicked alter ego (Nicki’s Roman Zolanski) when your actual persona is so volatile? Iggy rides the original beat (produced by Street Runner and Sarom Soundz) with a hyperkinetic flow that recalls Nicki herself.
[soundcloud url=”https://api.soundcloud.com/tracks/33560409″ params=”auto_play=false&hide_related=false&show_comments=true&show_user=true&show_reposts=false&visual=true” width=”100%” height=”450″ iframe=”true” /]
Lana Del Rey is a cover girl
Lana Del Rey is all decked out like a 1960s starlet on the cover of the February issue of the Russian edition of Interview.
Lana Del Rey is a cover girl…in Russia! The “Video Games” singer — whose Saturday Night Live performance, whether good or bad, has got the Internet buzzing — is all decked out like a 1960s starlet on the cover of the February issue of the Russian edition of Interview. And speaking of buzzing, way to creep us out with the Irving Penn/Silence Of The Lambs homage, Lana. Glamor looks like a pain.
Obama for Fergie, Adam Levine Endorsement
Is Obama a huge Maroon 5, Glee, and Black Eyed Peas fan? Maybe, maybe not but he does want their endorsement on his 2012 re-election.
Is Obama a huge Maroon 5, Glee, and Black Eyed Peas fan? Maybe, maybe not but he does want their endorsement on his 2012 re-election. The Commander-in-Chief already has stars like Lady Gaga on his team, but that didn’t stop him from releasing a wish list of celebrities he’d like on board as he bids for a second term. Amongst names we might easily expect to find here, such as B. o. B., Jay-Z, and Alicia Keys, there are such diverse acts as Arcade Fire, Lady Antebellum, the Jonas Brothers, Janelle Monae, Ricky Martin, Regina Spektor, and Vampire Weekend.
Wonder Girls with School Gyrls In The DJ Is Mine
Wonder Girls were the first K-pop act to break the Hot 100 here in the States, with their single “Nobody” and now they’ve collaborated with School Gyrls on “The DJ Is Mine”.
Wonder Girls were the first K-pop act to break the Hot 100 here in the States, with their single “Nobody”. If your not sure, K-pop is a musical genre originating in South Korea that is characterized by a wide variety of audiovisual elements. Furthermore now they’ve collaborated with School Gyrls for a touch of “The Boy Is Mine”-like rivalry on “The DJ Is Mine”. Like School Gyrls before them, Wonder Girls are taking the Teen Nick course to celebrity. FOREVER (formerly known as School Gyrls), was an American girl group formed in 2008. They were signed to Nick Cannon’s NCredible Entertainment. (The Wonder Girls debuts February 2).
Billboard notes that Wonder Girls have been preparing more English music to accompany the soundtrack to their Teen Nick movie. The group told the publication last summer that they were working with songwriter Claude Kelly as well as Nick Jonas on material.
Lana Del Rey Added To SXSW 2012 Lineup
Less than two days after her deeply divisive debut SNL performance, word comes that Lana Del Rey is heading into the belly of the beast: she’s been added to the SXSW 2012 lineup.
Less than two days after her deeply divisive debut SNL performance, word comes that Lana Del Rey is heading into the belly of the beast: she’s been added to the SXSW 2012 lineup, which means the dusky Born To Die singer will perform for many of the tastemakers, music bloggers, advertisers and industry folk who have slammed her privately and publicly. We expect the Gangsta Nancy Sinatra will have more appearances under her belt by the time the Texas festival kicks off in March, but will it make a difference? See the other new additions to the lineup below.
In addition to Lana Del Rey, SXSW has added:
Little Boots (of Shake Until Your Heart Breaks fame)
Miike Snow (who’ll play “Devil’s Work” for sure, and maybe “Toxic” if you ask nicely)
The Ting Tings (who’ll show off Sounds From Nowheresville)
Kid Cudi WZRD Album Delayed
Say it ain’t so! Dismaying news for those awaiting Kid Cudi and Dot Da Genius’ WZRD album
Say it ain’t so! Dismaying news for those awaiting Kid Cudi and Dot Da Genius’ WZRD album you’ll have to keep waiting. Originally promised to drop by the end of this month, the disc is now roughly slated for February 28 release, according to a series of tweets by Dot Da Genius. We are in the final stages of mastering but we really had to take time and pay attention to the sonics as this is new territory for us,