13,738 reputation
22555
bio website
location
age
visits member for 3 years, 7 months
seen 2 hours ago

Dec
6
answered Why is the hashCode method usage of HashSet not specified in the API?
Dec
6
awarded  Enlightened
Dec
6
awarded  Nice Answer
Dec
6
awarded  Cleanup
Dec
6
revised Choosing a random integer in a range such that it doesn't equal a particular number
rolled back to a previous revision
Dec
5
comment Early destruction of objects in c++
or create a dispose method and make sure that after disposing the destructor still works
Dec
5
comment Choosing a random integer in a range such that it doesn't equal a particular number
@ReignofError no because if RandomIntWithinInclusiveRange(minVal, maxVal-1); selects lastNum+1 then it gets incremented to lastNum+2. That's why I increment the entire range between lastNum and maxVal.
Dec
5
revised Choosing a random integer in a range such that it doesn't equal a particular number
edited body
Dec
5
comment Early destruction of objects in c++
If it is declared by smart pointer you should reset() it
Dec
5
answered Choosing a random integer in a range such that it doesn't equal a particular number
Dec
3
comment Is `\n` necessary to be given to `printf()` in C
K&R is dated by now.
Dec
3
comment Creating a sort of 'in-language compiler'
last point; reflection
Dec
3
revised Is Default Package included in the Package Level Access?
added 417 characters in body
Dec
3
answered Is Default Package included in the Package Level Access?
Dec
3
comment C - meaning of non zero adresses in nullspace
if you don't initialize a variable then it can contain anything. A bad pointer will evaluate to true, so initialize the last next pointer to 0
Dec
2
comment How do you calculate the CPU usage?
open up task manager and look in the status bar at the bottom...
Dec
2
comment Open-source licenses and modifications
As soon as you distribute your modified program you will need to distribute the modified source along with it, modifications also include linking in a library so the library's source also needs to be released.
Dec
1
comment When is inlining worth it?
bloat means a larger executable which means more page faults as new code has to get loaded before executing, and more memory needing to be dedicated to the program
Dec
1
answered When is inlining worth it?
Dec
1
comment Can concurrent code (threads, distributed computing, etc.) be directly ported to single-threaded/non-networked platforms?
one of the things you can easily do on a multithreaded environment is a busy loop, doing that on a singlethreaded environment is program suicide (immediate deadlock)