Author |
Message |
james016
Doesn't have much of a life
Joined: Tue May 05, 2009 5:52 pm Posts: 1899
|
Hi all
In the last few days I have decided that it would be a good idea to learn to program. Mainly to expand my skill set and career options (way down the line). I have downloaded Visual Studio 2010 Express and have run through a couple of the tutorials.
Can anyone recommend any good beginner guides/books for VB and C# as I'd like to start with them though most likely one at a time. I was looking at the O'Reilly and Wrox websites but there are many books to choose from.
Many Thanks
_________________ My Flickr PageNow with added ball and chain.
|
Tue Jun 01, 2010 9:02 am |
|
 |
EddArmitage
I haven't seen my friends in so long
Joined: Thu Apr 23, 2009 9:40 pm Posts: 5288 Location: ln -s /London ~
|
Rob Miles is a teacher at Hull Uni, and a MVP, and he provides links to C# learning stuff (I wouldn't bother with VB.net), as well as his Yellow Book. If you come up with specific dificulties then I'd head over to Stack Overflow, but be aware that there are some rather detailed, obscure, dificult, (scary) questions asked there, although if you're willing to do some work and provide a minimal working example, you tend to get good answers.
|
Tue Jun 01, 2010 9:19 am |
|
 |
forquare1
I haven't seen my friends in so long
Joined: Thu Apr 23, 2009 6:36 pm Posts: 5150 Location: /dev/tty0
|
I don't have any book recommendations but: Stay away from the X for Dummies books. Basically, once you've read one for programming, you've read them all for programming.
Apress and O'Reilly are both really good publishers and I would really recommend pretty much any book from them that you find, especially O'Reilly.
EDIT: VB isn't a bad language to start off on, though C# or Java may be best as they are somewhat similar, meaning you can almost learn two languages in one.
Last edited by forquare1 on Tue Jun 01, 2010 10:16 am, edited 1 time in total.
|
Tue Jun 01, 2010 9:33 am |
|
 |
Nick
Spends far too much time on here
Joined: Thu Apr 23, 2009 11:36 pm Posts: 3527 Location: Portsmouth
|
I know a lot of people slate VB, and although it's not my favourite language - it is very simple. I personally think it's a good place to start, but don't limit yourself to it - after getting to grips with the basics I'd suggest moving on quickly to something like C or Java.
_________________
|
Tue Jun 01, 2010 10:03 am |
|
 |
EddArmitage
I haven't seen my friends in so long
Joined: Thu Apr 23, 2009 9:40 pm Posts: 5288 Location: ln -s /London ~
|

Sorry - just to add some clarification to my VB comment. Essentially, the advice not to learn VB first was because nearly everything you can do in VB.net you can also do in C#. There are a number of concepts I think it is important to learn early on, though, even if at a later date you use a language that doesn't implement them. I'm thinking of things like: [list=] [*]Static classes [*]The ternary operator [*]Case sensitivity - it's tricky and a pain to suddenly have to remember that case matters. [*]Semi-colon line termination - as above [/list] Actually, as I'm writing this list, I think the main thing is that the look and feel of VB is less like a lot of more-modern C-like languages, such as Java, C++, Objective C, PHP, ... Just little deviations in style more than anything else: [list=] [*]Code blocks are limited by curly braces in C#, and START-BlockName - END-BlockName [*]VB has IF-THEN-ELSE-ENDIF style conditionals; C# has if(){} else {} styled ones [*]C#'s keywords are more like what I'm used to from other languages [/list] Maybe I'm being fickle, and it has been a few years since I've done any real .Net development, and in that time VB does seem to have gained some features (Modules still confuse me, though!  ). Either language will do you fine, and both have dot-net at their heart, but personally I would choose to learn a C-style language first, before a "wordier" BASIC-type language.
|
Tue Jun 01, 2010 11:00 am |
|
 |
