9,222 reputation
32842
bio website ddbcinc.com
location Rochester Hills, MI
age 37
visits member for 3 years, 6 months
seen 6 hours ago
Oracle ACE

Dec
17
revised How to create a random generator
added 12 characters in body
Dec
17
answered How to create a random generator
Dec
13
awarded  Good Answer
Dec
11
awarded  Pundit
Dec
10
answered Browser support for internal corporate tools
Dec
10
answered How many bits' address is required for a computer with n bytes of memory?
Dec
10
awarded  Enlightened
Dec
10
awarded  Nice Answer
Dec
10
answered If I release a program under GPL, do I have to continue to do so?
Dec
4
awarded  Nice Answer
Dec
4
comment Is “watermarking” code with random trailing whitespace a good way to detect plagiarism?
@paperjam - If it's an open source project, though, you'd presumably need to let potential contributors know that you considered the number of spaces at the end of the line to be important information. Otherwise, most of the contributions will either strip off the white space or at least change the white space around making it difficult to reasonably claim a match. Or, I suppose, you could have an open source project where you don't allow anyone outside of your group to contribute but that seems counterproductive.
Dec
4
answered Is “watermarking” code with random trailing whitespace a good way to detect plagiarism?
Nov
28
comment How to make a table structure for products to be available for both wholesale and retail?
Storing a JSON array in a relational table would fundamentally violate proper normalization. You would never want to store a JSON array in a relational table.
Nov
28
comment How to make a table structure for products to be available for both wholesale and retail?
If that's the case, why would the discount be related to a product? If you are saying that the only discount is based on the size of a particular order, the discount would be stored on the orders table. If the discount is based on the customer's order history, you would then need to determine whether the policy is to compute and store that in the wholesaler table on some regular basis or whether that needs to be dynamically calculated when the order is placed. Again, there is no right answer, it's all based on the business requirements.
Nov
28
comment How to make a table structure for products to be available for both wholesale and retail?
Again, it really, really depends on the business. The business might want to have different discounts for different regions of the country either to break in to new markets or to respond to varying price sensitivity. The business might want discounts based on order volume or past history or whether the wholesaler is a "gold" or "silver" or "platinum" reseller with a certification program to go with that. Every business does things a little differently. You'd need to know what the business you are trying to model does.
Nov
28
comment How to make a table structure for products to be available for both wholesale and retail?
It depends on the requirements. Some organizations will have very (very) different retail and wholesale pricing models. Things like the discount (if any) may depend on completely different entities-- wholesale pricing might depend on the wholesaler's geographic region, the amount of their previous quarter's purchases, what sort of "tier" they are in, etc. which would involve a bunch of additional entities and would mean that the discount doesn't belong anywhere near the product table. But that is entirely dependent on the business.
Nov
27
answered Can HTML injection be a security issue?
Nov
27
comment Counting product releases if you work on the backend/online services?
Unless you are a release engineer, it seems odd to use the number of product releases as a performance metric. If I'm looking to hire a developer, I'm not particularly concerned about whether their last company released software quarterly or annually or weekly (or, heck, daily) when I'm evaluating productivity. An equally productive developer might release software every few days in one organization and every few months in another. Of course, the amount of code in a quarterly release would be much bigger than the iterweek release.
Nov
21
awarded  Great Answer
Nov
21
awarded  Guru