Scott Hanselman

Where did God put his readonly variables?

February 14, '03 Comments [3] Posted in Web Services
Sponsored By

I've got one more physics class and two math classes to finish my 11 year quest for a 4 year degree.  As I was sitting in Physics yesterday we were talking about the Ideal Gas Constant and Avogadro's number and the thousand other constants that make It All Work.  And I was thinking...in my programming I'm always trying to avoid superfluous constants when possible, and use enums to group related consts when possible. 

But in the Universe, for It All To Work we seem to need a lot of very precise and specific Constants and learning physics for me has been as much learning another person's code and algorithms as it has been understanding the constants they needed to get the job done.

My real question is, did God put these constants as a readonly field in a static constructor or a singleton pattern, or assuming parallel universes, a factory pattern? Either way, it makes me think when I write C# code, how would God write this loop? :)

(and please note God's use of a modified Hungarian naming convention)

public Reality
{
      public readonly double dblAvogadrosNumber = 6.022137*10^23....etc;
      /* additional Reality Code removed for clarity... */
      private static Reality singletonInstance;
      private static int cReference;
      public static Reality GetInstance()
      {
          if(singletonInstance== null)
          {
              singletonInstance= new Reality("Let there be light, etc");
          }
          cReference++;
          return singletonInstance;
      }          

}

About Scott

Scott Hanselman is a former professor, former Chief Architect in finance, now speaker, consultant, father, diabetic, and Microsoft employee. He is a failed stand-up comic, a cornrower, and a book author.

facebook twitter subscribe
About   Newsletter
Sponsored By
Hosting By
Dedicated Windows Server Hosting by SherWeb

Iron Developer!

February 14, '03 Comments [0] Posted in Web Services
Sponsored By

Congratulations to my friend Scott Stanfield from Vertigo Software who is the new Visual Studio.NET Iron Developer!

About Scott

Scott Hanselman is a former professor, former Chief Architect in finance, now speaker, consultant, father, diabetic, and Microsoft employee. He is a failed stand-up comic, a cornrower, and a book author.

facebook twitter subscribe
About   Newsletter
Sponsored By
Hosting By
Dedicated Windows Server Hosting by SherWeb

Multiple-Monitors are love

February 14, '03 Comments [1] Posted in Web Services
Sponsored By

Update on dual monitors. Don "luddite" Box comments about how much he likes the larger 1024 x 768 pixels on his Thinkpad x30. Hey - how many pixels do you need to run emacs and type all those angle brackets anyways? :) [IUnknown.com: John Lam's Weblog on Software Development]

Withholding any barbs against Don's choice of editor...I run 1600x1400 (120dpi) on my laptop and 1280x1024 (96dpi) on my laptop.  When people say they don't dig the ultra-high-res you get on a 120/130dpi laptop (like Tablet PCs, that require 120) I say, two words: Large Fonts.  I run large fonts and large icons.  I run my fonts in VS.NET in 14 point bold Lucida Console.   The ratio of the size of the fonts in relation to the physical dimensions of the screen higher, but what to I get with all my "extra" pixels?  Resolution, Baby.  ClearType, clarity, the feeling of staring at Paper not an LCD or CRT.  And personal preference aside, anyone who doesn't believe in ClearType (ClearType Online Tuning Wizard here) needs to think twice.

Someone still running 800x600 or 1024x768 happily because they didn't want to take the time to scale their screen elements on a higher-res screen is probably renting those "special" Full Frame DVDs because they think they are missing information covered by the black bars. ;)

Product Tip: There's another great Screen Scaling for the technologically challenged who like "big pixels" and want that 1024x768 feel on a 1280x1024 screen - LiquidView from Portrait.  (It's arguably 100% necessary as XP includes a plethora of support for sizing things, but it scales EVERYTHING) 

I also use their Pivot software RELIGIOUSLY.  (They'd sell more software if their website didn't suck egregiously) When you're editing a giant doc, it's nice to view it like paper on a portait oriented display.  Even better, Pivot is smart about multi-monitors and having a pivotable LCD next to a non-pivotable one. 

About Scott

Scott Hanselman is a former professor, former Chief Architect in finance, now speaker, consultant, father, diabetic, and Microsoft employee. He is a failed stand-up comic, a cornrower, and a book author.

facebook twitter subscribe
About   Newsletter
Sponsored By
Hosting By
Dedicated Windows Server Hosting by SherWeb

Linux Switchers - 4 out of 5 super villians agree...

February 13, '03 Comments [1] Posted in Web Services
Sponsored By

The Switch to Linux Campaign...awesome "TV Ad" about why you should switch to Linux, in the style of the Apple Switch Campaign.

About Scott

Scott Hanselman is a former professor, former Chief Architect in finance, now speaker, consultant, father, diabetic, and Microsoft employee. He is a failed stand-up comic, a cornrower, and a book author.

facebook twitter subscribe
About   Newsletter
Sponsored By
Hosting By
Dedicated Windows Server Hosting by SherWeb

My ignorance proceeds me: Visual Studio.NET Incremental Search

February 13, '03 Comments [1] Posted in Web Services
Sponsored By

Again, my buddy Sairama to the rescue.  Just when I think I've pretty much got VS.NET down solid (only being use it since Pre-Beta days, right?) I'm thrown a curve ball called incremental search.  I guess I just assumed that a feature that was so cool in so many other editors would never make it into VS.NET. Silly me.

So, lest I be the most ignorant, fire up Visual Studio.NET, get some code in there, hit Ctrl-I and start typing.  After you've found something, use F3 to Find Next.  In the words of Chris Sells - It's pure sex.

About Scott

Scott Hanselman is a former professor, former Chief Architect in finance, now speaker, consultant, father, diabetic, and Microsoft employee. He is a failed stand-up comic, a cornrower, and a book author.

facebook twitter subscribe
About   Newsletter
Sponsored By
Hosting By
Dedicated Windows Server Hosting by SherWeb

Disclaimer: The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.