{"id":1333,"date":"2012-01-18T01:10:00","date_gmt":"2012-01-18T01:10:00","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/visualstudio\/2012\/01\/18\/bring-some-game-to-your-code\/"},"modified":"2019-02-14T15:44:20","modified_gmt":"2019-02-14T23:44:20","slug":"bring-some-game-to-your-code","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/visualstudio\/bring-some-game-to-your-code\/","title":{"rendered":"Bring Some Game To Your Code!"},"content":{"rendered":"<p><a href=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2012\/01\/1033.clip_image001_5EDBAD44.jpg\"><img decoding=\"async\" class=\"alignleft size-full wp-image-222111\" src=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2012\/01\/1033.clip_image001_5EDBAD44.jpg\" alt=\"Bring Some Game to your code!\" width=\"250\" height=\"255\" \/><\/a><\/p>\n<h4><\/h4>\n<h4>Bring Some Game To Your Code!<\/h4>\n<p>A software engineer&#8217;s glory so often goes unnoticed. Attention seems to come either when there are bugs or when the final project ships. But rarely is a developer appreciated for all the nuances and subtleties of a piece of code&#8211;and all the heroics it took to write it. With Visual Studio Achievements Beta, your talents are recognized as you perform various coding feats, unlock achievements and earn badges.<\/p>\n<h4>Learn More About Visual Studio<\/h4>\n<p>Visual Studio is a powerful tool with tons of features, many of which you may not know about. Earning some of the badges may result in learning about features you didn\u2019t even know existed!<\/p>\n<h4>Download It<\/h4>\n<p><a href=\"http:\/\/visualstudiogallery.msdn.microsoft.com\/bc7a433b-b594-48d4-bba2-a2f24774d02f\">Download it today from the Visual Studio Gallery<\/a><\/p>\n<h4>How It Works<\/h4>\n<p>With the <a href=\"https:\/\/channel9.msdn.com\/Shows\/Visual-Studio-Toolbox\">Visual Studio Achievements Extension<\/a>, achievements are unlocked based on your activity. Your code is analyzed on a background thread each time you compile. In addition, the extension listens for certain events and actions that you may perform in Visual Studio, reporting progress on these events to the server.<\/p>\n<p>When you unlock an achievement, Visual Studio lets you know visually with a pop-up:<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2012\/01\/3603.clip_image003_6BD58D55.jpg\"><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2012\/01\/3603.clip_image003_6BD58D55.jpg\" alt=\"achievement unlocked!\" width=\"244\" height=\"148\" class=\"alignnone size-full wp-image-222120\" \/><\/a><\/p>\n<p><br>\n<strong>Figure 1 &#8211; Unlocking An Achievement<\/strong><\/p>\n<p>In addition, your Channel 9 profile is updated with any achievements you earn, recalculating your position on the <a href=\"https:\/\/channel9.msdn.com\">leaderboard<\/a>:<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2012\/01\/8054.clip_image005_728896D8.gif\"><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2012\/01\/8054.clip_image005_728896D8.gif\" alt=\"leaderboard\" width=\"244\" height=\"230\" class=\"alignnone size-full wp-image-222121\" \/><\/a>\n<strong>Figure 2 &#8211; The Visual Studio Achievements Leaderboard<\/strong><\/p>\n<p>Some examples of individual achievements include <strong>Regional Manager<\/strong> (have more than 10 regions in a single class), <strong>Close To The Metal<\/strong> (use 5 preprocessor directives), <strong>Stubby<\/strong> (generate method stubs 10 times) or <strong>Interrupting Cow<\/strong> (have 10 breakpoints in a file). All in all, there are 32 achievements awaiting to be unlocked, all of which are listed <a href=\"https:\/\/channel9.msdn.com\/Shows\/Visual-Studio-Toolbox\">here<\/a>. Here&#8217;s what the 6 different badges look like:<\/p>\n<table border=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td><strong>The Six Categories of Achievements<\/strong><\/td>\n<\/tr>\n<tr>\n<td><a href=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2012\/01\/7206.clip_image007_04652AA6.jpg\"><img decoding=\"async\" class=\"alignleft size-full wp-image-222112\" src=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2012\/01\/7206.clip_image007_04652AA6.jpg\" alt=\"wrench icon\" width=\"104\" height=\"104\" \/><\/a><\/td>\n<td><a href=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2012\/01\/1033.clip_image009_7D45EE2D.jpg\"><img decoding=\"async\" class=\"alignleft size-full wp-image-222113\" src=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2012\/01\/1033.clip_image009_7D45EE2D.jpg\" alt=\"don't try this at home\" width=\"104\" height=\"104\" \/><\/a><\/td>\n<td><a href=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2012\/01\/1856.clip_image011_2414046E.jpg\"><img decoding=\"async\" class=\"alignleft size-full wp-image-222114\" src=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2012\/01\/1856.clip_image011_2414046E.jpg\" alt=\"broom icon\" width=\"104\" height=\"104\" \/><\/a><\/td>\n<\/tr>\n<tr>\n<td><strong>Customizing Visual Studio <\/strong><\/td>\n<td><strong>Don&#8217;t Try This At Home<\/strong><\/td>\n<td><strong>Good Housekeeping<\/strong><\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<\/tr>\n<tr>\n<td><a href=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2012\/01\/3583.clip_image013_1CF4C7F6.jpg\"><img decoding=\"async\" class=\"alignleft size-full wp-image-222116\" src=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2012\/01\/3583.clip_image013_1CF4C7F6.jpg\" alt=\"Just for fun\" width=\"104\" height=\"104\" \/><\/a><\/td>\n<td><a href=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2012\/01\/0044.clip_image015_71B030EE.jpg\"><img decoding=\"async\" class=\"alignleft size-full wp-image-222117\" src=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2012\/01\/0044.clip_image015_71B030EE.jpg\" alt=\"power coder\" width=\"104\" height=\"104\" \/><\/a><\/td>\n<td><a href=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2012\/01\/3681.clip_image017_038CC4BC.jpg\"><img decoding=\"async\" class=\"alignleft size-full wp-image-222118\" src=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2012\/01\/3681.clip_image017_038CC4BC.jpg\" alt=\"unleashing visual studio\" width=\"104\" height=\"104\" \/><\/a><\/td>\n<\/tr>\n<tr>\n<td><strong>Just For Fun<\/strong><\/td>\n<td><strong>Power Coder<\/strong><\/td>\n<td><strong>Unleashing Visual Studio<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4>Share Your Flair<\/h4>\n<p>Each time you earn a badge, a unique page is created with your profile picture, the badge and a description. You can tweet about achievements you earn and\/or share them on Facebook:<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2012\/01\/4760.clip_image019_2A5ADAFC.gif\"><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2012\/01\/4760.clip_image019_2A5ADAFC.gif\" alt=\"share a page\" width=\"244\" height=\"104\" class=\"alignnone size-full wp-image-222129\" \/><\/a><\/p>\n<p><strong>Figure 3 &#8211; Share A Page<\/strong><\/p>\n<p>Or, you can show a list of achievements on your blog using the <a href=\"https:\/\/channel9.msdn.com\/Blogs\/C9Team\/Visual-Studio-Achievements-Widget\">Visual Studio Achievements Widget<\/a> which is as simple as adding one line of script to your page. After all, those badges look so shiny and nice! Here&#8217;s an example of the widget on a blog:<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2012\/01\/1121.clip_image021_3C376EC9.gif\"><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2012\/01\/1121.clip_image021_3C376EC9.gif\" alt=\"iRhetoric\" width=\"214\" height=\"244\" class=\"alignnone size-full wp-image-222127\" \/><\/a><\/p>\n<p><strong>Figure 4 &#8211; The Visual Studio Achievements Widget On A Blog<\/strong><\/p>\n<h4>Genesis<\/h4>\n<p>We have to give props to the blog <strong>While True<\/strong>, whose blog post <a href=\"http:\/\/blog.whiletrue.com\/2011\/01\/what-if-visual-studio-had-achievements\/\">What If Visual Studio Had Achievements <\/a>inspired us to go build this. That post spawned a <a href=\"http:\/\/www.reddit.com\/r\/programming\/comments\/f8phd\/what_if_visual_studio_had_achievements\/\">reddit post <\/a>that is the thread which started it all!<\/p>\n<h4>Feedback<\/h4>\n<p>We&#8217;re just getting started with Visual Studio Achievements and are hoping to release more in the future. If you have ideas for additional achievements, we&#8217;d love to hear about them. Please use the <a href=\"http:\/\/visualstudiogallery.msdn.microsoft.com\/bc7a433b-b594-48d4-bba2-a2f24774d02f\">Q&amp;A section<\/a> of the achievements extension to make suggestions for future achievements. And if you have suggestions, concerns, issues or problems, again, use the <a href=\"http:\/\/visualstudiogallery.msdn.microsoft.com\/bc7a433b-b594-48d4-bba2-a2f24774d02f\">Q&amp;A section <\/a>of the achievements gallery page. Give a read to the <a href=\"https:\/\/channel9.msdn.com\/Blogs\/C9Team\/Visual-Studio-Achievements-FAQ\">FAQ <\/a>as well as your question may already be answered.<\/p>\n<p><a href=\"http:\/\/visualstudiogallery.msdn.microsoft.com\/bc7a433b-b594-48d4-bba2-a2f24774d02f\">Download it today from the Visual Studio Gallery<\/a><\/p>\n<p>&nbsp;<\/p>\n<p>Please note:<\/p>\n<ul>\n<li>A\u00a0fun add in<\/li>\n<li>Educational but not best practices<\/li>\n<li>Not a core Visual Studio team project but developed by Channel 9<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Bring Some Game To Your Code! A software engineer&#8217;s glory so often goes unnoticed. Attention seems to come either when there are bugs or when the final project ships. But rarely is a developer appreciated for all the nuances and subtleties of a piece of code&#8211;and all the heroics it took to write it. With [&hellip;]<\/p>\n","protected":false},"author":13,"featured_media":255385,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[155],"tags":[880],"class_list":["post-1333","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-visual-studio","tag-get-started"],"acf":[],"blog_post_summary":"<p>Bring Some Game To Your Code! A software engineer&#8217;s glory so often goes unnoticed. Attention seems to come either when there are bugs or when the final project ships. But rarely is a developer appreciated for all the nuances and subtleties of a piece of code&#8211;and all the heroics it took to write it. With [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/posts\/1333","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/users\/13"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/comments?post=1333"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/posts\/1333\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/media\/255385"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/media?parent=1333"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/categories?post=1333"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/tags?post=1333"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}