Posted by: Rhonda | November 29, 2009

Weekly Link Post 121

Application Development/Design

SQL Server, Compliance and PowerShell

Community/Technology Events & Training

Internet, Software and General Technology

Blogging and Social Networking

Self-Improvement, Productivity and Career

Health, Fitness and Recipes

Sports, Entertainment and Everything Else

Great Link Blog Sources

Happy Surfing.

Posted by: Rhonda | November 27, 2009

Method Overloading

Polymorphism is one of the main characteristics of Object Oriented Programming (OOP). Put simply, it allows an object to behave in various ways depending on the manner in which it is used. For example, you could have a method execute differently based on the type and/or number of parameters passed to it. Method Overloading is what makes this example possible.  To accomplish Method Overloading, a developer can define two or more methods with the same name. Each method will take a different set of parameters.  The parameter combination or signature, is what the compiler uses to determine which method to use.

image

Good examples of Method Overloading in the .NET Framework include (but are not limited to) the Console.WriteLine() and Substring() methods.  You can pass different types to the Console.WriteLine() method and it will work because there are variations of the methods that will accept the different types.

image

Example Program (click icon below)

csharp2

Result

method-overloading_result

The main advantage of Method Overloading is code readability. Programming languages that do not allow Method Overloading require the developer to create totally separate methods for each variation of the input.  Blackwasp Consulting states the following example: in the ANSI C programming language to truncate a value you would use trunc, truncf or truncl according to the data type being rounded.  In C#, method overloading allows you to always call Math.Truncate.

Additional Information

^..^

Posted by: Rhonda | November 27, 2009

Awesome Blogs of the Month – NOV ‘09

blogging_101

There are tons of great blogs out there. Each month I will shine a spotlight on blogs that I access often and find useful. Hopefully, you will find something of use too.

I pick one blog from each category. The categories include Application Development, Database Development, Science/Technology, Productivity and Health.

Application DevelopmentClaudio Lassala | Great blog for application development information. Claudio is an excellent speaker and he always posts the materials from his presentations.

Database DevelopmentBuck Woody | Buck is a Program Manager at Microsoft and provides some very useful SQL Server information.

Science/TechnologyHow-To Geek | Computer help site that provides how-to articles on everything from operating systems to software to browsers.

Productivity/LifeHacksLifehacker | Lots of productivity tips that help you get things done.

Health/FitnessWeb MD Health and Fitness | Good resource for everyday health.

Until next month…

Posted by: Rhonda | November 22, 2009

Weekly Link Post 120

Application Development/Design

SQL Server, Compliance and PowerShell

Community/Technology Events & Training

Internet, Software and General Technology

Self-Improvement, Productivity and Career

  • 10 Best Productivity Books of 2009“These are 10 books I read this year that made a powerful impression.”
  • Seven Ways to Create More Time In Your Day“Do you ever feel like you have way too much time on your hands, and far too little work and life to fit into it? Unless you’re a teen on summer break, I reckon it’s unlikely!”
  • 5 Things You Can Start Doing Today to Change Your Life“Perhaps the most important thing you can do to improve your life is simply to do things. To take action and learn along the way.”
  • The 40/30/30 Rule“When you prepare for anything in life, only 40% of the preparation is physical – the rest is mental. Thirty percent of preparation is technical skill and experience, and the second thirty percent is the willingness to take risks.”

Sports, Entertainment and Everything Else

Great Link Blog Sources

Happy Surfing.

Posted by: Rhonda | November 15, 2009

Weekly Link Post 119

Application Development/Design

SQL Server, Compliance and PowerShell

  • Do Scalar UDFs give SQL Server a Bad Name?“[SQL Server] continues to ignore issues such as the performance of scalar UDFs. The problem is essentially that the optimizer deals with them very inefficiently.”

 Community/Technology Events & Training

Internet, Software and General Technology

