Skip to main content

Posts

Showing posts from May, 2012

ES6 101 - Map

ES6 101 - Map
ES6 Map is the topic of today’s post which also is the 11th in the ES6 101 Series. Map is going to be fairly easy, so before jumping into it, if you want to look at other features we have covered so far, here is a quick list for your reference.Fat Arrow FunctionsLexical Declarations - LetLexical Declarations - ConstSpread OPeratorTemplate LiteralRest OperatorDefault parametersDestructuringFor…ofSetNow let’s see what Map has to offer. As opposed to Set (which by the way, I highly recommend reading), Map saves values as key-value pair. Let’s see for ourselves how this works!Example of ES6 Mapvar dummyMap = newMap(); dummyMap.set("1"); // Method is set as against add in ES6 Setconsole.log(dummyMap); // [["1",null]] dummyMap.set("1", "one"); console.log(dummyMap); // [["1","one"]] dummyMap.set("2", "two").set("3","three"); console.log(dummyMap); // [["1","one&…

Google Maps - Political Wars

"With Great Power Comes Great Responsibility"     Remember these words from Uncle Ben to Peter Pan? Such is the case with Google Maps. Being one of the world’s leading online web mapping service means also trying to walk the impossible tightrope between the political bickering of countries. On several occasions, Google has found itself at the receiving end of the anomalies involving the geopolitical delineations and labels shown in Google Maps and Google Earth. Google's representation of the country borders and labels, and the interpretation of the same has caused many a political argument still date.

    Google has now raised the ire of Iranians over its refusal to label the waters between Iran and the Arab Gulf states on Google Maps. Iranians call this gulf the Persian Gulf while Arabs have named it the Arabian Gulf. The government of Iran is now threatening to escalate the situation through a litigation against Google for removing the label. Typing in a search on …

Facebook Social Plugins

Social Plugins are the easiest way to get started with the Facebook Platform. Social plugins let you see what your friends have liked, commented on or shared on sites across the web. The social plugins are embeddable social features that can be integrated very smoothly in your site with as less as a single line of HTML. The major advantage of these social plugins, is that they are personalized for all users. Wondering how this happens? This is because, these social plugins are hosted by Facebook, making the user experience very personal, even if the user is visiting your website for the first time.

    Starting tomorrow, we will be looking at several social plugins and most importantly the codes that make these plugins work. Some of the social plugins that we will look at will include - the Like button, Send button, Subscribe button, Comments, Activity feed and many more.

    The like button below is the most basic social plugin and we will start with the code for this one tomorr…

New & Social begining...

Facebook - the fastest growing social network with more than 100K new users per day! With 50% of the registered users coming back to the site everyday, the site boasts to be the 6th most trafficked site in the U.S. With users sharing their photos, statuses, events and more, you have a social graph of connections through which people communicate and share. Facebook launched their API back in 2007 and provided developers with deep access to Facebook's millions of users. Facebook platform enables you to make your website more social and I will try and help you all by sharing simple and complex code snippets. So, after Google Maps API, its now time to dive into the social world of Facebook!

    What does this mean? Will I stop sharing code samples based on Google Maps API? NO...NO...NO...Not at all. I will continue to share code samples based on Google Maps API, as there is so much more that I have got to share with the community.

    Hope you all love the Facebook API examples c…