The Problem newb Software Development Tutorials

by percent20 10/29/2007 6:09:00 PM
The Problem newb Software Development Tutorials

As a person that has spent a lot of time on my own to learn software development, and pretty much anything beyond school, I have often seen that there is a HUGE lack of resources for the beginners. While there is some it isn’t very good at all, sorry. I have spent the last couple of years trying to learn C# and ASP.NET and only through hand holding of teachers and long exhaustive talks with people that know A LOT more than I do, have I been able to learn.

This to me shows one of two things that trouble me.

    1) The people that write content for beginners don’t know how to write content for beginners.
    2) The learning curve is EXTREMELY high for programming.

Personally, I think it is a mix between both. As some people get more advanced as developers they tend to talk and meet with people that know as much or more than them as developers and they start to grow. When this happens people tend to forget what it is like to be a beginner and try to throw to much at them at once without any thorough explanation at all.

This brings me to the point of my post. I plan to start doing more “technical” blogging about subjects I am learning in programming, but my goal is to write it so those that are beginners, much like I still am, will understand what is going on. This means no one line code snippets, but full methods/functions to long detailed explanations. These I believe add value and make things easier. Here is an example of what I mean code wise.

Instead of comparing a string to null or “” just use the String.IsNullOrEmpty(stringVariable); method. ( I have seen this and dismissed it because I don’t get it )

This is what I would do for a post or an explanation

Acceptable code:

string var = null;

if(var == null || var == "")
     DoSomething();


Better code:

string var = null;

if(String.IsNullOrEmpty(var))
     DoSomething();

As you can see this will demonstrate through straight code what people usually do, then showing with full code what can be better to do. This however assumes you understand how you can use if statements with bools.

Currently rated 5.0 by 1 people

  • Currently 5/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags:

.NET

Related posts

Comments

11/2/2007 6:29:32 PM

trackback

Trackback from DotNetKicks.com

The Problem newb Software Development Tutorials

DotNetKicks.com

11/3/2007 12:52:17 PM

Dave S.

Just dropping by and not a bad article. You should also considder another good practice that many developers never learn.

When making conditional statements such as your:
if(var == null || var == "")

You should do the following instead:
if(null == var || "" == var)

It prevents accidental assignment.
=)

Cheers!

Dave S. us

11/5/2007 2:26:00 PM

percent20

Now that is kinda cool. Never thought about it.

percent20 us

Add comment


(Will show your Gravatar icon)  

  Country flag

[b][/b] - [i][/i] - [u][/u]- [quote][/quote]



Live preview

5/15/2008 7:44:14 PM

Powered by BlogEngine.NET 1.3.0.0
Theme by Mads Kristensen


My Flare

AddThis Feed Button

National Blog Posting Month

Eagle Scout

I'm Test Driven

[Reserved for MVP status I want to earn]

View Buddy Lindsey's profile on LinkedIn

Twitter



Disclaimer

The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

© Copyright 2008

Sign in