22 karma · joined Mar 18, 2013 (13y ago) · 28 submissions
comment 2y ago · link · parent
There are many strings that are not user facing, which you expect to be of a certain nature, e.g. ASCII based protocols, and therefore you know what to do with them.
So the multi byte situation and strcpy, or std::string, or any other "standard" string function isn't really relevant as it's some other libraries duty.
the task of truncation and otherwise formatting UI strings is the preserve of the rendering layer(s).comment 2y ago · link · parent
- Having not actually tested this in my own repos, take my insight with the appropriate grain of salt.
comment 7y ago · link · parent
comment 7y ago · link · parent
Other sayings are "The spec is in the tickets, there is no user manual." "We have unit tests." and so on.
All this makes trouble - Especially when you consider in order to change a thing, you should aim to understand it's salient parts in the first place - but perhaps that is not agile or the scrum way according to some.
comment 9y ago · link · parent
People tend to take the length guidelines far too seriously though. Instead it requires thought and experience. The main Principe I try to follow is make it readable, it doesn't matter how it's written or if you've decided to use a goto in there, so long as it is one of the more readable alternatives.
comment 10y ago · link · parent
Consider compressing "silence" in a telephone call.. You can't compress it well if you also need to have the non silence elements be indistinguishable from it by adding random noise. You must add enough random noise to cover up any compression differential, otherwise statistical artefacts still persist. That amount of random noise will be up to the maximum compression ratio you can achieve.
comment 10y ago · link · parent
I remember a project (circa 1999) I worked on which was a feature phone HTML 3.4 browser and email client (one of the first). The browser/ip stack handled only ascii/code page characters to begin with. To my surprise it was decided to encode text on the platform using utf-16. Thus the entire code base was converted to use 16 bit code points (UCS-2). On a resource constrained platform (~300k ram IFIRC), better, I think, would have been update the renderer and email client to understand utf8.
Nice as it might be to have the idea that utf16, or utf32 were a "character" it is as has been pointed out not the case, and when you look into language you can see how it never can be that simple.
comment 10y ago · link · parent
Personally I've done both sort of user interfaces, the quick crowded ones, and the task Centeric ones, where time is spent on design and redesign.
I don't really necessarily think that programmers are inherently bad screen design, but it requires the time/effort and inclination; where often, one or more of those are in short supply.
comment 11y ago · link · parent
This is why you had to push all local variables onto a clearnup list in each an every function, this I think, from memory was a call to CleanupStack::Push with a wrapper macro.
If indeed they did this becuase exxceptions were 'too slow', then the problem, im my option would be that they were using exceptions far too much -- as status indications and so on. They are, again, in my option a great help used in the right way, with the C++ RAII idiom, which is essential in the face of exceptions.
comment 11y ago · link · parent
It's hard to see a family soak up that bandwidth up either. Better latency and jitter would be beetter for my purposes, but no-one cares about that.
comment 11y ago · link · parent
(7 + 2) * (2 + 5) in normal, infix notation
* + 7 2 + 2 5 in polish notation, http://en.wikipedia.org/wiki/Polish_notation
vs reverse polish which is:
7 2 + 2 5 + * (or 7 2 25 + + * ) which is easy to evaluate, but not necessarily to read)
20.
Live malware attack map(nonnymous.com ↗)
2 points · by Murk · 12y ago · discuss
comment 13y ago · link · parent