C# help or supposed help

  • (2 Pages)
  • +
  • 1
  • 2

15 Replies - 720 Views - Last Post: 05 May 2013 - 07:50 PM

#1 RandyMarsh  Icon User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 16
  • Joined: 03-May 13

C# help or supposed help

Posted 03 May 2013 - 01:28 PM

Ok so I came here as a beginner to learn some C#

I posted asking for some help with code and I get a reaction like it's a big deal. C# is beginning as a hobby at first for me. I'm not asking for code that could disrupt NASA and their space programs.

It's a bit self righteous to not provide help when you at once needed help yourself.

What's the difference between learning from a book, article or asking someone online. it's ALL information gained from another person regardless.

However I'm sure you were born with C# knowledge and never got help from other sources.

All i asked is code on how to change color of a line in a simple act and yet the smugness of refusing to help a beginner.

Is This A Good Question/Topic? 0
  • +

Replies To: C# help or supposed help

#2 tlhIn`toq  Icon User is offline

  • Please show what you have already tried when asking a question.
  • member icon

Reputation: 5436
  • View blog
  • Posts: 11,658
  • Joined: 02-June 10

Re: C# help or supposed help

Posted 03 May 2013 - 01:39 PM

I beleive you're talking about this thread.
http://www.dreaminco...1&#entry1846206

You didn't ask for help with some code. You provided no code. You asked for a tutorial on how to make the entire program. Perhaps this would have been another response:


I don't know how you can say we didn't provide you help. You asked for a tutorial and several tutorials and even a free on-line course were provided for you.

Quote

What's the difference between learning from a book, article or asking someone online.

  • Book - You read and make an effort to learn
  • Article - You read and make an effort to learn
  • Ask someone for a tutorial on the entire program - You want someoen else to build your entire application, then explain it to you. Nobody here has that much free time for every rookie in the US to post questions like that.
    • Can I have a tutorial on making a paint program?
    • Can I have a tutorial on making a weather station controller?
    • Can I have a tutorial on making a Yahoo chat client?
    • Can I have a tutorial on making a shipping pallet box placement calculator?


So I will repeat the advice given in that thread:
Learn C# and general coding first. Don't worry about making a program from scratch yet - its the biggest mistake rookies make: You don't know enough yet to code one module let alone architect the entire program design.


My standard beginner resources post - Updated Apr 2013


Plan your study route:
There are three routes people seem to take when learning programming.
  • Just start trying to create programs
  • Start taking apart other programs and try to figure out the language by reverse engineering
  • Follow a guided learning course (school or self-teaching books)


For the life of me I can't figure out why people try 1 & 2. I strongly suggest taking the guided learning approach. Those book authors go in a certain order for a reason: They know what they're doing and they know the best order to learn the materials.

  • First learn the language by working 2-5 "Learn C# in 30 days" type books cover to cover.
  • Do a dozen on-line tutorial projects where you build what you're told to build, the way you are told to build it WITH AN EXPLANATION OF WHY so you can learn.
  • Learn to plan before you type.
  • THEN you start designing software with a purpose.



I don't learn from reading books: I learn by doing.
Spoiler


Newbie/Rookie said:

I have little/no programming experience but I need to write a program by Friday that does XYZ.
Spoiler



Resources, references and suggestions for new programmers.
Spoiler

Was This Post Helpful? 1
  • +
  • -

#3 macosxnerd101  Icon User is offline

  • Self-Trained Economist
  • member icon




Reputation: 10387
  • View blog
  • Posts: 38,440
  • Joined: 27-December 08

Re: C# help or supposed help

Posted 03 May 2013 - 01:50 PM

In all fairness, you didn't really seem to know where to start. I think the Windows 8 tutorial, as well as links Modi provided seem like a good place to start. I think you got a lot of good resources, but you seemed a little all over the place.
Was This Post Helpful? 1
  • +
  • -

#4 RandyMarsh  Icon User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 16
  • Joined: 03-May 13

Re: C# help or supposed help

Posted 03 May 2013 - 01:59 PM

I have already created the full application.

I just needed help on why the color was changing lines i had previously created.

also

I do this as a HOBBY, not a job or for grades. All I asked was for help in a specific area... what else does this forum do but suggest where people can learn... I'm sure most know how to use Google to find tutorials.

