Re: Are _T() and TEXT() macros equivalent?



a while ago I asked how come Microsoft didn't make a switch or some #define
or whatever that made default literal strings be Unicode without any
adornments.
And I think it was explained at the time that it would be non-standard
compliant :-)


... and having to refer everyone to the history of it all just makes it
more maddening.
As a platform creator (as MS is) you have two options when things evolve:
- Redesign the whole thing "clean and nice". This takes a lot of resources,
and will break a lot of things developed by 3rd party.
- Patch things to make it work, in the same time keeping compatibility.
There is no need to read the history to use the stuff. But is nice to
read it, so that you can understand why the crap is crap.

Don't you have any code that you wrote 10 years ago that now you would do
differenty? And would it not be nice to be able to explain to somebody
reading your code today and judging you why is so crapy, what where the
restrictions and the reasons at the time?


but I think that .NET has raised the bar in terms of simplicity
and straightforwardness
If it did not, then there it would be no reason to create it :-)

is going to be the new standard by which
C++ is judged by, and my IMHO, it isn't doing so great right now, and the
attitude of explaining the situation away by referring to history isn't
going to help.
There are already compatibility problems between .NET 1.1 and 2.0
Wait 10-20 years and let's see then how clean .NET will look like :-)

Knowing the history helps me:
- Because I can better accept that something is crap because of
good reasons, than because of stupidity. It does no help me
use the system, true.
- Because it teaches me how to deal with an old legacy system,
if I have to maintain one.


--
Mihai Nita [Microsoft MVP, Windows - SDK]
http://www.mihai-nita.net
------------------------------------------
Replace _year_ with _ to get the real email
.



Relevant Pages

  • Re: Hey Aggy, another hole for your theories!
    ... does not make you an expert on Roman history. ... Four years at university and they didn't tech you about the poets taking earlier historical texts, and using similes, first alluding to the gods taking the form of the kings the original texts were about and then the next generation of poets going even further with the similes and instead if describing the god as resplendent like a peacock they made him into a peacock. ... I know crap when I read crap and what you write is crap. ...
    (rec.arts.drwho)
  • Re: Hey Aggy, another hole for your theories!
    ... reputable university to show for it) studying Classics: ... I now have a master's degree in History so I have done my time, ... I know crap when I read crap and what you write is crap. ... Capitalism is the astounding belief that the most wickedest ...
    (rec.arts.drwho)
  • Re: Quiet night last night...
    ... religion-of-their-parents says to do or NOT to do, ... were to force feed this crap onto her classes in grade ... There's some history, totally ignored of course, that needs to be the focus ... secret societies, just ask them. ...
    (rec.boats)
  • Re: The Real Da Vinci Code Re: What newsgroup is this?
    ... claimed there were several hundred years missing from history. ... the books debunking all this crap are much less ... As far as Brown is involved, his book served at least one useful ... it enormously irritated staff of the Louvre (and, ...
    (soc.history.medieval)
  • Re: Todays Dish Towel, etc
    ... Generalizing for the moment, I've found that cute towels tend to be terry cloth, like those you use in the bathroom. ... As far as dogs, they need to crap in your yard, meaning you have to clean it up. ... If you keep the animal on a lead it will only crap on the nature strip, not the neighbours' lawns, and you will in any case pick up the poo as the law requires in the bag which you take with you. ...
    (rec.food.cooking)

Loading