Reputation
Next privilege 125 Rep.
Vote down
Badges
2
Impact
0 people reached

  • 0 posts edited
  • 0 helpful flags
  • 24 votes cast
Sep
6
comment What should I know about C++?
@greggo it is nonsense - one may as well complain that a coffee mug doesn't protect you from accidentally pouring salt in your coffee. The fact is this: C and C++ don't know anything about your program or the system it's running on. The language could not possibly address the "zomg! my program was overwritten" concern without us first fundamentally altering the underlying assumptions on which the language is built.
Dec
30
comment Do you think that storing a variable length encoding in std::string or std::wstring is OK and do you do it?
@ChristopherCreutzig Absolutely. Diacritics, combining marks, non-space space characters and so on. It's unclear what “single character” means when dealing with these kinds of encodings.
Apr
10
awarded  Autobiographer
Nov
17
comment How would you react if someone told you your code is a mess?
"90% of the programmers in the movies are so fake I have tears by the end of the sequence." 90%? What movies do you watch? :P I haven't seen one movie that accurately depicts what it is we do. And then there were "Swordfish" and "Independence Day"...
Nov
17
comment What should I know about C++?
"There is nothing preventing you from overwriting your own program code" Huh? What? This isn't the fault of the language - indeed, in most operating systems this isn't actually doable unless you actively take steps to make it possible. And poorly written programs are potentially exploitable regardless of the language they're written in. Yes, C++ is low-level and, yes, it has its flaws, but let's not go overboard with nonsense like that.
Nov
17
comment Do you think that storing a variable length encoding in std::string or std::wstring is OK and do you do it?
I don't disagree about thinking of strings as arrays of code points, but in many respects that's not practical in a number of applications (think, for example, a password verification routine that must impose restrictions like "at least 8 characters", or a "display name" verification routine that must impose restrictions like "at most 256 characters"). What we need is to bite the proverbial bullet and agree on one damn encoding, instead of having 739 different ones, each with subtle and highly esoteric differences.
Nov
16
comment What is upcasting/downcasting?
JustaPro: adding virtual is unnecessary but doesn't "hurt". Can you elaborate on why you think it should not be used at all in that context?
Nov
13
awarded  Supporter