473,387 Members | 1,569 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

c# lesson for c++ developers


I was sitting on my porch reading 'c# Class Design' from WROX press and i
thought this paragraph was interesting:

______
Where reference types are concerned, C++ developers will need to get used to
not thinking in terms of pointers. Although this is more-or-less what
happens behind the scenes, the CRL moves objects around on the managed heap
and adjusts references on the fly while the application is running. SInce
we don't notice this at run time and it's no obvious from the source code,
it confuses matters if you mentally try to tranlate between c# and c++ as
you write.
_____
This to me shows what a radical break there is between c++ and c# and how
being a c++ *guru* can be a real detriment to learning c#.

--
W '04 <:> Open
Nov 16 '05 #1
2 1007
'Tis true.

It isn't just that some things in C++ don't map directly to C# either; C/C++
coders tend to think at a lower level, "closer to the metal". This is great
for writing device drivers or real-time interaction, but isn't terribly
appropriate for producing line-of-business apps. C# very strongly
discourages the use of pointers and doesn't support macros, for example,
because such things are more evil than good for the kinds of applications C#
is optimized to address.

--Bob

"Matter Paneer" <ja*****@earthlink.net> wrote in message
news:La****************@newsread2.news.pas.earthli nk.net...

I was sitting on my porch reading 'c# Class Design' from WROX press and i
thought this paragraph was interesting:

______
Where reference types are concerned, C++ developers will need to get used to not thinking in terms of pointers. Although this is more-or-less what
happens behind the scenes, the CRL moves objects around on the managed heap and adjusts references on the fly while the application is running. SInce we don't notice this at run time and it's no obvious from the source code,
it confuses matters if you mentally try to tranlate between c# and c++ as
you write.
_____
This to me shows what a radical break there is between c++ and c# and how
being a c++ *guru* can be a real detriment to learning c#.

Nov 16 '05 #2
On Sun, 25 Apr 2004 22:09:48 -0700, "Bob Grommes" <bo*@bobgrommes.com>
wrote:
'Tis true.

It isn't just that some things in C++ don't map directly to C# either; C/C++
coders tend to think at a lower level, "closer to the metal". This is great
for writing device drivers or real-time interaction, but isn't terribly
appropriate for producing line-of-business apps. C# very strongly
discourages the use of pointers and doesn't support macros, for example,
because such things are more evil than good for the kinds of applications C#
is optimized to address.

--Bob


Try coming from embedded c and c++! My business partner is always
convincing me that I no longer need to optimise every single piece of
code for that extra 1uS performance!
Nov 16 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: larry | last post by:
Hi. Our company has about 20 application developers/architects and one certified dba. Our developers both design the databases and build the applications. We're confused about what permissions a...
2
by: Matter Paneer | last post by:
I was sitting on my porch reading 'c# Class Design' from WROX press and i thought this paragraph was interesting: ______ Where reference types are concerned, C++ developers will need to get used...
4
by: Jaga | last post by:
DataSet & XML Lesson 1 multidimensional XML data This is a known issue (KnowledgeBase 325696) "Although this XML document is well formed, it contains structure that Data view cannot display....
0
by: Jaga | last post by:
DataSet & XML Lesson 2 2*complex + 2*simple = 2much ? Hello, I have a XSD file with a valid schema (see below). I can see the schema-diagram in the XML-Designer of VisualStudio well, but when...
2
by: DCMyers1 | last post by:
I am trying to create a database to store my lesson plans in and I have hit a problem that I am sure is simple to solve but my lack of access (2000) ability is getting in the way. What I want to...
0
by: Joe Mayo | last post by:
I've recently updated the C# Tutorial at C# Station with a new addition, Lesson 17: Enums. The C# Tutorial may be found at http://www.csharp-station.com/Tutorial.aspx. Other updates include:...
132
by: Kevin | last post by:
I don't know if I should even start this topic but here goes. I'm an ex vb6 developer, now developing in C#. The reason why I started developing in C# is because the company that I worked for at...
3
by: Juan R. | last post by:
In http://canonicalscience.blogspot.com/2006/04/scientific-language-canonml-is.html] I presented some generic requirements for a markup language for science and mathematics. Basic features of...
4
by: Dave White | last post by:
Hello everyone, I would like to assign a lesson to many students as a group rather than individually. Any suggestions would be appreciated. Dave White
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.