242 reputation
214
bio website blog.richardhartness.com
location Charlotte, NC
age 33
visits member for 3 years, 5 months
seen Nov 25 at 15:02

I am a software architect, living in Charlotte, NC.


Nov
25
comment Function guaranteed to never return the same value twice
I know this question has been answered, and this comment will likely get buried, but the problem with such questions is that they are VERY subjective. The interviewer probably hopes to hear something specific but, honestly, you have no way of knowing what that is. I offer two suggestions for the future-- just because you can't provide the specific answers they desire for their relative questions, don't lose heart. Second, ask questions, questions, questions. You can't write any useful software without clear requirements. Therefore, demand requirements from the interviewer.
Oct
16
awarded  Custodian
Oct
16
reviewed Approve Decimal vs. Integer; Given a fixed range of values, which is preferable for accurate computation?
Oct
16
accepted Decimal vs. Integer; Given a fixed range of values, which is preferable for accurate computation?
Oct
16
comment Decimal vs. Integer; Given a fixed range of values, which is preferable for accurate computation?
FYI, my use-case relates to bitcoin. If you are unfamiliar, after all bitcoins are created, there will only be 21,000,000 and bitcoins cannot be divisible to any relevant value less than .00000001. In this context, you can store values in a decimal(8,16) field, but you will always be converting from a decimal. If you have a value in your db that you will need to pass back to bitcoin for bitcoin transaction, you will need to convert back to integer values. I recommended to always store the value as an integer, which started the argument.
Oct
15
comment Decimal vs. Integer; Given a fixed range of values, which is preferable for accurate computation?
Also, to be clear, calculations can result to values under 10^-8 but the result always evaluates to 0.
Oct
15
revised Decimal vs. Integer; Given a fixed range of values, which is preferable for accurate computation?
added 320 characters in body
Oct
15
comment Decimal vs. Integer; Given a fixed range of values, which is preferable for accurate computation?
@ratchetfreak Consider such a case an error case and proper handling is out of the scope of this exercise.
Oct
15
comment Decimal vs. Integer; Given a fixed range of values, which is preferable for accurate computation?
@ratchetfreak I think the line "If a calculation results in value containing significant digits under the 10^-8 range, they are essentially 0." answers your question, does it not? all values, even intermediaries within multi-step calculations, must evaluate to numbers in the expressed range.
Oct
15
comment Decimal vs. Integer; Given a fixed range of values, which is preferable for accurate computation?
@gnat If a context is necessary (assuming this isn't moderately standardized) I'd say I'm using a SQL decimal type. Specifically MySQL. Integers are the same but can be of any standard byte-width (i.e. ints (4 bytes), bigints (8-bytes) even smallints,(2).)
Oct
15
asked Decimal vs. Integer; Given a fixed range of values, which is preferable for accurate computation?
Jul
25
comment iPhone development options for the [from-my-cold-dead-hands] C developer
No problem GlenH7. I just assumed (possibly inappropriately) that you were the same person who down-voted the question the same day that you requested to close it. This has happened to me a few times in the past on StackExchange-- I ask a question and 2-3 years later it gets down-voted due to the fact that it's no longer within the scope of the site. My response is always the same-- I politely, but curtly, request that my questions be flagged rather than down-voted. If you aren't the one who gave the down-vote, then I appologize for assuming that you were.
Jul
25
comment iPhone development options for the [from-my-cold-dead-hands] C developer
Then lock it, rather than down vote it. I asked this question nearly 3 years ago, on SO. It was migrated here and was received well enough at the time. Thank you for keeping the site clean (seriously) but it's not like I can go back in time and re-map this question to what this site is expected to be, today.
Aug
20
awarded  Popular Question
Jul
9
accepted When does it become mandatory to sign up with the Bluetooth Special Interest Group (SIG)?
Jun
28
comment How do functional languages handle random numbers?
Remarkable answer. I'm not a functional programmer but I do understand most of the concepts and I've "played" with Haskell. This is the type of answer that both informs the questioner and inspires others to dig deeper and learn more about the topic. I wish I could give you a few extra points above the 10 from my up-vote.
Feb
25
awarded  Caucus
Feb
25
awarded  Constituent
Sep
19
accepted What are some general guidelines for setting up an iOS project I will want to personally publish but sell in the future?
Sep
14
revised What are some general guidelines for setting up an iOS project I will want to personally publish but sell in the future?
Slight expansion of definition for desired answer.