Reputation
35,513
Next tag badge:
96/100 score
28/20 answers
Badges
5 72 130
Newest
 Nice Answer
Impact
~1.4m people reached

Jan
26
comment Splitting one class into subclasses to save memory
@ValentinTihomirov C++ will only have the 8 byte penalty for classes that have a vtable - ie those using virtual inheritance. Without that, the C++ compiler will optimise every class down to just its member variables.
Jan
26
answered Splitting one class into subclasses to save memory
Jan
26
comment Splitting one class into subclasses to save memory
@VincentSavard I think in this case he's concerned about perf impact of his architecture, which is different to the usual profiling to locate bottlenecks. Sometimes you have to consider the performance impact of your program up front to save having to rewrite it completely. Besides, its always worth a little thought first before jumping into coding.
Jan
26
answered Should method comments be written as if everything will work?
Jan
26
comment Is a TCP client/server a good solution for a system which can be controlled by a GUI running on multiple platforms?
@BasileStarynkevitch I stuck an embedded webserver (civetweb) into an existing app, it was so easy to use and get working I now recommend that approach to everyone :-)
Jan
26
answered Is a TCP client/server a good solution for a system which can be controlled by a GUI running on multiple platforms?
Jan
25
answered How to approach hours forecasting
Jan
25
comment For what reasons Java and C# initialize static data on demand?
although C++ can load modules dynamically and it doesn't know about them until runtime either. What happens when you load a dll is that any statics are initialised at dll load time. So I think your explanation is incorrect. Java/C# probably do it because of optimisation - init onl;y occurs when the JIT first sees the bytecode and turns it into real code.
Jan
23
comment Why does git pull perform a merge instead of a rebase by default?
@jpmc26 its easy to get a diff between a distance revision and the current one, so why do you need to see so much history at all if you don't want to? The docs say "do not rebase" so do not rebase. Go against what the docs say and suffer the consequences. If you hate it so much, write and submit a patch that will hide 'irrelevant' revisions.
Jan
21
comment Should I notify my colleagues when I find a bug in their code?
@JoelFan if you can relate your commits to your bug tracker, your SCM can run a diff report on the changed lines to see who was the last person to modify those - and there you have a culprit automatically assigned for the re-education camps (or buying doughnuts if you're one of those companies) (eg. SVN and git have the blame command to show who modified which lines)
Jan
21
comment node.js C++ addons to do all major computations
to be fair, javascript isn't exactly a super simple language, with just as many (if not more) gotchas than C++. The issue generally is education - you have to spend as much time learning one as the other, too bad most people learn one and then think they can do a quick bodge job using the other.
Jan
21
comment Why use XML in android?
@lzcd as do nearly all others - Qt has its QML, even MFC has a .rc file that describes a UI layout in plain text.
Jan
19
comment Combining GitHub and TFS / Visual Studio Team Services
Have you tried the plugin? visualstudio.github.com
Jan
19
answered Programming by dictation?
Jan
19
answered Why use XML in android?
Jan
19
comment Best way to get push notifications to server from ms sql database
See this SO post for some suggestions - Query Notification seems to be a better bet. But if you can implement a proxy between the external app and SQL Server, that'd be better.
Jan
18
comment API design dilemma: to REST or not to REST
never send the password itself, hash it (using bcrypt) and send the hash. The back end should also store the hash to compare against. Try asking on Security.SE
Jan
18
comment How can I sell DRY?
+1, most people who talk about something mean "you do it, now I've done all the hard work of thinking about it". Doing it first means your serious about it, and not a manager (or worse, an "ideas man")
Jan
15
awarded  Nice Answer
Jan
14
revised Tracking progress via a burndown chart when sprints overlap
added 780 characters in body