|
|
|
|
|
|
| |
| |
|
|
|
|
| |
| |
|
|
From Joelonsoftware
(http://www.joelonsoftware.com/articles/LeakyAbstractions.html):
"Amusingly, the history of the evolution of C++ over time can be
described as a history of trying to plug the leaks in the string
abstraction. Why they couldn't just add a native string class to the
language itself eludes me at the moment."
:)
--
...Ben Chambers
www.pacificwebguy.com
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Joel is an amazing guy. BTW, linked from this very article and still related to
strings is one of the best articles I've seen in IT blogs, a classic by now:
http://www.joelonsoftware.com/articles/fog0000000319.html
It also contains the Shlemiel the painter anecdote... :)
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Chambers a écrit :
> From Joelonsoftware
> (http://www.joelonsoftware.com/articles/LeakyAbstractions.html):
Incidentally, I've been reading his articles these last weeks, and
they're exceptionally interesting stuff !
Fabien.
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Chambers <ben### [at] pacificwebguycom> wrote:
> Why they couldn't just add a native string class to the
> language itself eludes me at the moment."
My guess: Because they wanted it to be possible for the user to specify
his own allocator for a string.
One guiding principle I see throughout the C++ standard library is that
it's rather flexible: For example, containers don't fix the memory allocator
they use to allocate space, but let the user specify his own allocator if
he wants to use one (eg. because of efficiency in certain situations, or
to allow some kind of user-implemented automatic garbage collection).
Normally a default allocator is used, and the user doesn't need to worry
about it. However, if the user wants to replace the allocator, he can.
If you think how you would add a native, language-level string (ie. not
just a class in a library) which would support a user-defined allocator
in C++, you would quite quickly find yourself reimplementing a templated
string class at language level.
--
- Warp
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
nemesis wrote:
> Joel is an amazing guy. BTW, linked from this very article and still related to
> strings is one of the best articles I've seen in IT blogs, a classic by now:
> http://www.joelonsoftware.com/articles/fog0000000319.html
>
> It also contains the Shlemiel the painter anecdote... :)
Thanks for the link, I'm quite enjoying it :)
Especially this quote: "This is what they're talking about when they say
that a particular program has a buffer overflow susceptibility. It was
the number one cause of hacks and worms in the olden days before
Microsoft Outlook made hacking easy enough for teenagers to do."
HA!
--
...Ben Chambers
www.pacificwebguy.com
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
"nemesis" <nam### [at] gmailcom> wrote in message
news:web.47df47ccbcbf94bf70d404d10@news.povray.org...
> Joel is an amazing guy. BTW, linked from this very article and still
> related to
> strings is one of the best articles I've seen in IT blogs, a classic by
> now:
> http://www.joelonsoftware.com/articles/fog0000000319.html
Thanks for that. I'm no programmer, but that was an interesting read that
I enjoyed. Even though I don't understand the code, he said it all in a
logical way.
~Steve~
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
St. wrote:
> Thanks for that. I'm no programmer, but that was an interesting read that
> I enjoyed. Even though I don't understand the code, he said it all in a
> logical way.
His articles on business sense are often more impressive then his
articles on programming sense. :-)
--
Darren New / San Diego, CA, USA (PST)
"That's pretty. Where's that?"
"It's the Age of Channelwood."
"We should go there on vacation some time."
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Darren New <dne### [at] sanrrcom> wrote:
> St. wrote:
> > Thanks for that. I'm no programmer, but that was an interesting read that
> > I enjoyed. Even though I don't understand the code, he said it all in a
> > logical way.
>
> His articles on business sense are often more impressive then his
> articles on programming sense. :-)
Yes. As Fa3ien noted, his last batch of articles are particularly evocative,
particularly his recap of internet browser history leading to the current state
of affairs and Microsoft's tough decision with IE8...
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |