Post: [C#] Understanding Console Applications Part 1
02-07-2014, 01:32 AM #1
Notorious
Caprisuns Is Back
(adsbygoogle = window.adsbygoogle || []).push({}); Hope you found my video helpful please like comment and subscribe


(adsbygoogle = window.adsbygoogle || []).push({});
02-07-2014, 03:39 PM #2
Pichu
RIP PICHU.
In any introductory video, you should be explaining the basic components of what Visual Studio has to offer. You do not jump into adding external references, explain what simple things such as:

using, public, static, statement blocks, etc are. Give a small explanation of Namespace and what a class file is.

You should be working with the core base components of what Console has at default, then once the user has a basic understanding of C# programming; you can work your way into some more advanced methods.

In regards to Console.WriteLine(""); where you wrote it 3 times, you should have just used an escape character Console.WriteLine("\n\n\n");

In Console though that is unnecessary, Skipping a single line is suggested.

Another thing, within the first 10 minutes you jump into using arrays, unsigned variables, strings, declaring class variables, instantiating class variables. That is too much to do in just a single video.

Next, you wrote in your try/catch Exception. You didn't create a handler for your Exception. You just wrote "Connection Failed"; more or less provide a reason:

    
catch (Exception e)
{
MessageBox.Show("e.ToString(), "Error");
}


This seems more like a tutorial to do something with the PS3 not with learning how to use a Console Application.

The following 2 users say thank you to Pichu for this useful post:

nicholasnogo, TreyarchTragedy
02-08-2014, 06:23 AM #3
Script
Banned
Originally posted by Pichu View Post
In any introductory video, you should be explaining the basic components of what Visual Studio has to offer. You do not jump into adding external references, explain what simple things such as:

using, public, static, statement blocks, etc are. Give a small explanation of Namespace and what a class file is.

You should be working with the core base components of what Console has at default, then once the user has a basic understanding of C# programming; you can work your way into some more advanced methods.

In regards to Console.WriteLine(""); where you wrote it 3 times, you should have just used an escape character Console.WriteLine("\n\n\n");

In Console though that is unnecessary, Skipping a single line is suggested.

Another thing, within the first 10 minutes you jump into using arrays, unsigned variables, strings, declaring class variables, instantiating class variables. That is too much to do in just a single video.

Next, you wrote in your try/catch Exception. You didn't create a handler for your Exception. You just wrote "Connection Failed"; more or less provide a reason:

    
catch (Exception e)
{
MessageBox.Show("e.ToString(), "Error");
}


This seems more like a tutorial to do something with the PS3 not with learning how to use a Console Application.


    
catch (Exception e)
{
MessageBox.Show(e.Message);
}
02-08-2014, 06:55 AM #4
Pichu
RIP PICHU.
Originally posted by Script View Post
    
catch (Exception e)
{
MessageBox.Show(e.Message);
}


e.ToString() provides the most amount of information regarding a current issue which can help one out much more if looking for bugs.

It also returns stacktrace information.

e.Message just sends a short message essentially.
02-08-2014, 11:20 PM #5
Notorious
Caprisuns Is Back
Originally posted by Pichu View Post
In any introductory video, you should be explaining the basic components of what Visual Studio has to offer. You do not jump into adding external references, explain what simple things such as:

using, public, static, statement blocks, etc are. Give a small explanation of Namespace and what a class file is.

You should be working with the core base components of what Console has at default, then once the user has a basic understanding of C# programming; you can work your way into some more advanced methods.

In regards to Console.WriteLine(""); where you wrote it 3 times, you should have just used an escape character Console.WriteLine("\n\n\n");

In Console though that is unnecessary, Skipping a single line is suggested.

Another thing, within the first 10 minutes you jump into using arrays, unsigned variables, strings, declaring class variables, instantiating class variables. That is too much to do in just a single video.

Next, you wrote in your try/catch Exception. You didn't create a handler for your Exception. You just wrote "Connection Failed"; more or less provide a reason:

    
catch (Exception e)
{
MessageBox.Show("e.ToString(), "Error");
}


This seems more like a tutorial to do something with the PS3 not with learning how to use a Console Application.


thanks for your feedback i really appreciate it! I will definately try to do some of the things you said!

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo