8,784 reputation
32841
bio website
location
age
visits member for 3 years
seen 20 hours ago

Engineering Manager for Sony Network Entertainment who wishes he was doing Python but is instead managing a web development team.


1d
comment Why does C++ not have a “pure” keyword for virtual functions?
Pretty much any question of "why does C++ do X?" can be answered by that book. It should be required reading for any serious C++ programmer.
2d
comment Getting help in StackOverflow: How often is too often?
I'm not sure "how often should I post to StackOverflow" is on topic here, though I think "how quickly should I ask for help on technical tasks?" might be.
2d
comment Where should my team start with becoming “modern”?
There are definite resume risks to working on older technologies, but that is off-topic here. From a career perspective, it is wise to push the current set of hot buzzwords.
2d
comment Python: Are all dictionary comprehensions just more expressive and compact for loops?
sure, I've added an example.
2d
comment Python: Are all dictionary comprehensions just more expressive and compact for loops?
Right, but that is not a common thing to use.
2d
comment Python: Are all dictionary comprehensions just more expressive and compact for loops?
Though in python, you don't have loop counters. (Or, at least, you have to do extra work to get at them.)
2d
revised Python: Are all dictionary comprehensions just more expressive and compact for loops?
added 856 characters in body
2d
answered Python: Are all dictionary comprehensions just more expressive and compact for loops?
May
19
comment Tcp server language choice
Way too broad. Any of those languages could be the best choice given a particular set of requirements and "performance loss" is going to be related to expected load.
May
19
comment C/C++ for algorithm development
Your challenges are going to be two-fold. First, it isn't really true that C++ is faster. It is more that it can be faster. It takes time to learn how to use C++ in a performant way. Second, while things like list comprehensions, filter and map are basic toolkit stuff in python, they are expert-level tools in C++. You can do what you do in that python in C++, but it will take lots of deep digging into the STL. It's not something that a C++ newbie should attempt.
May
18
comment How do I model partial dates in Python? Like an unknown year, or unknown day of the month?
@RobertHarvey I know that is common, but I have seen many bad failures because of bad choices of such signal values. (Plus, I don't think it answers the question as the OP needs to deal with only some dates being unknown. Setting to January 1st in such cases doesn't allow you to differentiate real Jan 1st dates from unknowns.
May
17
reviewed Approve Compiling and deploying a C program to an MCU running an RTOS
May
15
comment How does a browser remember the scroll state?
Why would you think this is strange or difficult? In any case, this isn't answerable as it depends on the particular browser's implementation details.
May
14
comment In C++, why does the main function use 'char *argv[]'?
It would also add a dependency on <vector>.
May
12
answered Data format for binary data transfer
May
12
comment When and why should a destructor be declared as virtual?
You shouldn't depend on your class only being used in a certain way, though. The class can't require it only be used with shared_ptr<T>.
May
11
awarded  Nice Answer
May
11
comment When and why should a destructor be declared as virtual?
Yes, you correct, edited.
May
11
revised When and why should a destructor be declared as virtual?
added 3 characters in body
May
11
comment How to avoid the redefinition of a function (PEP8 error F811)
I think there's something wrong with your formatting. Are the last two lines meant to be outdented one block?