Click here to Skip to main content
15,941,828 members
Home / Discussions / C#
   

C#

 
GeneralRe: Starting a new project in C# Pin
FilipJ16-Feb-14 16:55
FilipJ16-Feb-14 16:55 
GeneralRe: Starting a new project in C# Pin
Mycroft Holmes16-Feb-14 17:08
professionalMycroft Holmes16-Feb-14 17:08 
GeneralRe: Starting a new project in C# Pin
FilipJ16-Feb-14 17:38
FilipJ16-Feb-14 17:38 
GeneralRe: Starting a new project in C# Pin
Mycroft Holmes16-Feb-14 17:56
professionalMycroft Holmes16-Feb-14 17:56 
GeneralRe: Starting a new project in C# Pin
FilipJ16-Feb-14 18:10
FilipJ16-Feb-14 18:10 
AnswerRe: Starting a new project in C# Pin
Peter Leow16-Feb-14 16:36
professionalPeter Leow16-Feb-14 16:36 
GeneralRe: Starting a new project in C# Pin
FilipJ16-Feb-14 17:45
FilipJ16-Feb-14 17:45 
AnswerRe: Starting a new project in C# Pin
V.16-Feb-14 21:22
professionalV.16-Feb-14 21:22 
You need an IDEA as someone mentioned. I would go for something like a movie database or CD collection database.

Then you immediately come up with some problems. You've hopefully read about n-tier design. Let's start with that.

Problem #1: How am I going to store the data? ASCII files, Excel, XML or a database (MySQL, PostgreSQL are free as is SQL Server Express) Start with choosing the type of storage.
Problem #2: Storage structure. Probably something you haven't read. Start here[^]
Problem #3: DAL: You'll need to talk to the database, whatever type you choose you'll need to find out how to do that. here's where the coding starts. Start with reading out the data and check if it works by debugging or doing an output to the cmd window (no UI yet!)
Problem #4: DAL: You can talk to the database, can you write to it? Make a unit test or something that adds and updates entries.
Problem #5: BL: Setup constraints and check of your input and output. Create objects you'll need to use and business rules to follow. You can create objects within objects. So eg you can have a DVD object that contains title, duration, ... but also an Actor object that in turn contains lastname, firstname, age, ... For those objects I would use Load and Save functions (save = insert or update depending if the object already existed).
Problem #6: GUI: How would you like to represent the data? With covers and pictures, without? In a grid or with "cards" (or both) will it be web or winforms or wpf? Can you print it?

This is just high level, but the point is to tackle each problem at a time.
If you want to build CRUD applications a DVD/CD collection is a good example. If you want to go into gaming, you'll need GDI+ and keyboard/mouse input/output. In that case snake, mastermind or a card game or something like that is a better option.

Hope this helps.
V.

(MQOTD rules and previous solutions)

OriginalGriff wrote:
V is absolutely right

GeneralRe: Starting a new project in C# Pin
FilipJ16-Feb-14 23:46
FilipJ16-Feb-14 23:46 
GeneralRe: Starting a new project in C# Pin
V.16-Feb-14 23:52
professionalV.16-Feb-14 23:52 
GeneralRe: Starting a new project in C# Pin
FilipJ17-Feb-14 0:02
FilipJ17-Feb-14 0:02 
AnswerRe: Starting a new project in C# Pin
Ravi Bhavnani17-Feb-14 7:49
professionalRavi Bhavnani17-Feb-14 7:49 
AnswerRe: Starting a new project in C# Pin
David C# Hobbyist.17-Feb-14 12:15
professionalDavid C# Hobbyist.17-Feb-14 12:15 
QuestionStruct vs Class? PinPopular
David C# Hobbyist.16-Feb-14 12:34
professionalDavid C# Hobbyist.16-Feb-14 12:34 
AnswerRe: Struct vs Class? Pin
Peter Leow16-Feb-14 13:29
professionalPeter Leow16-Feb-14 13:29 
AnswerRe: Struct vs Class? PinPopular
OriginalGriff16-Feb-14 21:29
mveOriginalGriff16-Feb-14 21:29 
GeneralRe: Struct vs Class? Pin
Nicholas Marty16-Feb-14 21:55
professionalNicholas Marty16-Feb-14 21:55 
GeneralRe: Struct vs Class? Pin
harold aptroot16-Feb-14 22:02
harold aptroot16-Feb-14 22:02 
GeneralRe: Struct vs Class? Pin
OriginalGriff16-Feb-14 22:17
mveOriginalGriff16-Feb-14 22:17 
GeneralRe: Struct vs Class? Pin
OriginalGriff16-Feb-14 22:26
mveOriginalGriff16-Feb-14 22:26 
GeneralRe: Struct vs Class? Pin
harold aptroot16-Feb-14 22:59
harold aptroot16-Feb-14 22:59 
GeneralRe: Struct vs Class? Pin
OriginalGriff17-Feb-14 0:06
mveOriginalGriff17-Feb-14 0:06 
GeneralRe: Struct vs Class? Pin
harold aptroot17-Feb-14 0:16
harold aptroot17-Feb-14 0:16 
GeneralRe: Struct vs Class? Pin
jschell17-Feb-14 12:07
jschell17-Feb-14 12:07 
GeneralRe: Struct vs Class? Pin
BillWoodruff17-Feb-14 1:41
professionalBillWoodruff17-Feb-14 1:41 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.