Click here to Skip to main content
15,888,351 members
Home / Discussions / C#
   

C#

 
AnswerRe: using toupper to uppercase an array index Pin
PANKAJMAURYA12-Oct-15 20:59
professionalPANKAJMAURYA12-Oct-15 20:59 
QuestionC# find a string in a 2010 Microsoft Word document Pin
Member 120318994-Oct-15 6:08
Member 120318994-Oct-15 6:08 
AnswerRe: C# find a string in a 2010 Microsoft Word document Pin
Ravi Bhavnani4-Oct-15 6:09
professionalRavi Bhavnani4-Oct-15 6:09 
GeneralRe: C# find a string in a 2010 Microsoft Word document Pin
Member 120318994-Oct-15 6:48
Member 120318994-Oct-15 6:48 
GeneralRe: C# find a string in a 2010 Microsoft Word document Pin
Pete O'Hanlon5-Oct-15 4:53
mvePete O'Hanlon5-Oct-15 4:53 
RantProgramming Pin
Member 115145063-Oct-15 14:59
Member 115145063-Oct-15 14:59 
GeneralRe: Programming Pin
BillWoodruff3-Oct-15 16:43
professionalBillWoodruff3-Oct-15 16:43 
GeneralRe: Programming Pin
OriginalGriff3-Oct-15 21:38
mveOriginalGriff3-Oct-15 21:38 
It's not too bad, once you get your head around the process.
Start by breaking the task into smaller chunks - for example, it your have to get two values from the user, add them together and print the result (and yes, I know it's trivial) then you would brak it into three bits:
1) Get values
2) Add
3) Print
Then look at the first one "Get values" and break that into smaller bits:
1) Get values
1.1) Get a value
1.2) Store it somewhere
1.3) Get a value
1.4) Store it somewhere else
2) Add
3) Print
And you start to see that 1.1 and 1.3 are the same job - so they can be done with the same code. You then continue this until each of the tasks you have is pretty simple - and then implement them! Laugh | :laugh:

There is a technical term for this - reductionism - and it's a process we use all the time in real life without really realising it: "Make tea" for example reduces to "boil water", "brew tea", "add milk and sugar", "combine" - and each of those breaks down into simpler actions we take without thinking.

Another way to get started is to do the job manually, and think about the processes you are involved in to do it. This can give you a good idea of the overview, and you can then start reductionism to separate out the simpler tasks.

It's a skill - and like all skills it only comes with practice - so try it. You'll get it wrong (we all did, and we all do) so be prepared to throw it away and start again, but you'll get better as you go along.

Good luck!
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...

GeneralRe: Programming Pin
Gerry Schmitz4-Oct-15 12:17
mveGerry Schmitz4-Oct-15 12:17 
GeneralRe: Programming Pin
BillWoodruff4-Oct-15 18:33
professionalBillWoodruff4-Oct-15 18:33 
GeneralRe: Programming Pin
JBargisen8-Oct-15 22:10
JBargisen8-Oct-15 22:10 
QuestionShell Sort Algorithm question Pin
Member 117609771-Oct-15 15:19
Member 117609771-Oct-15 15:19 
AnswerRe: Shell Sort Algorithm question Pin
BillWoodruff1-Oct-15 20:24
professionalBillWoodruff1-Oct-15 20:24 
AnswerRe: Shell Sort Algorithm question Pin
Richard Deeming2-Oct-15 1:40
mveRichard Deeming2-Oct-15 1:40 
QuestionMessage Removed Pin
1-Oct-15 2:45
Member 103698471-Oct-15 2:45 
QuestionCreate a Collection in C# Pin
macca241-Oct-15 1:27
macca241-Oct-15 1:27 
AnswerRe: Create a Collection in C# Pin
OriginalGriff1-Oct-15 1:42
mveOriginalGriff1-Oct-15 1:42 
GeneralRe: Create a Collection in C# Pin
macca241-Oct-15 1:46
macca241-Oct-15 1:46 
GeneralRe: Create a Collection in C# Pin
OriginalGriff1-Oct-15 1:53
mveOriginalGriff1-Oct-15 1:53 
GeneralRe: Create a Collection in C# Pin
macca241-Oct-15 2:32
macca241-Oct-15 2:32 
GeneralRe: Create a Collection in C# Pin
OriginalGriff1-Oct-15 3:56
mveOriginalGriff1-Oct-15 3:56 
GeneralRe: Create a Collection in C# Pin
macca241-Oct-15 4:12
macca241-Oct-15 4:12 
GeneralRe: Create a Collection in C# Pin
OriginalGriff1-Oct-15 4:15
mveOriginalGriff1-Oct-15 4:15 
GeneralRe: Create a Collection in C# Pin
macca241-Oct-15 4:50
macca241-Oct-15 4:50 
GeneralRe: Create a Collection in C# Pin
OriginalGriff1-Oct-15 5:02
mveOriginalGriff1-Oct-15 5:02 

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.