C#
-
I just can't seem to get motivated to learn it. Every time I get a small project that I think would be good to learn C#, I get frustrated because I don't even know how to read/write files and figure I could just do it faster in C++ anyway. Does anyone else have this problem? What book would you recommend to get into it? I've gone through the articles here, but I think I need more. I dunno, I got used to doing everything the MFC way, now it's like I'm stuck. It's still hard not to have a seperate .h and .cpp :~ ~Nitron.
ññòòïðïðB A
startNitron wrote: I just can't seem to get motivated to learn it. I feel the same as you. .net just seems like a step down as far as "purity"... Sure it's got everything including the kitchen sink, but there's just something uncool about it... Not that I wouldn't sacrifice my firstborn to have someone pay me to learn and use it, but, you know... As far as developing stuff for myself, I just don't like it yet. ...Steve
-
I just can't seem to get motivated to learn it. Every time I get a small project that I think would be good to learn C#, I get frustrated because I don't even know how to read/write files and figure I could just do it faster in C++ anyway. Does anyone else have this problem? What book would you recommend to get into it? I've gone through the articles here, but I think I need more. I dunno, I got used to doing everything the MFC way, now it's like I'm stuck. It's still hard not to have a seperate .h and .cpp :~ ~Nitron.
ññòòïðïðB A
startNitron wrote: I got used to doing everything the MFC way, now it's like I'm stuck. There's the real problem. To kick the MFC habit, you could try cold turkey, but I was successful with the gum. (There's also a patch.) I've been MFC-free for four years now, and have never felt better! The generation of random numbers is too important to be left to chance.
-
Nitron wrote: I got used to doing everything the MFC way, now it's like I'm stuck. There's the real problem. To kick the MFC habit, you could try cold turkey, but I was successful with the gum. (There's also a patch.) I've been MFC-free for four years now, and have never felt better! The generation of random numbers is too important to be left to chance.
-
Nitron wrote: I just can't seem to get motivated to learn it. I feel the same as you. .net just seems like a step down as far as "purity"... Sure it's got everything including the kitchen sink, but there's just something uncool about it... Not that I wouldn't sacrifice my firstborn to have someone pay me to learn and use it, but, you know... As far as developing stuff for myself, I just don't like it yet. ...Steve
-
welll.... I've been working with C# and ASP.net solely for the last six months, I miss c++. Get a good book, maintain a seperate coding style for developing in c# than MFC. Try creating small applications. Take a look at the quickstarts and implement new features in them. However, C# is really nice about support built in for Regular expressions and collections. -Steven Hicks
CPA
CodeProjectAddict
Actual Linux Penguins were harmed in the creation of this message.
More tutorials: Ltpb.8m.com: Tutorials |404Browser.com (Download Link)
-
Nitron wrote: Does anyone else have this problem? Not really, like any other undertaking, how quickly you progress depends upon your attitude and desire. Not to say that there hasn't been frustration along the way. Nitron wrote: What book would you recommend to get into it? I found "C# for Experienced Programmers," from Deitel, to be very helpful. Gary Kirkham Forever Forgiven and Alive in the Spirit He is no fool who gives what he cannot keep to gain what he cannot lose. - Jim Elliot Me blog, You read
-
Nitron wrote: I got used to doing everything the MFC way, now it's like I'm stuck. There's the real problem. To kick the MFC habit, you could try cold turkey, but I was successful with the gum. (There's also a patch.) I've been MFC-free for four years now, and have never felt better! The generation of random numbers is too important to be left to chance.
Hey. That's not funny. My Grandpa died trying to quit mfc... I got no problem quitting mfc. It's repulsive. But i'd just like to see microsoft TRY to pry win32 out of my cold dead dusty hands... X|
-
Nitron wrote: I just can't seem to get motivated to learn it. I feel the same as you. .net just seems like a step down as far as "purity"... Sure it's got everything including the kitchen sink, but there's just something uncool about it... Not that I wouldn't sacrifice my firstborn to have someone pay me to learn and use it, but, you know... As far as developing stuff for myself, I just don't like it yet. ...Steve
Steve Hazel wrote: .net just seems like a step down as far as "purity"... Compared to what? COM? MFC? VB6? Man, .NET blows all those away as far as purity goes: .NET is so consistent across all its APIs -- whether that be web services, web apps, client apps, distributed apps, Windows services -- the "pure", consistent, virgin feeling of .NET is what initially drew me to it. I was sick of all the bizarre twists and turns of Win32, MFC, and COM: different threading models, programming styles, memory managements, naming conventions, and API designs. When coming from all that, .NET was a total breath of fresh air to and really puts the former frameworks/APIs to shame in my mind. It is really a unification of many different application programming concepts, so that you can keep your code consistent, rather than having to deal with multiple frameworks with different programming styles. I think one of the reasons for this is the FxCop software that gets run on the framework, checking for design inconsistencies, propery naming conventions, and so on. It really gives .NET a streamlined, consistent feel that is far more "pure" than Microsoft's previous application framework attempts. Just my humble opinion. :)
Tech, life, family, faith: Give me a visit. I'm currently blogging about: Homosexuality in Christianity Judah Himango
-
(Steven Hicks)n+1 wrote: C# is really nice about support built in for Regular expressions and collections. is that like std::find_if and std::vector? :rolleyes: [edit] weird, this was supposed to go to s. hicks :~ [/edit] ~Nitron.
ññòòïðïðB A
startLooks like an db indexing issue chris. In reguards to the built insupport for collections its like Java with memory management and holding individual items. Also, its easier to build abstract data types and collections (based/inherited on List item/arraylist/whatnot). Regular expressions are a simple thing compaired to find_if, its like an SQL search query compaired to ilterating through all the rows and doing a string.find/indexof. Just a small note... if you don't watch out this will piss you off a lot (like it did for me at first) String.Replace returns the modifed string, unlike CString::Replace. -Steven
-
I just can't seem to get motivated to learn it. Every time I get a small project that I think would be good to learn C#, I get frustrated because I don't even know how to read/write files and figure I could just do it faster in C++ anyway. Does anyone else have this problem? What book would you recommend to get into it? I've gone through the articles here, but I think I need more. I dunno, I got used to doing everything the MFC way, now it's like I'm stuck. It's still hard not to have a seperate .h and .cpp :~ ~Nitron.
ññòòïðïðB A
startC# and the .NET Platform by Andrew Troelsen. Inside C# by Tom Archer. Only two books you need. Regards, Brian Dela :-) Blog^ Co-author of The Outlook Answer Book... Go on, pre-order^ it today! Regular Expression Library builder^
-
Hey. That's not funny. My Grandpa died trying to quit mfc... I got no problem quitting mfc. It's repulsive. But i'd just like to see microsoft TRY to pry win32 out of my cold dead dusty hands... X|
-
Steve Hazel wrote: .net just seems like a step down as far as "purity"... Compared to what? COM? MFC? VB6? Man, .NET blows all those away as far as purity goes: .NET is so consistent across all its APIs -- whether that be web services, web apps, client apps, distributed apps, Windows services -- the "pure", consistent, virgin feeling of .NET is what initially drew me to it. I was sick of all the bizarre twists and turns of Win32, MFC, and COM: different threading models, programming styles, memory managements, naming conventions, and API designs. When coming from all that, .NET was a total breath of fresh air to and really puts the former frameworks/APIs to shame in my mind. It is really a unification of many different application programming concepts, so that you can keep your code consistent, rather than having to deal with multiple frameworks with different programming styles. I think one of the reasons for this is the FxCop software that gets run on the framework, checking for design inconsistencies, propery naming conventions, and so on. It really gives .NET a streamlined, consistent feel that is far more "pure" than Microsoft's previous application framework attempts. Just my humble opinion. :)
Tech, life, family, faith: Give me a visit. I'm currently blogging about: Homosexuality in Christianity Judah Himango
Judah Himango wrote: .NET is so consistent across all its APIs Right. That's why, DataColumn has a ColumnName property, not Name, as it is everywhere else in the API's. It's the inconsistencies that get you. And .NET has them as well. Marc My website
Latest Articles: Object Comparer String Helpers -
Steve Hazel wrote: .net just seems like a step down as far as "purity"... Compared to what? COM? MFC? VB6? Man, .NET blows all those away as far as purity goes: .NET is so consistent across all its APIs -- whether that be web services, web apps, client apps, distributed apps, Windows services -- the "pure", consistent, virgin feeling of .NET is what initially drew me to it. I was sick of all the bizarre twists and turns of Win32, MFC, and COM: different threading models, programming styles, memory managements, naming conventions, and API designs. When coming from all that, .NET was a total breath of fresh air to and really puts the former frameworks/APIs to shame in my mind. It is really a unification of many different application programming concepts, so that you can keep your code consistent, rather than having to deal with multiple frameworks with different programming styles. I think one of the reasons for this is the FxCop software that gets run on the framework, checking for design inconsistencies, propery naming conventions, and so on. It really gives .NET a streamlined, consistent feel that is far more "pure" than Microsoft's previous application framework attempts. Just my humble opinion. :)
Tech, life, family, faith: Give me a visit. I'm currently blogging about: Homosexuality in Christianity Judah Himango
...purity... Judah Himango wrote: Compared to what? COM? MFC? VB6? Compared to C++/Win32, of course :) In terms of less code and close to the roots of the OS for the kinds of apps I like to write - small utility apps with some GUI, but not tons. Once .net isn't just another layer, i might change my mind. But since NT, I haven't really seen any layers rewritten or removed - just glommed on... Well, I -have- seen improvement. All I'm sayin' is before MS takes away win32, they better give me a good low level API to the OS. Well, I -hope- they will... Pray?
-
I just can't seem to get motivated to learn it. Every time I get a small project that I think would be good to learn C#, I get frustrated because I don't even know how to read/write files and figure I could just do it faster in C++ anyway. Does anyone else have this problem? What book would you recommend to get into it? I've gone through the articles here, but I think I need more. I dunno, I got used to doing everything the MFC way, now it's like I'm stuck. It's still hard not to have a seperate .h and .cpp :~ ~Nitron.
ññòòïðïðB A
startNitron wrote: I get frustrated because I don't even know how to read/write files and figure I could just do it faster in C++ anyway. I had the exact same problem. You just have to push yourself through it. And besides, you're supposed to use XML for file I/O. ;P Nitron wrote: What book would you recommend to get into it? I wouldn't recommend a book. It's more a question of forcing yourself to do it. After reading a book, you'll still be stuck in "doing it". But, I must say, after having been "doing it" for a couple years now (geez, has it been that long???), I absolutely love C#. There's a few nits, of course. And keep in mind, C# is a language. .NET is a framework. There are many evils in the .NET framework, but there are also many joys. Frankly, I found a lot more joys with .NET than I ever did with MFC. Marc My website
Latest Articles: Object Comparer String Helpers -
;)
-
Inside C# by Tom Archer was the book that hooked me into C#. I suffered from the same kind of problems you seem to be having. C# and .NET requires a slightly different way of thinking. It was actually MyXaml[^] that really got me into C#. It helped me realise the true power and flexiblity of the .NET framework. I was an MFC programmer for going on 10 years, it was hard to change but I've found it to be very worthwhile. Michael CP Blog [^] Development Blog [^]
Me too. I got hooked on exactly the same book. Though I waited for the second edition. Nice one Tom.
"Je pense, donc je mange." - Rene Descartes 1689 - Just before his mother put his tea on the table. Shameless Plug - Distributed Database Transactions in .NET using COM+
-
Me too. I got hooked on exactly the same book. Though I waited for the second edition. Nice one Tom.
"Je pense, donc je mange." - Rene Descartes 1689 - Just before his mother put his tea on the table. Shameless Plug - Distributed Database Transactions in .NET using COM+
Giles wrote: Me too. I got hooked on exactly the same book. Though I waited for the second edition. Nice one Tom. The book was so good, I bought both the first and second edition :-D Michael CP Blog [^] Development Blog [^]
-
Giles wrote: Me too. I got hooked on exactly the same book. Though I waited for the second edition. Nice one Tom. The book was so good, I bought both the first and second edition :-D Michael CP Blog [^] Development Blog [^]
I sneaked a peep in a book shop at the first edition, but knew there was already a second edition on the way, so I waited. I swaer to God, I had it as bed time reading for a week. I would have finished it quicker, but my wife would make me turn the light off. I love the twist at the end with the murder. :-D Good book, and recommened to any C++ programme like me who needed some convincing. Can't wait for the generics and anonymous functions. I'm not one for beta's though. I hate reinstalling machines.
-
I just can't seem to get motivated to learn it. Every time I get a small project that I think would be good to learn C#, I get frustrated because I don't even know how to read/write files and figure I could just do it faster in C++ anyway. Does anyone else have this problem? What book would you recommend to get into it? I've gone through the articles here, but I think I need more. I dunno, I got used to doing everything the MFC way, now it's like I'm stuck. It's still hard not to have a seperate .h and .cpp :~ ~Nitron.
ññòòïðïðB A
startThe total extent of my C# programming is modifing the code in this[^] article so it saves the settings to disk. I just really like C++ and MFC so I have no desire to learn C#. Supposedly the .NET framework is supposed to be easier to access from C++/MFC as of VC2005, so I will wait until it comes out to see what the big deal of the framework is.
"You're obviously a superstar." - Christian Graus about me - 12 Feb '03 "Obviously ??? You're definitely a superstar!!!" - mYkel - 21 Jun '04 "There's not enough blatant self-congratulatory backslapping in the world today..." - HumblePie - 21 Jun '05 Within you lies the power for good - Use it!
-
...purity... Judah Himango wrote: Compared to what? COM? MFC? VB6? Compared to C++/Win32, of course :) In terms of less code and close to the roots of the OS for the kinds of apps I like to write - small utility apps with some GUI, but not tons. Once .net isn't just another layer, i might change my mind. But since NT, I haven't really seen any layers rewritten or removed - just glommed on... Well, I -have- seen improvement. All I'm sayin' is before MS takes away win32, they better give me a good low level API to the OS. Well, I -hope- they will... Pray?
Ok, that's an argument I've heard before. But why do you need to have an API close to the OS? Doesn't that tie you to a particular OS and make it more likely that you'll royally corrupt OS dealings, e.g. the memory of other processes? And how "low" is low, kernel calls? Or calls into a library which relies on the kernel? I always find it interesting that certain hardliners :-) have this need to be low-level. Reminds me of the "C++ is too slow & too abstracted! I'm going back to C/Asm!" bunk that was prevalent for sometime in the 90s. Oh well. As far as .NET being "another layer", that's partially true; it really depends on what you're doing. .NET Windows Forms (System.Windows.Forms) apps are a layer on Win32...but other APIs like System.Xml, or a vast number of web APIs relied on by ASP.NET are managed. This article[^] has some good info regarding WinFX, the "all-managed" principle API of Windows Longhorn. Like Win32, WinFX will have the ability to make system calls directly, bypassing the Win32 middleman. In actuality, new services specific to Longhorn will be available only through WinFX, at least initially, so I've heard.
Tech, life, family, faith: Give me a visit. I'm currently blogging about: Homosexuality in Christianity Judah Himango