Reputation
3,284
Top tag
Next privilege 5,000 Rep.
Approve tag wiki edits
Badges
3 9 23
Impact
~103k people reached

1h
comment Including both “careful” and “dangerous” versions of a function in a library/module
Did you profile it and did the profiling show a significant performance gain due to the omitted checks?
2h
awarded  Great Answer
6h
comment How do you handle country specific behaviors?
Note that some of your examples are country specific, others are language/culture specific. You should cleanly separate those.
1d
comment How could we rewrite the 'No Evil' license to make it 'free'?
Replacing shall by should might be enough.
2d
comment what is the usage of binary tree in applications?
Ordered sets/dictionaries and immutable sets/dictionaries are usually implemented using a balanced tree structure (e.g. red-black or AVL).
Feb
7
comment Question on password hashing security
what do you mean by "Request Sent to server"? Do you mean the application server sending a request to the database server, or the client to the application server?
Jan
30
comment How to decrease compile time when reading includes over a network?
Why do you have include files hosted on a network? The normal way for distributing source files is version control.
Jan
30
revised Why are semantics and type systems are so important?
added 94 characters in body
Jan
29
comment Is break a code smell?
You might want to use C#'s TakeWhile instead of filter/Where as your alternative.
Jan
29
comment How do I unit test multi-threaded code?
The problem with (3) is that many of those events are implicit, such as the CPU updating a cache line. And then there is the joy of a CPU or compiler that reorders instructions.
Jan
29
reviewed Approve How did you become a const correctness convert?
Jan
28
comment Is anti-aliasing still relevant in a high resolution display?
Are you talking about AA for rendered text, or for 3D games?
Jan
28
comment Is anti-aliasing still relevant in a high resolution display?
Most monitors don't have high enough ppi to omit any-aliasing (and those that have are pretty damn expensive).
Jan
27
comment File Hashing between OSes when Perforce changes line endings
Have you benchmarked the performance impact? If you're IO limited, the conversion might not have a big performance impact. For a simple test you could pipe the file through dos2unix into whatever hashsum utility you want. You should be IO bound, unless your disk produces more than about 300MB/s (and that's assuming a slow hash, a fast hash should approach 1GB/s single-core)
Jan
27
comment Is it good practice to avoid warnings and notices?
@Cerad Using @ is perfectly fine if you check the return value for errors and handle them appropriately. Not every API lets you rule out the possibility of errors before calling it. For example how would you convert user supplied (and thus potentially invalid) data between charsets if not by using @iconv and checking the result for FALSE? | The new random_int API would have almost ended like that before it was changed to raise an exception instead of emitting a warning and returning FALSE when it fails. (I am very happy they made that change)
Jan
27
comment Handling exceptions I don't know about
Personally I think that expected errors should be returned as some kind of tagged union/maybe type instead of being thrown as exception and the language should offer something like Rust's try! macro as syntax sugar.
Jan
27
comment Handling exceptions I don't know about
Check the documentation and hope it lists all relevant errors. Java has checked exceptions as a language feature to avoid this problem (but that decision leads to other problems)
Jan
26
comment Does unused code affects the assembly after startup (Memory for example)?
Defining memory usage for memory-mapped-files isn't trivial.
Jan
26
comment Why Garbage Collection if smart pointers are there
@Gulshan Rust is one of the very few languages that supports safe unique pointers.
Jan
26
comment What are polymorphic messages?
You might know them as virtual methods.