We’re rewarding the question askers & reputations are being recalculated! Read more.
2d
comment UTF-8 questions
I think your second point is hypothetically possible. In addition, we don't have to keep to the same 11111111 pattern, we don't have to extend it one bit at a time, and we don't have to have that mean extending the data only one byte a a time. All that is technically required is to be able to positively differentiate between forms and there's lots of approaches for that, plus, different approaches can be mixed within a single code.
2d
comment UTF-8 questions
This property is call self-synchronizing (or a self synchronizing code).
Nov
13
comment Develop a distributed pointer in C++
This is the same problem as RMI: hiding behind simple method invocation, where every operation could fail, but it is not obvious. Hiding very important details from the abstraction-consuming programmer makes things easy when things work, but very error prone and erratic in more trying situations such as network failure.
Nov
9
answered If you had to represent a large number concisely would you use base 36 or ZZ?
Nov
8
comment Java: Why not allow nulls in methods to represent optional parameters?
As you're dealing with a number of issues in this area, it seems to me like maybe your parameters are really an entity/concept that should be formally made manifest, rather than say, making your clients deal with some loosely/informally associated variables. You might then also consider a builder pattern, to construct such a parameter object/entity.
Nov
7
comment Tree data structure where children can only be added based on their type
We cannot tell from the information in the question. You are favoring dynamic checking over static checking, but we don't know why. How are the child relationships captured? Can they change over time? During development? At runtime?
Nov
2
answered Making recursion optional: Bad practice?
Oct
31
awarded  Nice Answer
Oct
29
comment Which artifact should I deploy to prod when using Git Flow?
@Michael Then you know for sure that you have a problem!
Oct
29
comment Which artifact should I deploy to prod when using Git Flow?
You can and maybe should compare binaries -- among other things, this is an approach used to verify that (1) the source code being archived (in master) is the source that was tested, that (2) dependencies such as compilers, tools and third party libraries are the same as tested and (3) that full clean builds are the same as incremental builds.
Oct
27
comment Where is the difference with client-socket port and server-socket port?
If the client firewall blocked you'd have to open a port there as well. The apparent asymmetry is because the usual security arrangement is to allow outgoing connections more or less to anywhere, while more or less preventing incoming connections from anywhere.
Oct
8
comment Is there a way to speed up a big switch statement?
As others mention, the next level of performance would be JIT translation to native code. You can make a simple JIT from an interpreter loop and a translation cache. Then you only incur the interpreter overhead once per interpreted code sequence.
Sep
30
comment Do C# compilers optimize away the facade pattern?
The JIT does method inlining; it cares about size, not the name of the called method or its parameters.
Sep
29
revised Is peer-to-peer a variation of client-server architectural pattern?
added 182 characters in body
Sep
29
answered Is peer-to-peer a variation of client-server architectural pattern?
Sep
23
revised How to generalize this method for its duplicate/common logic?
added 58 characters in body
Sep
23
reviewed Reject Why does C++ have 'undefined behaviour' (UB) and other languages like C# or Java don't?
Sep
23
awarded  Good Answer
Sep
22
revised How to generalize this method for its duplicate/common logic?
added 118 characters in body
Sep
22
awarded  Nice Answer