The forum would be much more useful if actual help was provided... if you don't have the time then too bad.
Was This Post Helpful? 0
  • +
  • -

#5 macosxnerd101  Icon User is offline

  • Self-Trained Economist
  • member icon




Reputation: 10387
  • View blog
  • Posts: 38,440
  • Joined: 27-December 08

Re: C# help or supposed help

Posted 03 May 2013 - 02:01 PM

If you need help with code you've written, you should really post the code and cut straight to the chase.

Quote

I do this as a HOBBY, not a job or for grades. All I asked was for help in a specific area... what else does this forum do but suggest where people can learn...

Yes, we help people debug code they have written and posted.
Was This Post Helpful? 0
  • +
  • -

#6 RandyMarsh  Icon User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 16
  • Joined: 03-May 13

Re: C# help or supposed help

Posted 03 May 2013 - 02:03 PM

 public partial class MainPage : PhoneApplicationPage
    {
        //instance variables
        Point startPoint;           //start point for line
        Point endPoint;             //end point for line
        SolidColorBrush mybrush;    //brush color
        int lineWidth;              //line width
        private byte red = 0;
        private byte blue = 0;
        private byte green = 0;
        int capacity = 10;//redo capacity
        Stack<UIElement> redoList; //redo list


        public MainPage()
        {
            InitializeComponent();
            mybrush = new SolidColorBrush(Colors.Green);
            lineWidth = 5;


            //give up to 10 redos
            redoList = new Stack<UIElement>(capacity);
        }

        private void DrawLine(Point start, Point finish)
        {
            Line line = new Line();             //new line
            line.Stroke = mybrush;              //set its brush (colour)
            line.StrokeThickness = lineWidth;   //line thickness
            line.X1 = start.X;                  //start point
            line.Y1 = start.Y;
            line.X2 = finish.X;                 //end point
            line.Y2 = finish.Y;
            canvas1.Children.Add(line);         //adds line


        }

        private void canvas1_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
        {
            startPoint = e.GetPosition(canvas1);
        }

        private void canvas1_MouseLeftButtonUp(object sender, MouseButtonEventArgs e)
        {
            endPoint = e.GetPosition(canvas1);
            DrawLine(startPoint, endPoint);
            btnRedo.IsEnabled = true;
        }

        private void btnUndo_Click(object sender, RoutedEventArgs e)
        {
            int lastindex = canvas1.Children.Count - 1;

            if (lastindex >= 0)
            {
                if (redoList.Count == capacity)
                {

                    redoList.Reverse();
                    redoList.Pop();
                    redoList.Reverse();
                }
                redoList.Push(canvas1.Children.ElementAt(lastindex));
                canvas1.Children.RemoveAt(lastindex);
            }
        }

        private void btnRedo_Click(object sender, RoutedEventArgs e)
        {
            if (redoList.Count > 0)
                canvas1.Children.Add(redoList.Pop());

        }

        private void btnRed_Click(object sender, RoutedEventArgs e)
        {

            red = 255;
            green = 0;
            blue = 0;
            mybrush.Color = Color.FromArgb(255, red, green, blue);
            rectangle1.Fill = mybrush;

        }

        private void btnGreen_Click(object sender, RoutedEventArgs e)
        {
            red = 0;
            green = 255;
            blue = 0;
            mybrush.Color = Color.FromArgb(255, red, green, blue);
            rectangle1.Fill = mybrush;
        }

        private void btnBlue_Click(object sender, RoutedEventArgs e)
        {
            red = 0;
            green = 0;
            blue = 255;
            mybrush.Color = Color.FromArgb(255, red, green, blue);
            rectangle1.Fill = mybrush;
        }
    }
} 

Was This Post Helpful? 0
  • +
  • -

#7 AdamSpeight2008  Icon User is offline

  • MrCupOfT
  • member icon


Reputation: 2241
  • View blog
  • Posts: 9,412
  • Joined: 29-May 08

Re: C# help or supposed help

Posted 03 May 2013 - 02:04 PM

View PostRandyMarsh, on 03 May 2013 - 09:59 PM, said:

I'm sure most know how to use Google to find tutorials.


You be surprised at how many don't.

Or post stuff in the wrong places.

This post has been edited by AdamSpeight2008: 03 May 2013 - 02:05 PM

Was This Post Helpful? 0
  • +
  • -

