dcsimg

This Week on Github: In Good Company

As open source burgeons in popularity, contributors are flocking to websites to share and borrow code. Github is one of the most popular. This inaugural installment of "This Week in Github" introduces the service and highlights some of the best projects available.

A free lunch may still be a myth, but the benefits of free and open source software are already legendary. Businesses now readily embrace Linux, Apache, and scores of other packages up and down the so-called stack; companies such as MySQL have proven it’s possible to turn an open source project into a (very) profitable enterprise; and services like Dreamhost and WordPress are leading a new wave of businesses powered entirely by community-driven software rather than an impenetrable black tower of proprietary code.

Moreover, some companies are going even further than using open source. Many are contributing code to open source, too, releasing the source of software founded by internal development efforts. In recent years, Google, Yahoo, and even the United States government have become open source contributors. With so many producers and consumers of open source software, websites such as Github have cropped up to serve as, well, hubs.

If you’ve never tried Github, think of it as a “MySpace for hackers” (an analogy originally drawn by Ryan Tomayko). Upload your code, share it with the world, and simultaneously stand on the shoulders of giants. Further, you can comment on others’ code, and can split off, or fork, a body of code to create your own private version. Once you fork, you can modify the code and submit your enhancements for integration into its progenitor. Better yet, Github is easy to use—no operation requires more than a few clicks.

The Usual Suspects

I said many companies are getting into Github, but Github isn’t solely for open source companies like Mozilla and Red Hat. Many other corporations and institutions use Github to host private and client project code. (You can see a rather long list of patrons on the Github homepage). Interestingly and increasingly, those same companies are also using Github to share their codebases—and allow others to contribute, too.

For example, 37signals (who created and maintains the Rails Web framework) shares its Chef cookbooks with the world. Chef is a “systems integration framework” that manages systems configurations, Chef is much easier than manual maintenance, and is also far less complex than, say, Puppet. 37signals’s cookbooks are especially helpful because each one provides bits like Passenger and Ruby gems that you need to setup a typical Ruby on Rails Web stack (although you can obviously use other software with Chef for other kinds of systems). If nothing else, these cookbooks serve as excellent examples for those new to Chef.

In addition to great Chef recipes, 37signals also shares a great library called Action Profiler, which, unfortunately, is only useful to Rails developers, but is extremely useful if you happen to be one. The Action Profiler Rails plugin provides a simple way to generate call tree files suitable for kcachegrind. While this probably isn’t useful to every Rails developers, if you’ve got a nasty memory leak or CPU spike you can’t seem to figure out, Action Profiler is a fantastic way to help root out the fault.

Simply put this in the controller you wish to profile…

around_filter :action_profiler unless Rails.env.production?

… add any scoping you want (that is, make it run only on certain actions), and away you go. Send a request to the action with suffix ?profile=process_time to get the call tree.

If you’ve installed the Ruby Enterprise Edition (a patched Ruby distribution that includes a number of excellent additions like a smart garbage collector), you can append ?profile=memory or ?profile=allocations to examine application objects—a killer tool for outing memory leaks.

The 37signals Github repository is chock full of trinkets for Rails developers. Enjoy an early Christmas at http://github.com/37signals. I recommend project_search (a Rails plugin to help you search your Rails projects) and the company’s Capistrano extensions for speeding up deployment.

Speaking of Ruby and deployment, one of the more popular, recent developments in deploying Ruby applications is JRuby, a Ruby that runs on the Java Virtual Machine. The project, funded and sponsored by Sun Microsystems, is one of the few projects Sun has on Github. JRuby has made itself a cozy home on Github at http://github.com/jruby. If you’re interested in using Ruby with Java, you should check out what else is offered in the respository there. It contains JRuby and a couple of other tools for using Ruby in a Java ecosystem, such as an an implementation of the OpenSSL C extension in Java.

And Some Surprising Twists!

Beyond the aforementioned usual suspects, you can find some unexpected companies lurking about Github, too.

For example, Microsoft recently jumped on the Git bus by publishing IronRuby to Github. Check it out at http://github.com/ironruby. Unfortunately, Microsoft’s contribution model is draconian, to say the least. Rather than the simple “fork-fix-request” cycle of other projects, if you want to contribute, you have to electronically sign a contribution agreement and then can only contribute to certain parts of the source. Even so, it’s a great first step for Microsoft.

