Page 1 of 2 12 LastLast
Results 1 to 16 of 22

Thread: Good websites/books for help with C#?

  1. #1
    Senior Member Hicks12's Avatar
    Join Date
    Jan 2008
    Location
    Plymouth-SouthWest
    Posts
    6,586
    Thanks
    1,070
    Thanked
    340 times in 293 posts
    • Hicks12's system
      • Motherboard:
      • Asus P8Z68-V
      • CPU:
      • Intel i5 2500k@4ghz, cooled by EK Supreme HF
      • Memory:
      • 8GB Kingston hyperX ddr3 PC3-12800 1600mhz
      • Storage:
      • 64GB M4/128GB M4 / WD 640GB AAKS / 1TB Samsung F3
      • Graphics card(s):
      • Palit GTX460 @ 900Mhz Core
      • PSU:
      • 675W ThermalTake ThoughPower XT
      • Case:
      • Lian Li PC-A70 with modded top for 360mm rad
      • Operating System:
      • Windows 7 Professional 64bit
      • Monitor(s):
      • Dell U2311H IPS
      • Internet:
      • 10mb/s cable from virgin media

    Good websites/books for help with C#?

    Struggling a bit with some C# programming at the minute, been going through the book that was advised by my lecturer and its ok but i was just wondering if anyone has some recommendations on tutorial websites /books that actually talk you through how and why you do XYZ etc. Obviously using MSDN has helped me a great deal but its not always the best to just look at example code and extract the useful bits without properly understanding it.

    so, any suggestions?
    Quote Originally Posted by snootyjim View Post
    Trust me, go into any local club and shout "I've got dual Nehalem Xeons" and all of the girls will practically collapse on the spot at the thought of your e-penis

  2. #2
    Not a good person scaryjim's Avatar
    Join Date
    Jan 2009
    Location
    Gateshead
    Posts
    15,196
    Thanks
    1,230
    Thanked
    2,291 times in 1,874 posts
    • scaryjim's system
      • Motherboard:
      • Dell Inspiron
      • CPU:
      • Core i5 8250U
      • Memory:
      • 2x 4GB DDR4 2666
      • Storage:
      • 128GB M.2 SSD + 1TB HDD
      • Graphics card(s):
      • Radeon R5 230
      • PSU:
      • Battery/Dell brick
      • Case:
      • Dell Inspiron 5570
      • Operating System:
      • Windows 10
      • Monitor(s):
      • 15" 1080p laptop panel

    Re: Good websites/books for help with C#?

    Hmmmm, I've never used any books for C#, but then I came to it from doing Java at uni so I already had a decent handle on the basic principles and it was just a matter of learning the framework and the few (annoying!) differences in syntax.

    A lot depends on whether it's specific language features you're struggling with, or programming concepts in general? When I have picked up programming books to learn a language I usually go for the SAMS "Teach yourself ... in x (hours|days|weeks|etc.)" series, but you might find that C# specific books don't really explain things any better than MSDN and the multitude of forums you can search (stack overflow is a good one to keep an eye on). The ideal situation would be to find a more experienced programmer who can act as a kind of mentor, but it's not always easy to find a suitable candidate. If you're at college / uni though, can't you just ask your personal tutor or someone in the CS department to explain things to you? My experience was that there were plenty of postgrad students helping out on the lower level courses, and they were more than happy to spend half an hour chatting over a cup of coffee...

  3. Received thanks from:

    Hicks12 (16-03-2012)

  4. #3
    Seething Cauldron of Hatred TheAnimus's Avatar
    Join Date
    Aug 2005
    Posts
    17,164
    Thanks
    803
    Thanked
    2,152 times in 1,408 posts

    Re: Good websites/books for help with C#?

    The only book worth owning on C#, is the Ritcher Book:
    http://www.amazon.co.uk/CLR-via-3rd-.../dp/0735627045

    For everything simple I'd recommend the screen casts in the learning section of MSDN.

    What kind of things do you need to learn?

    More just generally programming things such as proper use of classes and access modified, why make things virtual and private or something along the lines of "WTF is this IEnumerable<T> stuff" or even something about the Xen of good software design?

    What kind of things are you trying to do, which you can't. Do you have any projects you want to build but you can't yet?
    throw new ArgumentException (String, String, Exception)

  5. Received thanks from:

    Hicks12 (16-03-2012)

  6. #4
    Senior Member Hicks12's Avatar
    Join Date
    Jan 2008
    Location
    Plymouth-SouthWest
    Posts
    6,586
    Thanks
    1,070
    Thanked
    340 times in 293 posts
    • Hicks12's system
      • Motherboard:
      • Asus P8Z68-V
      • CPU:
      • Intel i5 2500k@4ghz, cooled by EK Supreme HF
      • Memory:
      • 8GB Kingston hyperX ddr3 PC3-12800 1600mhz
      • Storage:
      • 64GB M4/128GB M4 / WD 640GB AAKS / 1TB Samsung F3
      • Graphics card(s):
      • Palit GTX460 @ 900Mhz Core
      • PSU:
      • 675W ThermalTake ThoughPower XT
      • Case:
      • Lian Li PC-A70 with modded top for 360mm rad
      • Operating System:
      • Windows 7 Professional 64bit
      • Monitor(s):
      • Dell U2311H IPS
      • Internet:
      • 10mb/s cable from virgin media

    Re: Good websites/books for help with C#?

    Thanks for the replies guys, i dont really have much past knowledge as all ive done is some programming in VBscript for my foundation year so not much to carry over . Think you have hit the nail on the head Animus, its not much about me struggling with actually going OK we need here that here etc, its more I dont fully understand the proper use of Classes etc. Proper coding structure and usage is really the bit im needed a good kicking at .

    All my projects are coming fine ive managed to get them done simply by using MSDN, i just want to have something that i can read that will show a proper/more efficient means of coding in c#. I know at the minute I seriously need to use more methods as apposed to just shoving it all in the Main(), doing that at the minute but its just the small things really, grand scheme of things I can get by but i want to improve my thinking for solutions.
    Quote Originally Posted by snootyjim View Post
    Trust me, go into any local club and shout "I've got dual Nehalem Xeons" and all of the girls will practically collapse on the spot at the thought of your e-penis

  7. #5
    Not a good person scaryjim's Avatar
    Join Date
    Jan 2009
    Location
    Gateshead
    Posts
    15,196
    Thanks
    1,230
    Thanked
    2,291 times in 1,874 posts
    • scaryjim's system
      • Motherboard:
      • Dell Inspiron
      • CPU:
      • Core i5 8250U
      • Memory:
      • 2x 4GB DDR4 2666
      • Storage:
      • 128GB M.2 SSD + 1TB HDD
      • Graphics card(s):
      • Radeon R5 230
      • PSU:
      • Battery/Dell brick
      • Case:
      • Dell Inspiron 5570
      • Operating System:
      • Windows 10
      • Monitor(s):
      • 15" 1080p laptop panel

    Re: Good websites/books for help with C#?

    Then something more general on Object Oriented design patterns might be better for you. Don't worry too much about the C# specifics, OO design is the same no matter what language you are using, it's all about encapsulation and code reuse (well, not *all*, but that's a good place to start). My guess is that you don't want to be using more methods as much as you want to be wrapping up related bits of logic and data in their own classes.

    I'm afraid I can't really help with any good primers on that kind of stuff as we covered it all at uni and I've not read much on it (it came kind of naturally to the way I think anyway, tbh). Googling "Introduction to Object Oriented Programming" gets plenty of hits though, and don't be scared of reading things that are not directly related to C# - the key is understanding the point of, and uses of, objects and classes, rather than knowing the nitty gritty of how to implement that.

  8. Received thanks from:

    Hicks12 (16-03-2012)

  9. #6
    Seething Cauldron of Hatred TheAnimus's Avatar
    Join Date
    Aug 2005
    Posts
    17,164
    Thanks
    803
    Thanked
    2,152 times in 1,408 posts

    Re: Good websites/books for help with C#?

    Yup these concepts aren't unique to C#!

    Its only worth looking at the smaller design patterns in C# once you've mastered those.
    throw new ArgumentException (String, String, Exception)

  10. #7
    Registered+
    Join Date
    Oct 2012
    Posts
    28
    Thanks
    0
    Thanked
    4 times in 3 posts

    Re: Good websites/books for help with C#?

    I have the Ritcher book and I don't recommend it as a book to learn C#. It teaches you a lot about how things work under the hood, but I don't think that level of detail is useful when starting to learn C#.

    I would grab a copy of "Pro C# 2010 And The .NET 4.0 Platform 5th Edition" (or whatever is the current edition) from Andrew Troelsen, it'll teach you some basics of C#, and certainly enough to start solving problems. If you need to know what happens under the hood later, then go and read the Ritcher book.

  11. #8
    Registered+
    Join Date
    Dec 2012
    Posts
    24
    Thanks
    0
    Thanked
    0 times in 0 posts

    Re: Good websites/books for help with C#?

    I have two C# books which I swear by. First is "Head First C#" and the second "The C# Programming Language"


    The first I used to learn, the second I use more as a reference.

  12. #9
    Senior Member
    Join Date
    Mar 2012
    Location
    Cambridge
    Posts
    240
    Thanks
    11
    Thanked
    6 times in 6 posts
    • davesom555's system
      • Motherboard:
      • Asrock B450M
      • CPU:
      • AMD 2600@4ghz
      • Memory:
      • 16GB Corsair 3000mhz
      • Storage:
      • 500gb Samsung 970 Evo NVME + multiple 2.5" SSDs
      • Graphics card(s):
      • Sapphire Vega 56 Pulse
      • PSU:
      • EVGA 700w
      • Case:
      • NZXT H400i mATX
      • Operating System:
      • Win 10
      • Monitor(s):
      • Samsung 27" QHD 144mhz
      • Internet:
      • 200mb

    Re: Good websites/books for help with C#?

    You could try checking out the Microsoft XNA library - theres lots of tutorials about for that and it makes learning C# quite fun. A lot of the tutorials apply good OO principles. I pretty much started out learning c# using that.

    Stackoverflow is a good site for asking questions and finding answers also - pretty much everything you need to know can be found on there

  13. #10
    Registered+
    Join Date
    Dec 2013
    Location
    Horsham
    Posts
    29
    Thanks
    0
    Thanked
    1 time in 1 post

    Re: Good websites/books for help with C#?

    The C# Programming Language 4th Edition
    and CLR via C# 4th Edition

  14. #11
    Registered+
    Join Date
    Sep 2012
    Posts
    99
    Thanks
    3
    Thanked
    9 times in 9 posts

    Re: Good websites/books for help with C#?


  15. #12
    Large Member
    Join Date
    Apr 2004
    Posts
    3,720
    Thanks
    47
    Thanked
    99 times in 64 posts

    Re: Good websites/books for help with C#?

    If you're struggling with the concepts, one day I'm sure it will click and you'll wonder why it wasn't utterly obvious before . Utterly contrived (and like most contrivances, probably quite bad) example:

    Code:
    abstract class Animal
    {
    abstract Speak();
    }
    
    class PedalAnimal extends Animal
    {
    PedalAnimal(int noLegs);
    PrintNoLegs()
    {
    Write('I've got %d legs.', noLegs);
    }
    }
    
    class Dog extends PedalAnimal 
    {
    Speak()
    {
    Write('Woof');
    }
    }
    
    class Cat extends PedalAnimal 
    {
    Speak()
    {
    Write('Meow');
    }
    }
    
    class Hyena extends Dog
    {
    Speak()
    {
    Write('Whatever that noise hyenas make here');
    }
    }
    Not sure you need a book to understand this basic OO stuff, and once this is understood you're over halfway there.
    To err is human. To really foul things up ... you need a computer.

  16. #13
    Registered+
    Join Date
    Jul 2013
    Location
    Milton Keynes
    Posts
    36
    Thanks
    3
    Thanked
    4 times in 4 posts
    • Chris-UK's system
      • Motherboard:
      • Asus Maximus Hero
      • CPU:
      • i7-4770K @ 4.5GHz (H105 Cooler)
      • Memory:
      • 16GB Corsair Vengeance
      • Storage:
      • 250GB Samsung Evo SSD + 2TB Seagate HD
      • Graphics card(s):
      • EVGA GTX 770 SC ACX (2x SLI)
      • PSU:
      • OCZ ZS 750w
      • Case:
      • Corsair 750D
      • Operating System:
      • W8.1
      • Monitor(s):
      • 2x BenQ G2450
      • Internet:
      • BT Infinity

    Re: Good websites/books for help with C#?

    I can recommend Visual C# 2010 Step-by-Step (John Sharp) and Head First C#. The first time I looked at the Head First series I found I was looking all over the page trying to take all the information in (its not linear as such which is what I'm used to from Uni studies). Having sat down and read it though I found it good that you begin writing code almost immediately.

  17. #14
    HEXUS.social member finlay666's Avatar
    Join Date
    Aug 2006
    Location
    Newcastle
    Posts
    8,546
    Thanks
    297
    Thanked
    894 times in 535 posts
    • finlay666's system
      • CPU:
      • 3570k
      • Memory:
      • 16gb
      • Graphics card(s):
      • 6950 2gb
      • Case:
      • Fractal R3
      • Operating System:
      • Windows 8
      • Monitor(s):
      • U2713HM and V222H
      • Internet:
      • cable

    Re: Good websites/books for help with C#?

    Quote Originally Posted by yamangman View Post
    Utterly contrived (and like most contrivances, probably quite bad) example:
    Not to mention very syntactically incorrect for C# You're missing overrides, virtuals, interfaces and setting the accessibilty level for methods/classes

    You would want abstract for Speak/Move (as they must be implemented) but virtual for things like Climb as not all animals can climb

    You would also use an interface instead of an abstract class as it's the way you implement multiple inheritance in C# as you could have
    H3XU5 Social FAQ
    Quote Originally Posted by tiggerai View Post
    I do like a bit of hot crumpet

  18. #15
    Large Member
    Join Date
    Apr 2004
    Posts
    3,720
    Thanks
    47
    Thanked
    99 times in 64 posts

    Re: Good websites/books for help with C#?

    I don't aim for syntactical correctness when doing hastily-typed pseudocode. I could've explained to add 'voice' interfaces to the ctor which would in turn call the appropriate methods for speaking, for better L and I in SOLID'ness, which in turn helps with DI in the future, but its not my intention to bamboozle the OP. The previous example was an intention to show in a simple way the heirarcy, which I consider the most important and probably the lions share of what is required for a solid foundation to begin learning.
    To err is human. To really foul things up ... you need a computer.

  19. #16
    Registered+
    Join Date
    Dec 2013
    Posts
    13
    Thanks
    0
    Thanked
    0 times in 0 posts

    Re: Good websites/books for help with C#?

    This book is good included fundamentally concept of c# 5.0 and .Net 4.5 remember c# is just a language tool, what you doing is join.net family.
    When have enough OOP knowledge then move to design pattern. Do more code will quicker than just reading books.

    http://www.amazon.co.uk/s/ref=ntt_at...=relevancerank

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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