Self-Improvement, Productivity and Career

  • Low-tech Love: The Sketchbook“The sketchbook is a free space for your ideas to play, unbound by lines and ruled margins.”
  • The Importance of a Weekly Review“Even though the impulse is to run as fast as you can to keep up, sometimes the best thing you can do is stop, see where you are, and adjust the course of a runaway train.”
  • Eleven Myths of De-Cluttering - “Here’s a list of some myths of de-cluttering that make it harder to get rid of stuff.”

Health, Fitness and Recipes

  • 7 Healthy Foods That Will Fill You Up and Prevent Overeating“There are nutrient-filled foods that will keep you full for a long time and quite easy to find at any local grocery store. If you eat these better quality foods, you won’t need to overeat and frankly, you may not be as tempted by the glazed donuts that Marcy brought into the office.”

Sports, Entertainment and Everything Else

Great Link Blog Sources

Happy Surfing.

Posted by: Rhonda | November 8, 2009

Weekly Link Post 118

Application Development/Design

SQL Server, Compliance and PowerShell

 Community/Technology Events & Training

Internet, Software and General Technology

Self-Improvement, Productivity and Career

Health, Fitness and Recipes

Sports, Entertainment and Everything Else

Great Link Blog Sources

Happy Surfing.

Posted by: Rhonda | November 8, 2009

SQL Pass 2009 Recaps and Live Blogs

Posted by: Rhonda | November 6, 2009

Timers in .NET

I was researching timers the other day and realized that there are three variations in the .NET Framework.

stopwatch

The three types of timers are explained below.

1 – System.Timers.Timer

The System.Timers.Timer class timer is considered a server-based timer that was designed and optimized for use in multithreaded environments. It can be accessed safely from multiple threads.

Source Code

csharp2 

Output

image

2 – System.Threading.Timer

The System.Threading.Timer class timer uses a TimerCallBack Delegate to specify the associated methods. The methods do not execute in the thread that created the timer; they execute in a separate thread that is automatically allocated by the system.

Source Code

csharp2 

Output

image

3 – Windows.Forms.Timer

The Windows.Forms.Timer class works synchronously with the Windows Form, so that it will not interrupt any operations. It initializes on the UI thread.

Source Code

csharp2 

Output

image  image  image

There are three choices for timers in .NET.  It just depends on what you want to do.

More Information

Until next time…

Posted by: Rhonda | November 1, 2009

Weekly Link Post 117

Application Development/Design

SQL Server, Compliance and PowerShell

 Community/Technology Events & Training

Internet, Software and General Technology

Blogging and Social Networking

Self-Improvement, Productivity and Career

Health, Fitness and Recipes

  • The Anti-Fast Food Diet"This is the Anti-Fast Food Diet — a way to not only lose weight and get healthier, but to change your life to one of simplicity, moderation, and joy."
  • Onion Tears No More – I need to try this next time I chop onions.

Sports, Entertainment and Everything Else

Great Link Blog Sources

Happy Surfing.

Posted by: Rhonda | October 29, 2009

Awesome Blogs of the Month – OCT ‘09

blogging_101

There are tons of great blogs out there. Each month I will shine a spotlight on blogs that I access often and find useful. Hopefully, you will find something of use too.

I pick one blog from each category. The categories include Application Development, Database Development, Science/Technology, Productivity and Health.

Application DevelopmentStackOverflow | Great site for Application Developers to ask questions and get answers. This site has been a lifesaver for me more than once…

Database DevelopmentSQLServerPedia | All things SQL Server. Copious amounts of informative articles as well as podcasts.

General Science/TechnologyChronSciGuy | I enjoy reading Eric’s posts each day. He provides overall Science content from hurricanes to space travel to what it takes to grow tomatoes fast.

Productivity/LifeHacksLifehack Stepcase | This is a site that produces top-notch productivity articles.

Health/FitnessDaily Burn | Good fitness/food log that is accessible via the internet as well as an iPhone app. The iPhone barcode scanner application is pretty cool.

Until next month…

Older Posts »

Categories