finlay666
Spends far too much time on here
Joined: Thu Apr 23, 2009 9:40 pm Posts: 4876 Location: Newcastle
|
VB is a bad language to start with, simplest reason is that a lot of how you do things in VB are very different in other C style languages, and most of what you will learn you will have to re-learn at a later date with any other language.
C# (or as much as I hate to say it.... Java) are better to start with for also learning OO principles
What kind of programming do you want to do, what do you want to be able to make? Depending on the nature of what you want to be able to do really dictates where you should start.
I highly recommend the MCTS foundation in .Net development (70-536 IIRC) as a good starting block to learn the features of .net (and you can get a qualification doing that and another exam too)
I'll have a look when I get home at the books I used to learn from although I transferred from C++ so syntax etc wasn't a problem
I'd suggest Java or C# to start with (avoid C++ until you are competent, it gives you a lot of ways to do very bad things which you will do as a beginning dev)
_________________TwitterCharlie Brooker: Macs are glorified Fisher-Price activity centres for adults; computers for scaredy cats too nervous to learn how proper computers work; computers for people who earnestly believe in feng shui.
|
Tue Jun 01, 2010 4:26 pm |
|
 |
Fogmeister
I haven't seen my friends in so long
Joined: Thu Apr 23, 2009 7:35 pm Posts: 6580 Location: Getting there
|
What Finn said.
|
Wed Jun 02, 2010 3:12 pm |
|
 |
james016
Doesn't have much of a life
Joined: Tue May 05, 2009 5:52 pm Posts: 1899
|
While waiting for the books to arrive I have been working through the tutorials on MSDN. I have played about with the Picture Viewer one and have managed to code it using the menu bar. What I would like to do is show the version number in the Message box that pops up when I click on the Help ==> About menu item. How do I do this as a Google search has left me scratching my head.
_________________ My Flickr PageNow with added ball and chain.
|
Fri Jun 04, 2010 10:37 am |
|
 |
EddArmitage
I haven't seen my friends in so long
Joined: Thu Apr 23, 2009 9:40 pm Posts: 5288 Location: ln -s /London ~
|
Having seen it here, it would appear to be something like to retrieve the version number as a string.
|
Fri Jun 04, 2010 1:33 pm |
|
 |
finlay666
Spends far too much time on here
Joined: Thu Apr 23, 2009 9:40 pm Posts: 4876 Location: Newcastle
|
You would need to include System.Reflection also
_________________TwitterCharlie Brooker: Macs are glorified Fisher-Price activity centres for adults; computers for scaredy cats too nervous to learn how proper computers work; computers for people who earnestly believe in feng shui.
|
Fri Jun 04, 2010 1:35 pm |
|
 |
EddArmitage
I haven't seen my friends in so long
Joined: Thu Apr 23, 2009 9:40 pm Posts: 5288 Location: ln -s /London ~
|
Bah! Just include all of System.*! (8-p)
|
Fri Jun 04, 2010 1:37 pm |
|
 |
finlay666
Spends far too much time on here
Joined: Thu Apr 23, 2009 9:40 pm Posts: 4876 Location: Newcastle
|
No need to introduce bad habits including libs that arent needed!
_________________TwitterCharlie Brooker: Macs are glorified Fisher-Price activity centres for adults; computers for scaredy cats too nervous to learn how proper computers work; computers for people who earnestly believe in feng shui.
|
Fri Jun 04, 2010 10:35 pm |
|
 |
forquare1
I haven't seen my friends in so long
Joined: Thu Apr 23, 2009 6:36 pm Posts: 5150 Location: /dev/tty0
|
I know it's a bad habit, but don't compilers get rid of unnecessary libraries? Or rather just don't include them?
|
Fri Jun 04, 2010 10:51 pm |
|
 |
finlay666
Spends far too much time on here
Joined: Thu Apr 23, 2009 9:40 pm Posts: 4876 Location: Newcastle
|
Nope, you should have to do it yourself, it's why VS2005/2008 has a Remove & sort function for specified libraries to include I think it's to do with loading DLL's among other things
_________________TwitterCharlie Brooker: Macs are glorified Fisher-Price activity centres for adults; computers for scaredy cats too nervous to learn how proper computers work; computers for people who earnestly believe in feng shui.
|
Fri Jun 04, 2010 11:56 pm |
|
 |
EddArmitage
I haven't seen my friends in so long
Joined: Thu Apr 23, 2009 9:40 pm Posts: 5288 Location: ln -s /London ~
|
Sorry, I wasn't being serious. This probably wasn't the thread for it though.
|
Sun Jun 06, 2010 9:55 pm |
|
|