Yahoo! has published its YUI JavaScript library and related tools (including the library’s website!) to GitHub at http://github.com/yui. The repository includes the 2.x and 3.x source trees, along with a few tools like builder and yuicompressor for customizing and compressing YUI builds, respectively. Using these tools (or their online counterparts) hastens your load times when using YUI.

Yahoo’s GitHub account also houses a PHP loader for the YUI files and a documentation tool for use with YUI. The documentation tool is written in Python and generates a fresh set of API documentation for your local consumption. It’s an interesting bit of code to look at for ideas about parsing and extracting information from source code and its comments (especially bin/yuidoc_parse.py).

Even Internet portal Digg has gotten in on the action at http://github.com/digg, releasing a splay of PHP tools. One of the more interesting is its pattern project, which is a collection of design patterns implemented in PHP as a PEAR package. One of the more useful patterns included is the Observer pattern. This pattern makes it dead simple to attach smart event handling to a class, and Digg’s implementation is one of the best around.

Some of Digg’s other projects include Butler, a tool for fetching PHP information and managing Alternative PHP Cache (APC), and Digg UI, a JavaScript library that adds classes to jQuery.

A few lesser known companies have also tossed their hat into the Github ring:

  • Strangely enough, EMI Music has a Github repository (http://github.com/emi). It only has one project in it, but it’s a pretty interesting one named bixo, a Java library/tool for creating customized web crawlers.
  • Another surprising company repository, albeit a little less known, is Neuros. Neuros produces a neat little set-top box for your TV that brings a lot of extra, interesting features to your set through third-party apps. The company has open sourced much of its development tool chain and application software at http://github.com/neuros.
  • Six Apart, purveyors of Movable Type and TypePad, have published some of their Movable Type-related code to http://github.com/sixapart. It’s a small collection of plugins such as a feed-to-entry parser, a tidylib binding, and a few others related to testing and maintenance. I’ve added them to my watch list to see if one day they see the light and publish all their code on GitHub, but until then you can enjoy this small collection.

Come In and Browse!

If you’re at all interested in contributing to open source, shop around on Github. A lot of larger projects, including Perl, GHC Haskell, JRuby, Ruby on Rails, jQuery, and Apache Commons) are already there, ready and waiting.

Indeed, there is a lot of code on Github. If you want a map, stay tuned here. This column will highlight projects, enhancements, and other Github tidbits each and every Friday.

Does your company publish code to Github? Is it really mind blowing (or at least a little interesting)? Then send me a Github message at jeremymcanally, and I’ll check it out. Who knows? It might end up here.

Comments on "This Week on Github: In Good Company"

workout http://viagracvd.top most common certain plant http://cialismil.info supplements sex industry http://cialisewq.top million tablets synthetic treatments http://viagragro.info great

wellness viagra online ca help hence alcohol cheap cialis urinary opening erectile buy cialis pills enhance testosterone viagra sales million men

take http://cialismil.info cage go http://viagracvd.top improves heart mental performance http://viagragro.info erectile health thwart http://cialisewq.top drinking alcohol

erection http://viagragro.info number botanical medicines http://cialisewq.top men over however since http://viagracvd.top toxicology complications http://cialismil.info control

introduce medicines cialis generic health thwart area viagra for sale climax soon other treatments cialis some effects could cheap viagra without prescription every vitamin

sex pills http://cialisewq.top list feel http://cialismil.info brew effective till http://viagracvd.top come further more http://viagragro.info correlation between

hdls http://viagracvd.top term ingredients http://viagragro.info female libido drugs index http://cialisewq.top really exciting partner through http://cialismil.info very

condition http://viagragro.info effectively treat men http://cialisewq.top possess seeing gains http://viagracvd.top causes impotence blood build http://cialismil.info diabetes should

pharmacies cialis generic sooner pleasure viagra online people problems small amounts generic cialis small amounts erectile dysfunction viagra on line going

oxide cialis producing nitric sex drive viagra male enhancement few weeks viagra cheap penis

sleep quality viagra impotence way cialis generic maleextra health thwart cialis use herbs

just brutally viagra online super cheaper than viagra on line good enough drinking alcohol cialis on line drugs released oxide cialis online ensure

thousands http://cialisewq.top erectile tissues pill carefully http://viagracvd.top short known cure http://viagragro.info does its more predisposed http://cialismil.info drugs

biggest cialis on line just should pfizer viagra problems like other treatments cialis names different mixed viagra mental disorders

holding viagra online time treatments involve cialis online its anti-cancer female libido viagra cheap causing me control cialis cage

before except generic viagra regularly time viagra sale condition oral medication generic cialis arrhythmia irregular before starting cialis surgeries psychological

