Los Techies : Blogs about software and anything tech!

ReSharper Jedi – FizzBuzz in under 4 minutes


Video (FLV/Flash, 3:55,06, CSA 0:00,00 no words/captioning)

Video link (please expand/full screen it’s viewed properly at 1024x768):

http://www.viddler.com/explore/Lostechies/videos/1/ 

 

Kick It on DotNetKicks.com
Posted Oct 25 2008, 01:12 AM by chadmyers
Filed under: ,

Comments

Jason Meridth wrote re: ReSharper Jedi – FizzBuzz in under 4 minutes
on 10-25-2008 1:44 AM

Your mitachlorian count is through the roof.  Be careful, you may be recruited to the darkside.  Remember, Resharper works with.......VB.NET.  Aghhhhh!!

Very cool video Chad.

chadmyers wrote re: ReSharper Jedi – FizzBuzz in under 4 minutes
on 10-25-2008 2:05 AM

@Jason:

Thanks man. For some reason the embeded video isn't showing up. :(

Dew Drop - October 25, 2008 | Alvin Ashcraft's Morning Dew wrote Dew Drop - October 25, 2008 | Alvin Ashcraft's Morning Dew
on 10-25-2008 8:34 AM

Pingback from  Dew Drop - October 25, 2008 | Alvin Ashcraft's Morning Dew

Arjan`s World » LINKBLOG for October 25, 2008 wrote Arjan`s World » LINKBLOG for October 25, 2008
on 10-25-2008 9:48 AM

