473,785 Members | 2,919 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

a question about this book

I'm thinking about reading Beginning C# Objects: From Concepts to Code
because I still don't have a great grasp of objects, but I wonder if C#
2.0 will change things enough that a lot of what's in the book will no
longer be relevant or applicable? I know generics are the big change,
but since I don't have much of a concept of what they are yet, I don't
know how much they (and other changes) will effect any of the content of
books released before 2005.

Thanks.
Nov 17 '05
11 1232
Rick Elbers <ri*********@ch ello.nl> wrote:
It might be worse as we will discover if c#2.0 goes live. Templates or
generics as c# wants to call them are notorious for abuse and defeat
of good OO design. The parameters break the encapsulation.


Fortunately generics are a bit more restricted than C++ templates, in
an attempt to reduce the abuse. I'm not hugely familiar with all the
ins and outs of C++ templates so don't know all of the kinds of abuse,
but hopefully it'll be a bit better with C#. (Sound familiar from the
operator overloading discussion? ;)

--
Jon Skeet - <sk***@pobox.co m>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
Nov 17 '05 #11
Jon,
On Sun, 8 May 2005 15:33:55 +0100, Jon Skeet [C# MVP]
<sk***@pobox.co m> wrote:
Rick Elbers <ri*********@ch ello.nl> wrote:
It might be worse as we will discover if c#2.0 goes live. Templates or
generics as c# wants to call them are notorious for abuse and defeat
of good OO design. The parameters break the encapsulation.


Fortunately generics are a bit more restricted than C++ templates, in
an attempt to reduce the abuse. I'm not hugely familiar with all the
ins and outs of C++ templates so don't know all of the kinds of abuse,
but hopefully it'll be a bit better with C#. (Sound familiar from the
operator overloading discussion? ;)


Sure. I see a pattern too. One other problem not solved in c++
templates was polymorphism inside stl containers. Therefore a lot of
people implemented polymorphy with pointer containers in which case
you can create polymorphic containers. Then the ownership problem
emerged, which was not present in the original beautiful stl design,
cause stl container is not going to delete your pointers. Both
problems are probably not generic for c# lol.

Regards,
Rick
Nov 17 '05 #12

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

Similar topics

2
1994
by: Aljo_ | last post by:
Hello! I got a free evaluation copy of Borland's JBuilder9. I also got a book about JAVA, and I am trying to type, compile and run some examples from the book. The following - very simple - source comes from my book, and I get the errormessage that the applet isn't initialised.
1
2136
by: William Ryan | last post by:
Well, that depends. http://www.amazon.com/exec/obidos/tg/detail/- /0672320681/qid=1056861878/sr=1-1/ref=sr_1_1/002-7953039- 7491213?v=glance&s=books Is a must read IMHO for any ASP.NET developer. www.dotnetjunkies.com and their book http://www.amazon.com/exec/obidos/tg/detail/- /0672321068/ref=lib_dp_TFCV/002-7953039-7491213? v=glance&s=books&vi=reader#reader-link is another great resource.
8
1934
by: noid droid | last post by:
Hi. I posted yesterday asking if C# lived up to the hype. Thus far the feedback has been all positive. (Thanks.) Can anyone suggest GOOD books for learning C# and the Visual Studio .NET IDE? If there is a book that covers both, that would be great. Also, is it necessary for me to learn a lot about the .NET framework that wouldn't also be covered in one of the books? If I can find a book that'll get me up and running with the IDE...
7
1348
by: Lior Bobrov | last post by:
Hi . I have experience in VB6 . Recently , I started learning (independently) VB.NET , under the Beta 1 version of VS2005 . However , there are not many books about VB2005 : VB2005 isn't completed yet . Would I buy a book about VB.NET 2003 ? and if yes , which book/s is/are recommended , and what are the advantages/disadvantages of each of the books ?
9
2026
by: me | last post by:
Hi All, I am new to Classes and learniing the ropes with VB.NET express Here's my question - say I have a want to manage a list of books. Each book has an Author, Title and ISBN Now, I am used to using Arrays so I would normally do something like this: Set an array up during the init routine (called from form_load) say of
36
2547
by: utab | last post by:
Dear, I have experince in C( numerical projects, like engineering problems, scientific applications) I have the basic notion of C++ also, I have read Accelerated C++ until Chapter 7, however it seems that it discusses the std and the other part of the language with your own abstractions. Is that better to read a book first on the basic concepts of C++ language (but not the C part) that gives the basics as if the reader is a beginner...
0
1424
by: happy | last post by:
you can take a look for this web sites http://www.imanway.com/vb/forumdisplay.php?f=90 http://www.geocities.com/islamone_l/index.htm or read this ==================================================
11
2399
by: Diego Martins | last post by:
for me, these items are in the 'tricky zone' of C++ does anyone know good material with that? (dealing with subtle details, pitfalls, good practices...) anything like the Effective series from Meyers would be fine ;) thanks! Diego
56
2439
by: nembo kid | last post by:
What do you think about the following book: C How to Program, 5/E (Harvey & Paul) Deitel & Associates, Inc. <http://www.pearsonhighered.com/educator/academic/product/0,3110,0132404168,00.html> Thanks in advance.
8
1900
by: wangdaixing | last post by:
I am reading "Programming .NET Components" 2nd Edition by Juval Lowy, O'Reilly. In Appendix E, there is a chapter "Coding Practices" which I agree and practice mostly. However, there are a few items I don't quite understand why as listed below, my questions are marked Q: 10. Avoid method-level document. a. Use extensive external documentation for API documentation. b. Use method level comments only as tool tips for other developers. ...
0
9643
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9480
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10319
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10087
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7496
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5511
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4046
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3645
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2877
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.