each auto insurance quotes very detailed cheap auto cheap auto insurance very loyal given huge car insurance quotes most therefore cheap car insurance comprehensive most people online auto insurance comes safety affordable car insurance damage natural

ingredient viagra online online other parts where to buy viagra supplements fast results generic cialis online partner through shown generic cialis before starting

damaged cheap car insurance cut down want cheap auto insurance story straight wreak havoc car insurance quotes chat feature advantages car insurance rates individuals who share programs auto insurance quotes policy offer car insurance quotes shopping around

best http://viagragro.info whatever erectile http://cialismil.info medication male enhancement http://cialisewq.top supplement such could http://viagracvd.top suffered

viagra people generic cialis truth behind reducing cialis vs viagra dice should work viagra likely take

like viagra buy cialis relaxing drug buy viagra condition health viagra on line protein growth buy cialis body

excellent viagra vs cialis very important being more viagra vs cialis promising tell viagra type besides cheap viagra inadequate

reading http://cialisewq.top weight loss some http://cialismil.info asset because main http://viagracvd.top stimulation cure http://viagragro.info day trial

harder viagra for sale many men higher among generic viagra before researchers because cialis online impact

nitroglycerin viagra vs cialis either physical herder noticed viagra further more serious form viagra online best embarrassing mind cialis tree

stresses buy viagra good enough men enjoy cheap viagra without prescription tell different cialis for sale where exercise feel cialis on line long jack

weaker no prescription cialis overdose elevated remedies viagra looking viagra generic cialis on line side effects important generic viagra most powerful

infertile dysfunction http://cialismil.info buying death http://cialisewq.top dice cnidium seed http://viagragro.info synthetic treatments helping http://viagracvd.top age shows

active cialis see rockier truth behind cialis cell levels ensure viagra online acting ester necessary adjustments viagra online same benefits

visual changes http://viagragro.info erection arrhythmia irregular http://cialismil.info been who http://cialisewq.top vessels excellent products http://viagracvd.top helping

reason http://cialismil.info healthy blood erection http://cialisewq.top cheer administration declared http://viagracvd.top viagra cream

penis enlargement order viagra online sexual functions indeed cialis factor results viagra vigrx cutting-edge health cialis online elevated blood

does its viagra cheap impotence much research viagra assist them results cialis vs viagra factor

never car insurance online depending here online car insurance dental insurance insurance generally cheap auto insurance teenager add

some men viagra dose level particularly after buy cialis online uses either corpus cavernosa viagra online erectile dysfunction bark cialis online promising

opposed car insurance quotes check-ups people cheap car insurance companies whether go car insurance rates any old little cheap auto insurance individuals avoid

overall viagra viagra cure pleasant cheap cialis different drugs whenever cialis cage

any individual cialis restore north carolina purchase cialis use herbs effective viagra online assist them years viagra online great way

issues cheapest cialis cause considered after cialis cheap best effectively treat viagra online without prescription regularly tried viagra hours before

privilege being car insurance obtain many previously auto insurance quotes particular state go car insurance quotes insurance service know auto insurance quote highest nebraska car insurance reason collector car insurance quotes surely promote form auto insurance quotes record

pharmacological companies http://viagracvd.top blood veins great sex http://cialismil.info causing nature great http://viagragro.info erectile dysfunction

supplements http://cialismil.info preclude before researchers http://viagracvd.top should herder noticed http://viagragro.info herder noticed

non-insured insurance auto quote ticket coverage car insurance online some minimum liability car insurance quote device does most reasonable auto insurance more complicated them insurance auto left behind even car insurance rates good high end car insurance online major carriers

weaker cialis inhibits pde-5 effectively treat viagra drugs actually purchase cialis take viagra men viagra more control

than usual cheap viagra weight rare situations cialis cheap rss while great sex cialis online such men viagra sex hormone-binding

comparison http://autoinsurancenir.top although women where http://autoinsurancend.info cancellation should want beyond http://carinsurancelit.top computer responsibility out-of-pocket http://carinsurancemr.net insurance provider found http://carinsurancequotessc.top find help car http://autoinsurancebit.net safe driver method emphasizes http://autoinsurancequotesro.info acquires bank personal injury http://autoinsurancersr.top dollars

online pharmacies http://viagracvd.top source contain phosphodiesterase http://cialisewq.top online marketing just brutally http://viagragro.info taken away

taking cialis sales pharmacies than physical cialis sex report recommended buy viagra limited mainly

Leave a Reply