1. #1

    First Language: C# - Where do I start?

    'ello. I've made up my mind on what programming language i'll start with - and that's C# - but the question is where should I start? I already have Visual Studio. The thing that pushed me over the fence is that all mobile platforms support C# in one way or another and it has pretty far and wide capabilities. The thing is, every time i've tried to learn a language, I get distracted too easily and/or am overwhelmed by resources, in turn making me quit and forget about it.
    "Marketing is what you do when your product is no good."

  2. #2
    Printing "Hello world" to the terminal is generally the first place to start

  3. #3
    Get a well rated beginning level book from amazon (read comments also) and read it. Its best way to learn a language

  4. #4
    Quote Originally Posted by jonny888 View Post
    Printing "Hello world" to the terminal is generally the first place to start
    /clap

    that was my first program I ever wrote

  5. #5
    Quote Originally Posted by Purenight View Post
    /clap

    that was my first program I ever wrote
    I believe that's everyone ever's first program .
    The thing is there's hellovalot more then that in a programming language.( Unless the goal is to display it in the most fancy way possible)
    "Marketing is what you do when your product is no good."

  6. #6
    Deleted
    For myself, to learn a new programming or scripting language, I need a project. I can not stay focused without it.
    Come up with some kind of useful tool you would want to make, then using different sources, figure out how to make it.

    Hack it together as well as you can, and once it work, start cleaning it up. Once you are done, you have made something (hopefully) useful, at the same time as the original hacking phase taught you the basics of the language, and the cleaning up phase taught you how to code proper.

    For me, when I learned my first programming language I made a simple automatic updater program that synced and updated information between a web server and the local computer, just as an example.

    ---------- Post added 2012-09-24 at 10:42 PM ----------

    Quote Originally Posted by Marooned View Post
    Get a well rated beginning level book from amazon (read comments also) and read it. Its best way to learn a language
    If you want to die out of boredom and never pick the book up again.
    It may be the best way to learn a language for you, but many of us can't learn from books. We need to make stuff, and figure it out "by ourselves".

  7. #7
    Quote Originally Posted by azthal View Post
    For myself, to learn a new programming or scripting language, I need a project. I can not stay focused without it.
    Come up with some kind of useful tool you would want to make, then using different sources, figure out how to make it.

    Hack it together as well as you can, and once it work, start cleaning it up. Once you are done, you have made something (hopefully) useful, at the same time as the original hacking phase taught you the basics of the language, and the cleaning up phase taught you how to code proper.

    For me, when I learned my first programming language I made a simple automatic updater program that synced and updated information between a web server and the local computer, just as an example.

    ---------- Post added 2012-09-24 at 10:42 PM ----------



    If you want to die out of boredom and never pick the book up again.
    It may be the best way to learn a language for you, but many of us can't learn from books. We need to make stuff, and figure it out "by ourselves".

    I guess i'll go with this approach since that's what i've been doing on my hardware projects.

    Thing is though, although there's tons of gits, there's too many gits and I'll end up overwhelmed, on top of that, To make it work, i'll probably have to look up every function ever. Any way to avoid that or is it a given ?
    Last edited by Keller; 2012-09-24 at 09:48 PM.
    "Marketing is what you do when your product is no good."

  8. #8
    High Overlord Nemean's Avatar
    10+ Year Old Account
    Join Date
    Jun 2010
    Location
    Auburn, Al
    Posts
    131
    Start small, i recommend starting with learning variables (String, int, double, boolean, ect.) and how to manipulate them. Then move onto learning the basics of arrays. From there you can start to make simple applications. Like reading and writing to a text file. Remember that there is api out there for every built in method and class. It is your friend so be sure to use it. It will also help you better understand the method, as it should break down the method so that you can understand it.

    Also it would not be a bad idea to go and buy an intro to c# book if you are really interested in it. It should help you get started and then you can move into more complex stuff.

    Btw on average it takes a year to learn your first programming language, half a year for your second, 3 months for your third, ect...
    Last edited by Nemean; 2012-09-24 at 10:16 PM.
    CPU: Intel i5-2500k MB: ASRock Z77 Extreme
    GPU: Asus HD 7850 RAM: Mushkin Blackline 8GB
    HDD: WD Caviar Black 1TB PSU: OCZ 500W CASE: Cooler Master HAF 922

  9. #9
    I am Murloc! Xuvial's Avatar
    10+ Year Old Account
    Join Date
    Apr 2010
    Location
    New Zealand
    Posts
    5,215
    The furthest I went with C# was making a simple pocket calculator.

    I can tell you right now it took me a fuckload more time to code it than I thought it would, because while it did the job of solving math sums fine, stuff like mashing random buttons would quickly create a exception/handling errors and show my professor how easily breakable my program was :P

    Basically do what others have said, grab a Programming in C# book (soft or hard copy) and go from there. It should take you from the basics of C# programming (terminology, variables, etc) and guide you through simple projects starting from Hello World all the way to the more Intermediate/Advanced stuff. It's really fun, one of the only damn subjects I actually enjoyed as part of my degree!
    WoW Character: Wintel - Frostmourne (OCE)
    Gaming rig: i7 7700K, GTX 1080 Ti, 16GB DDR4, BenQ 144hz 1440p

    Signature art courtesy of Blitzkatze


  10. #10
    The Lightbringer Twoddle's Avatar
    10+ Year Old Account
    Join Date
    Feb 2011
    Location
    UK
    Posts
    3,775
    My first program.

    10 PRINT "HELLO"
    20 GOTO 10

    Quote Originally Posted by Nemean View Post
    Btw on average it takes a year to learn your first programming language, half a year for your second, 3 months for your third, ect...
    You got to be joking, it took me a week to learn BASIC inside out from a public library book with no previous knowledge of computers at all.

    For learning C# checkout the Soup to Nuts series webcasts for an express course, it's awesome, you'll be up and running in a few hours.

    A good book is C# for Programmers by Deitel.

    Your first program in C# will be something like designing a window with a Button and responding to its Click event by writing "Hello" on the screen with MessageBox.Show or changing the Text property of a Label. It all springs from there really.

  11. #11
    Take a course and learn the basics. As my old professor said once you learn the basics you should be able to use any language. Check with your local college/university or even your local high school.

    But it sounds like it's more like the toy syndrome with you where you play with a toy for 5 minutes, get bored and you move on to the next toy. I can't help you there as I have the same problem and I don't have a solution. lol.

  12. #12
    Quote Originally Posted by Xuvial View Post
    I can tell you right now it took me a fuckload more time to code it than I thought it would, because while it did the job of solving math sums fine, stuff like mashing random buttons would quickly create a exception/handling errors and show my professor how easily breakable my program was :P
    Try a fully programmable scientific calculator! Mwahaha.

    On the on-topic though, while C# is a great language I would recommend something like Python if you're learning to program. You can get so much more done with Python with more limited knowledge of the language and computer science in general than you can with pretty much anything else, and there's the added benefit of Python being used very widely in the industry. You could probably start from the bottom up on how to create a simple game and get it done pretty quickly.

    Quote Originally Posted by Twoddle View Post
    You got to be joking, it took me a week to learn BASIC inside out from a public library book with no previous knowledge of computers at all.
    There's a difference between memorizing a few commands and knowing a programming language. And honestly I'd say it takes more than a year to truly know the inside and outside of a programming language. It should take about as much as Nemean said if you want to learn it to be able to effectively use it as a tool for CS.

  13. #13
    Deleted
    These were fairly useful when I started learning C#.
    Otherwise pick up a book. If you search the CompSci department pages of Universities you may find certain professors host .pdf files of their books or first year material.

  14. #14
    Stood in the Fire
    10+ Year Old Account
    Join Date
    Oct 2010
    Location
    US
    Posts
    409
    http://www.microsoft.com/visualstudi...press-products
    start there. download the tools and look there also for examples and tutorials. There's tons of stuff

  15. #15
    Dreadlord
    10+ Year Old Account
    Join Date
    Sep 2010
    Location
    Detroit mi
    Posts
    992
    www.codeacademy.com if you dont need c# for your first language, this is the easiest way to get used to coding hands down IMO, although it only supports java, and python in beta. python is easy to learn though as its possibly the closest to a human(high level) language.
    Intel i5-2500k@4.4ghz
    Gigabyte Z68X-UD3H-B3
    Gigabyte N560OC 1gb gpu
    Corsair 2x4gb
    Antec v2 Two Hundred
    Razer Blackwidow Ultimate
    Razer Naga

  16. #16
    Quote Originally Posted by azthal View Post
    For myself, to learn a new programming or scripting language, I need a project. I can not stay focused without it.
    Come up with some kind of useful tool you would want to make, then using different sources, figure out how to make it.

    Hack it together as well as you can, and once it work, start cleaning it up. Once you are done, you have made something (hopefully) useful, at the same time as the original hacking phase taught you the basics of the language, and the cleaning up phase taught you how to code proper.

    For me, when I learned my first programming language I made a simple automatic updater program that synced and updated information between a web server and the local computer, just as an example.

    ---------- Post added 2012-09-24 at 10:42 PM ----------



    If you want to die out of boredom and never pick the book up again.
    It may be the best way to learn a language for you, but many of us can't learn from books. We need to make stuff, and figure it out "by ourselves".
    Both methods work. Nowadays I get far more from asking questions in stackoverflow than I do from reading books. I hardly ever actually read books nowadays

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •