2,624 karma · joined June 25, 2011
It's clearly harmful to write escape codes in string literals. They are not readable.
The escape code to change any text to red should appear in code exactly once.
This is analogous to HTML inline styles.
That's why I think they have these strings in the code.
The actual (one of them) article referenced is this (from Cell):
"At worst" calculation is just calculating the worst case (string not found) where it has to scan the whole string and... access each byte twice.
It doesn't matter whether we have a worst case or not. They claim two memory accesses per character.
IBM went their own way with OS/2 and Microsoft hired Dave Cutler from Digital to develop NT over several years. Windows NT is not OS/2. It never was.
Well, it's not ok. It's bad. It's irresponsible.
There is a lot of basic stuff on that list one has to know.
Is this condescending attitude really necessary or useful?
"You are absolutely not going to 100% SSE2 out in the real world. In fact, you have many 16-bit x86 systems out there. There are people running companies on Apple II computers."
Right, "companies running business on Apple II computers" is a relevant argument for... absolutely nothing.