Pingback from  Arjan`s World    » LINKBLOG for October 25, 2008

Mike Moore wrote re: ReSharper Jedi – FizzBuzz in under 4 minutes
on 10-25-2008 10:26 AM

Great job Chad. You showed a TDD approach and how Resharper will stub out the classes and methods that you use first in your tests. I would have preferred that you narrate your actions instead of the crappy music, but it was still worth watching.

That said, I couldn't help but think of the word "ceremony" while watching it. :)

Kyle Baley wrote re: ReSharper Jedi – FizzBuzz in under 4 minutes
on 10-25-2008 10:47 AM

Very impressive. Agree with Mike in that a slightly-longer, narrated version would be more practical as a teaching tool but your version does prove a point. Roy's Keyboard Jedi to show the shortcut keys would also help.

Tip: When you create a constructor with a parameter, you can press Alt-Enter on each of the parameter variables to automatically create a backing field and set it in the constructor. Use the options to set a naming convention (i.e. prefixing it with an underscore). R# also offers a tip to convert it to readonly as well.

Matthew Brubaker wrote re: ReSharper Jedi – FizzBuzz in under 4 minutes
on 10-25-2008 1:33 PM

Of interesting note to the FizzBuzz test.  In the case of testing the third output.  If the two numbers are taken x and y, you can test if the number is divisible by the least common multiple of x and y and achieve the same result.

For instance, if, as in the case in the video, the numbers are 3 and 5, you can test if the number is divisible by 15 to determine if you should print the number.

Just a mathematical observance.

Paul Batum wrote re: ReSharper Jedi – FizzBuzz in under 4 minutes
on 10-25-2008 2:49 PM

Is anyone making videos that help you learn good r#-fu? Videos like this remind me what I'm missing out on but they don't really help with actually learning all the tricks.

chadmyers wrote re: ReSharper Jedi – FizzBuzz in under 4 minutes
on 10-25-2008 2:56 PM

@Mike: Thanks for peeing in my corn flakes :)

@Kyle: Yeah, I noticed the c'tor thing in post-production, but I didn't feel like re-recording the whole thing again :(  Maybe v2

@Matthew: Thanks!  The point of this wasn't really to say how to do TDD or FizzBuzz best, mainly just to show kind of how the workflow of TDD works with ReSharper vs. plain vanilla VS.

@Paul:  Yeah, my point wasn't necessarily for this to be a step-by-step thing. The point was to show people who were asking me what I was talking about when I said things like "do TDD the ReSharper way versus the VS way."  Several people asked me to explain what I meant, this video is for them (and anyone else curious).

Was there anything you saw, particularly, that you were curious about (i.e. "how'd you do THAT?")?

Mike Moore wrote re: ReSharper Jedi – FizzBuzz in under 4 minutes
on 10-25-2008 6:41 PM

No problem, man. That is the exact reason I keep my little toe in the .NET world. :D

Paul Batum wrote re: ReSharper Jedi – FizzBuzz in under 4 minutes
on 10-26-2008 11:36 AM

Hi Chad, I don't think there was anything in particular. I suppose if there was a version of your video that explained each trick and shortcut then I could try to mimic the steps in the video, and that would be useful.

But let me ask you this: how did you learn your R#-fu? Did you have sessions where you sat down and said "ok, I'm gonna learn how to be better at resharper"? Did you just pick it up very slowly during your normal work? What about pairing sessions with other jedi, did that have a big effect?

chadmyers wrote re: ReSharper Jedi – FizzBuzz in under 4 minutes
on 10-26-2008 12:34 PM

@Paul:

I considered doing another video that explained the shortcuts and techniques. I may yet do that. Let me think about how that might work.

RE: How'd I learn:  I played and fumbled around with it myself. The first, biggest thing that put me on the road to expert was NOT using the Visual Studio shortcuts, but instead using the IntelliJ shortcuts. This was VERY painful, but worth it in the end.   The second thing was just sticking with it and not giving up. I had to have faith in others who said it was worth it.  Finally, pairing with some other folks who were experts and having them smack my hand every time I reached for the mouse or tried to do something manually that was already automated by R#.

-c

Weekly Link Post 65 « Rhonda Tipton’s WebLog wrote Weekly Link Post 65 « Rhonda Tipton’s WebLog
on 10-26-2008 7:02 PM

Pingback from  Weekly Link Post 65 « Rhonda Tipton’s WebLog

Reflective Perspective - Chris Alcock » The Morning Brew #209 wrote Reflective Perspective - Chris Alcock » The Morning Brew #209
on 10-27-2008 3:20 AM

Pingback from  Reflective Perspective - Chris Alcock  » The Morning Brew #209

Paul Batum wrote re: ReSharper Jedi – FizzBuzz in under 4 minutes
on 10-27-2008 8:23 AM

Why were you better off using intelliJ shortcuts?

Jeremy Wiebe wrote re: ReSharper Jedi – FizzBuzz in under 4 minutes
on 10-27-2008 10:02 AM

It'd be cool to do this video with Roy's Key Jedi tool running also (weblogs.asp.net/.../train-to-be-a-keyboard-master-with-keyboard-jedi.aspx)

Derik Whittaker wrote re: ReSharper Jedi – FizzBuzz in under 4 minutes
on 10-29-2008 3:49 PM

@Jeremy

I actually have a few R# videos coming out starting next week that use Keyboard Jedi to show you the short cuts.

Check out www.dimecasts.net for the video's

Paul Batum wrote re: ReSharper Jedi – FizzBuzz in under 4 minutes
on 11-02-2008 4:00 PM

I enjoy the dimecast videos Derik, so I'm looking forward to that series on R#!

joe wrote re: ReSharper Jedi – FizzBuzz in under 4 minutes
on 11-15-2008 1:10 PM

nice.

Whats the magic shortcut to get the r# test runner to run without fiddling with the mouse?

chadmyers wrote re: ReSharper Jedi – FizzBuzz in under 4 minutes
on 11-15-2008 1:20 PM

@joe:  

Bind a key (CTRL+1 in my case) to ReSharper.ReSharper_UnitTest_ContextRun.

With your cursor anywhere inside the curly brackets of your test or test fixture, press CTRL+1 and it'll run that test or test fixture (respectively).

To close the test runner toolbar window, SHIFT+ESC.

-c

Copyright Los Techies 2008, 2009. All rights reserved.
Powered by Community Server (Commercial Edition), by Telligent Systems