Jump to content

beginners C# project

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
44 replies to this topic

#1
matty241

matty241

    Newbie

  • Members
  • Pip
  • 9 posts
From studying a few different C# books I'm starting to get familiar with some basic programming concepts and the C# syntax. I feel at this stage I would make the most amount of progress if there were a sort of beginner project I could attempt.

Anyone have any ideas of a good project that would be suitable for someone who has only been learning for 5-6 weeks

Thanks

Matty ( I tried to look on google but it seems to only come up with beginners' tutorials)

#2
gaylo565

gaylo565

    Programming Professional

  • Members
  • PipPipPipPipPip
  • 268 posts
Tic-Tac-Toe is a pretty standard first semester project for c#. A simple calculator is a good one to familiarize yourself with some math functions. You can do a simple password and user login for learning to make web applications. None of these require really tough programming although the Tic-Tac-Toe is probably the easiest. Some people think you should start with all console app's...don't really have any good ones of those for ya.

#3
Xav

Xav

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 13,118 posts
I've suggested a few to TcM - how about a program that calculates prime numbers between a given range? Or, what about a basic RSS reader? I could help you on either if you need it.
Jordan said:

Good members, like yourself, stick around and post for ages to come!
Mr. Xav | Blog | Forums

#4
Guest_Jordan_*

Guest_Jordan_*
  • Guests
Telnet or FTP client is a good way to learn the basics of networking using C#.

#5
Xav

Xav

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 13,118 posts
Hmm... I thought networking was considered an advanced topic, or am I wrong?

How about a password generator, where you type in keywords, and it forms passwords out of them?
Jordan said:

Good members, like yourself, stick around and post for ages to come!
Mr. Xav | Blog | Forums

#6
Guest_Jordan_*

Guest_Jordan_*
  • Guests
I suppose it is but it is good to learn how to use it in any programming language. An FTP client is simple network concepts and provides real world knowledge.

Connecting to a database is something you will likely use in the future and especially in the workplace.

#7
Xav

Xav

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 13,118 posts
I agree - storing data it one of the most useful tasks a program can have.

However, I usually prefer to store the data in XML Files, as they are a cross between a database and text file. Take a look at the System.Xml namespace for details.
Jordan said:

Good members, like yourself, stick around and post for ages to come!
Mr. Xav | Blog | Forums

#8
Guest_Jordan_*

Guest_Jordan_*
  • Guests
I disagree. An XML file is nothing more than a flat file or text file that uses a parser. Using an actual database with SQL commands can't come from reading an XML file. IMO every programmer should learn SQL before they begin their career.

#9
gaylo565

gaylo565

    Programming Professional

  • Members
  • PipPipPipPipPip
  • 268 posts
Sql queries are indeed a very good programming skill. They can be very complicated and some programmers make a living just writing custom data adapters. However the premise is very simple and standard queries can be understood by most levels of programmers. Like Jordan said its a must for career oriented programmers.

Edited by gaylo565, 08 May 2008 - 07:30 PM.


#10
Xav

Xav

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 13,118 posts
Yes, but with .NET you have been provided with many useful classes and objects that can achieve almost exactly the same thing as with SQL. I've never actually experienced a situation in which I couldn't do something in XML that a SQL database couldn't.
Jordan said:

Good members, like yourself, stick around and post for ages to come!
Mr. Xav | Blog | Forums

#11
Guest_Jordan_*

Guest_Jordan_*
  • Guests
Don't get me wrong, XML is great but try storing 1,000,000 rows of data in an XML file and see how fast you can retrieve row 596,102.

#12
Xav

Xav

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 13,118 posts
Easy peasy in C#:
[I]assuming 'doc' is the System.Xml. XmlDocument containing the XML data.[/I]
XmlNode row = doc.ChildNodes[596102 - 1];
See? XML docs can be referenced as arrays, objects, the lot. The node 'row' now contains the properties Attributes, ChildNodes and InnerText. Easy, eh?
Jordan said:

Good members, like yourself, stick around and post for ages to come!
Mr. Xav | Blog | Forums