Reputation
10,178
Top tag
Next privilege 15,000 Rep.
Protect questions
Badges
1 23 44
Impact
~580k people reached

7h
revised Is denormalising a data structure essentially a code optimisation, to which the normal rules apply?
added 80 characters in body
1d
revised Is denormalising a data structure essentially a code optimisation, to which the normal rules apply?
added 188 characters in body
1d
answered Is denormalising a data structure essentially a code optimisation, to which the normal rules apply?
Feb
8
comment “Fuzzy” parsing in different languages
@svick: The nice thing about a trie is it can cycle back on itself, or if you prefer, the recursive walk procedure can cycle back to the top of the trie as a way of handling more than one word in the string, and it can still handle all kinds of misspellings, such as spaces inserted or deleted.
Feb
8
revised “Fuzzy” parsing in different languages
edited body
Feb
8
awarded  programming-languages
Feb
8
answered “Fuzzy” parsing in different languages
Feb
6
answered Does variable type specification leads to any performance difference?
Jan
29
comment How to mentor *senior* developer?
1) You might want to take a Dale Carnegie course. It will give you pointers on how to be a leader, which is what you're trying to do. 2) Learn from him. You may be strong with "the Force", but the Force isn't always right.
Jan
16
comment How can I test for performance issues in a specific piece of code?
@Zibbobz: What to do: Run it under a debugger, and in the execution phase where it is sluggish, manually interrupt it and examine the call stack. If you do this a few times, it will show you what the problem is. Problems with that duplicate question: Knowing which routines have the highest execution count does not reveal the problem. See point 6 here. Don't assume it's a matter of narrowing down to class and function. Look instead for what it's doing and why.
Jan
16
comment MVC controller and decoupling explained
@Narek: That's the model-view-controller idea, where you can change the view without having to change the model. There can be many different views of the model, or none, so you don't want the model to depend in any way on the ways in which is viewed. To me, that makes a certain sense, except in a situation where the model structure can change frequently. In that case, it is important to minimize the effort to upgrade the corresponding view structure.
Jan
15
comment MVC controller and decoupling explained
@Narek: The idea that M should not "know about" V is so that different Vs can be made more easily. In my experience, changes to M are more likely , and if V is more closely bound to M, the corresponding changes can be done more easily. Ideally, one should not have to have a separate C at all, because all the information needed to specify it is already included in M and V. Sorry it's more than 2 words, but we're talking about an order of magnitude savings in developer effort, which turns into a more responsive dev. cycle.
Jan
14
comment MVC controller and decoupling explained
I know I'm in a contrarian minority, but I have a problem with the idea that decoupling the M, V, and C are a good idea. (I suppose in some/many situations there is no good alternative.) My alternative is here, here, and here, and there is plenty of public code if you're interested.
Dec
15
answered Why is UML not used in most free software (e.g. on Linux)?
Dec
8
revised In general, is it worth using virtual functions to avoid branching?
added 91 characters in body
Nov
23
comment Optimization: How much time saved is considered worth it?
First, does it bother anyone, like a user or you? If not, you don't have a problem, so don't fix it. Second, don't look at absolutes, like minutes or seconds. Look at fractions, like 1%, 10%, or 90%. Saving a minute is worthless if it is spread out over a day, because it is less than 0.1%, and there are certain to be bigger savings elsewhere.
Nov
13
revised In general, is it worth using virtual functions to avoid branching?
added 121 characters in body
Nov
12
comment In general, is it worth using virtual functions to avoid branching?
@gnasher729: Well, the first thing I do is get stack samples, and on each one, examine what the program is doing and why. Then if it spends all its time in leaves of the call tree, and all the calls are truly unavoidable, does it matter what the compiler and hardware do. You only know method dispatch matters if samples land in the process of doing method dispatch.
Nov
12
revised In general, is it worth using virtual functions to avoid branching?
added 399 characters in body
Nov
12
comment In general, is it worth using virtual functions to avoid branching?
@gbjbaanb: Everybody says they've got "highly critical sections". How do they know? I don't know something is critical until I take, say, 10 samples, and see it on 2 or more of them. In a case like this, if the methods being called take more than 10 instructions, the virtual function overhead is probably insignificant.