Reputation
3,499
Top tag
Next privilege 5,000 Rep.
Approve tag wiki edits
Badges
3 10 23
Newest
 Civic Duty
Impact
~109k people reached

10h
comment Linux equivalent to Visual Studio “Debug -> Attach To Process”?
@CharlesE.Grant For me remote debugging only implies that the target is on a different (virtual) machine, and says nothing about starting a new process vs attaching to an existing one. Personally I have never done remote debugging, but I have often attached a debugger to a running process.
11h
comment Microservices with the same database
I wouldn't worry about the connection overhead. I'd worry far more about microservices limiting the scope of atomic operations.
12h
comment php base64_encode simplified answer
When you have binary data and want to represent it as text, you need to use an encoding like Hex or Base64.
1d
comment Why are floats still part of the Java language when doubles are mostly recommended instead?
32 bit floats are require less memory and are faster, especially using SIMD instructions.
Apr
25
comment Why there is a drop of interest in DBMSs?
@Izkata They need to apply some normalization over the years as well, otherwise it'd climb a lot for everything as internet usage climbs. It seems likely that it's normalized to the fraction of search queries.
Apr
25
comment How to structure Restful API client files in C# project?
A folder per resource and the different methods within that folder. Not the other way round.
Apr
25
comment How to structure Restful API client files in C# project?
I'd rather organize my project by endpoint/resource than by method.
Apr
25
comment Adding config parser to code that uses global variables
At minimum I recommend using a single Config class and passing an instance of it to whatever needs access to the configuration.
Apr
25
comment Why there is a drop of interest in DBMSs?
I'm not sure if this graph really indicates a drop. Or if the drop in the graph is mainly an artifact of normalization. e.g. due to more non-technical users coming online and using google more. If you add generic terms like "programming" or "database" they show a similar drop. So it's very likely that this drop is really due to a shift of the internet user demographic from programmers to non technical users.
Apr
23
comment Why does the type go after the variable name in modern programming languages?
C# uses the prefix syntax, yet it treats int[] x, y as two arrays. It's just the silly C syntax which treats those modifiers as unary operators on the variable (and a mix of prefix and postfix, no less) that causes problems.
Apr
21
comment How would I identify a gap in a set of curve data, and get its value?
You can take the minimum and maximum of each curve to obtain the interval it covers. Then union all the intervals and what remains are the gaps.
Apr
21
comment Is there any simpler way to check the strong level of password?
Writing a good strength checker isn't easy. You'll need to detect various patters humans like to use.
Apr
21
comment Is there any simpler way to check the strong level of password?
That algorithm is extremely dumb. Aa0 is strong while ].^~>(+&*}% is horrible.
Apr
21
comment Is there any simpler way to check the strong level of password?
Why would you limit the password length to 11 characters?
Apr
19
comment Is it a bad practice to use JSON strings as keys of objects?
I'd worry about the ordering of keys. {"x": 7, "y": 8} and {"y": 8, "x": 7} are different strings, yet equivalent as far as JSON is concerned. You should check the JSON.stringify documentation to see if it makes stronger guaranteed about the string representation it produces than the JSON format requires.
Apr
16
comment Is there a good reason to run 32-bit software instead of 64-bit on 64-bit machines?
@FilipHaglund Depends very much on what you're doing. For RSA and Elliptic Curve Crypto a factor 2 advantage due to 64 bit registers/multiplications is quite possible. For other algorithms there is no advantage at all and you needlessly pay the cost of double sized pointers.
Apr
8
comment Data structure for storing sorted data
Trees are the standard approach for ordered indexes.
Apr
8
comment Why do C arrays not keep track of their length?
If I had designed it, a function argument written as T[] wouldn't be equivalent to T* but rather pass a tuple of pointer and size to the function. Fixed size arrays could decay to such an array slice, instead of decaying to pointers as they do in C. The main advantage of this approach isn't that it's safe by itself, but that's a convention on which everything, including the standard library can build.
Apr
8
comment Why do C arrays not keep track of their length?
If only the pointer+length struct had been baked into the language and standard library. So many security holes could have been avoided.
Apr
8
comment Why do C arrays not keep track of their length?
Turns out that no programmers know what they're doing to the degree that C requires.