Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Straight from the Source

Straight from the Source

Reading the source code - it's one of those things every developer knows they should do, but most never get around to. Although many of our applications thrive off of open source software today, how often do we go through the source code of projects we use or want to use?

While many developers only dare to read source when available documentation just isn’t enough, even for those perfectly documented libraries, gems, and frameworks, reading the source code has huge benefits. It not only gives us a better understanding of how the code behaves, it changes how we think about and write our code. In this talk we’ll start leveling up our programming skills by dissecting some source code.

Rushaine McBean

June 14, 2013
Tweet

Other Decks in Programming

Transcript

  1. $("#searchFSVenue").click(function(){ var value = $("input").val(); $("#venues").html( " "); $.ajax({ url:

    "https://api.foursquare.com/v2/venues/search?ll="+userLat+","+userLng+ "&query="+ value + oauth_token + "&v=20120426", crossDomain: true, dataType: "jsonp", type: "GET", success: function(data){ console.log(data); var list = $('<ul></ul>'); var latPos = []; var lngPos = []; var locDetails = []; for(i=0;i<data.response.venues.length;i++) { console.log(data.response.venues[i].name); var item = data.response.venues[i].name + " " + data.response.venues[i].location.address + " " + "Here Now: " + data.response.venues[i].hereNow.count + " Checkin History: " + data.response.venues[i].stats.checkinsCount + " Users Who've Been Here " + data.response.venues[i].stats.usersCount ; var listItem = $('<li></li>'); listItem.html(item); list.append(listItem); } //$("#venues").append(list); for(i=0; i< data.response.venues.length;i++) { var lat = data.response.venues[i].location.lat; var lng = data.response.venues[i].location.lng; var details = data.response.venues[i].name + " " + data.response.venues[i].location.address + " " + data.response.venues[i].location.city + " " + data.response.venues[i].location.state + " " + "Here Now: " + data.response.venues[i].hereNow.count + " Checkin History: " + data.response.venues[i].stats.checkinsCount + " Users Who've Been Here " + data.response.venues[i].stats.usersCount; 25 Friday, June 14, 13