visualizing your business data... in minecraft!

16
Visualizing Your Business Data... in Minecraft! Pat Patterson Developer Evangelist Architect [email protected] @metadaddy

Upload: salesforce-developers

Post on 29-Jun-2015

225 views

Category:

Technology


1 download

DESCRIPTION

What if there were a low-cost, widely available visualization app that allowed you to explore and interact with your data in 3D? While building Minecraft mods with his kids, Pat Patterson realized that he could generate whole worlds from data in a Salesforce org, use push notifications to modify the world in real-time, and even have actions in the virtual world generate API calls to update that data. Join us as Pat explains the workings of Forcecraft, and argues that great things happen when developers cut loose and have some fun!

TRANSCRIPT

  • 1. Visualizing Your Business Data...in Minecraft!Pat PattersonDeveloper Evangelist [email protected]@metadaddy

2. Safe HarborSafe harbor statement under the Private Securities Litigation Reform Act of 1995:This presentation may contain forward-looking statements that involve risks, uncertainties, and assumptions. If any such uncertainties materialize or if any ofthe assumptions proves incorrect, the results of salesforce.com, inc. could differ materially from the results expressed or implied by the forward-lookingstatements we make. All statements other than statements of historical fact could be deemed forward-looking, including any projections of product or serviceavailability, subscriber growth, earnings, revenues, or other financial items and any statements regarding strategies or plans of management for futureoperations, statements of belief, any statements concerning new, planned, or upgraded services or technology developments and customer contracts or use ofour services.The risks and uncertainties referred to above include but are not limited to risks associated with developing and delivering new functionality for our service,new products and services, our new business model, our past operating losses, possible fluctuations in our operating results and rate of growth, interruptions ordelays in our Web hosting, breach of our security measures, the outcome of any litigation, risks associated with completed and any possible mergers andacquisitions, the immature market in which we operate, our relatively limited operating history, our ability to expand, retain, and motivate our employees andmanage our growth, new releases of our service and successful customer deployment, our limited history reselling non-salesforce.com products, and utilizationand selling to larger enterprise customers. Further information on potential factors that could affect the financial results of salesforce.com, inc. is included in ourannual report on Form 10-K for the most recent fiscal year and in our quarterly report on Form 10-Q for the most recent fiscal quarter. These documents andothers containing important disclosures are available on the SEC Filings section of the Investor Information section of our Web site.Any unreleased services or features referenced in this or other presentations, press releases or public statements are not currently available and may not bedelivered on time or at all. Customers who purchase our services should make the purchase decisions based upon features that are currently available.Salesforce.com, inc. assumes no obligation and does not intend to update these forward-looking statements. 3. Pat PattersonDeveloper Evangelist Architect 4. Why Minecraft?Cheap ($26.95!) 3D EngineJavaVast community of developers (modders)Plugin Architecture (via Forge etc)Access to source code (kinda)Its fun!Image used under CC-BY-NC. Attribution: Orthotope on minecraft.gamepedia.com 5. Getting Started Prerequisites: Java JDK 6 or 7 An 8-15 year old helper (optional, but recommended!) Buy, download, install Minecraftminecraft.net/store/minecraft Download, install Forge (src build)www.minecraftforge.net/wiki/Installation/Source Follow some tutorialswww.minecraftforge.net/wiki/TutorialsImage used under CC-BY-NC. Attribution: Ventury on minecraft.gamepedia.com 6. A Blast from the Past: Client-Server!One Minecraft server may supportmany clientsServer maintains world state for all playersClient renders world for a playerImage used under CC-BY-NC. Attribution: BarracudaATA on minecraft.gamepedia.com 7. Modding Options Server-only+ Allows unmodded (vanilla clients)- Cant add blocks, items Client-only+ Can customize graphics- Cant add blocks, items Client+server+ New blocks, items, graphics go nuts!- Both client & server need the modImage used under CC-BY-NC. Attribution: Jackbro123 on minecraft.gamepedia.com 8. Going Beyond the BasicsCalling Web APIsPick your favorite Java HTTP clientModify Forges build.gradle to create anuber-jarUse the Gradle Shadow plugin to shade your externaldependencies github.com/johnrengelman/shadowImage used under CC-BY-NC. Attribution: BarracudaATA on minecraft.gamepedia.com 9. Forcecraft What if I generated an entire dimensionbased on account data from Salesforce? Neuromancers Cyberspace github.com/metadaddy-sfdc/Forcecraft 10. Eye Candy!!!Image used under CC-BY-NC. Attribution: BarracudaATA on minecraft.gamepedia.com 11. Code 12. APIs in Play OAuth 2.0 Resource OwnerPassword Credentials Grant Username/password Force.com REST API /services/data/v31.0/query?q=SELECT+ /services/data/v31.0/sobjects/Account/ Force.com Streaming API new BayeuxClient(salesforceStreamingEndpoint(endpoint),transport);Image used under CC-BY-NC. Attribution: BarracudaATA on minecraft.gamepedia.com 13. An Alternate DirectionMinecraft Pi Edition pi.minecraft.net Similar to early versions of Pocket Edition (Android/iOS) API included! Python, Java client libs bundled Ruby, Node.js and more from community Real world / game world interaction via Raspberry Pi GPIOpins bit.ly/rpi-mcImages used under CC-BY-NC. Attribution: Majr on minecraft.gamepedia.com 14. Hardware!Image used under CC-BY-NC. Attribution: BarracudaATA on minecraft.gamepedia.com 15. ResourcesMinecraft minecraft.net Minecraft Forge www.minecraftforge.netModding Tutorials www.minecraftforge.net/wiki/Tutorials Forcecraft github.com/metadaddy-sfdc/Forcecraft Minecraft Pi Edition pi.minecraft.netImage used under CC-BY-NC. Attribution: BarracudaATA on minecraft.gamepedia.com 16. Thank You!Image courtesy of Alex Patterson (age 10)