#8 tlhIn`toq  Icon User is offline

  • Please show what you have already tried when asking a question.
  • member icon

Reputation: 5436
  • View blog
  • Posts: 11,658
  • Joined: 02-June 10

Re: C# help or supposed help

Posted 03 May 2013 - 02:05 PM

Prime example of...
Why I sometimes avoid vague questions from 1 day newbies

  • No question, just 'help me'
  • No code
  • Expectation that we know they wrote code
  • Expectation that we telepathically understand the code/architecture they created and can intuit the code they need to fix their issue.
  • Then get pissy when they don't get it
  • Then tell the people that have been here for years how the forum should be run.

Was This Post Helpful? 0
  • +
  • -

#9 macosxnerd101  Icon User is offline

  • Self-Trained Economist
  • member icon




Reputation: 10387
  • View blog
  • Posts: 38,440
  • Joined: 27-December 08

Re: C# help or supposed help

Posted 03 May 2013 - 02:05 PM

Dude, really? Now you're being difficult to be difficult. Rather than being hung up on the fact that your first thread was closed, just open a new thread in the appropriate forum, post your code, and ask specific questions regarding the specific problems or errors you are encountering. Asking for some help on your code really isn't rocket science.
Was This Post Helpful? 0
  • +
  • -

#10 RandyMarsh  Icon User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 16
  • Joined: 03-May 13

Re: C# help or supposed help

Posted 03 May 2013 - 02:06 PM

You see I'm setting the color in the rectangle object. as the one selected. but I need to separate this action from mybrush. so that when i create say a green line, then change color to red the next line will be red but the previous one remains green.

right now I'm setting them all to the one colour, even previous steps
Was This Post Helpful? 0
  • +
  • -

#11 tlhIn`toq  Icon User is offline

  • Please show what you have already tried when asking a question.
  • member icon

Reputation: 5436
  • View blog
  • Posts: 11,658
  • Joined: 02-June 10

Re: C# help or supposed help

Posted 03 May 2013 - 02:06 PM

View PostAdamSpeight2008, on 03 May 2013 - 03:04 PM, said:

View PostRandyMarsh, on 03 May 2013 - 09:59 PM, said:

I'm sure most know how to use Google to find tutorials.


You be surprised at how many don't.


If they did, we wouldn't have had to write a tutorial to TEACH them how to google:
How to do a good search to get targeted results.
Was This Post Helpful? 0
  • +
  • -

#12 macosxnerd101  Icon User is offline

  • Self-Trained Economist
  • member icon




Reputation: 10387
  • View blog
  • Posts: 38,440
  • Joined: 27-December 08

Re: C# help or supposed help

Posted 03 May 2013 - 02:07 PM

This is the Site Feedback forum, not the C# help forum. Please post your question in the C# help forum.
Was This Post Helpful? 1
  • +
  • -

#13 tlhIn`toq  Icon User is offline

  • Please show what you have already tried when asking a question.
  • member icon

Reputation: 5436
  • View blog
  • Posts: 11,658
  • Joined: 02-June 10

Re: C# help or supposed help

Posted 03 May 2013 - 02:08 PM

View Postmacosxnerd101, on 03 May 2013 - 03:05 PM, said:

Dude, really? Now you're being difficult to be difficult. Rather than being hung up on the fact that your first thread was closed, just open a new thread in the appropriate forum, post your code, and ask specific questions regarding the specific problems or errors you are encountering. Asking for some help on your code really isn't rocket science.


Agreed. This is becoming nothing more than a bitching thread and should probably be closed before it becomes a flame war. if the OP wants help they can take your advice and start a new thread using the advice given.
Was This Post Helpful? 0
  • +
  • -

#14 AdamSpeight2008  Icon User is offline

  • MrCupOfT
  • member icon


Reputation: 2241
  • View blog
  • Posts: 9,412
  • Joined: 29-May 08

Re: C# help or supposed help

Posted 03 May 2013 - 02:14 PM

But I brought gasoline and a lighter.
Was This Post Helpful? 0
  • +
  • -

#15 RandyMarsh  Icon User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 16
  • Joined: 03-May 13

Re: C# help or supposed help

Posted 03 May 2013 - 02:21 PM

I created another thread.... as you said with code.
Was This Post Helpful? 0
  • +
  • -

  • (2 Pages)
  • +
  • 1
  • 2