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

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
Nov
20
awarded  Good Answer
Nov
20
comment Is there an excuse for short variable names?
@Telastyn - If you assume that the programmer is not an expert, though, that often leads to taking abbreviations that have a very well defined meaning and turning them into longer names that are at least somewhat ambiguous (i.e. someone decides to name a local variable radius when it stores the inner radius not understanding that is much more ambiguous than Rin). And then the non-expert developer has to translate between his unique nomenclature and the nomenclature that the business understands every time there is a discussion involving equations.
Nov
20
awarded  Nice Answer
Nov
20
revised Is there an excuse for short variable names?
added 1121 characters in body
Nov
20
answered Is there an excuse for short variable names?
Nov
7
awarded  Nice Answer
Nov
6
answered Do database tables need to have IDs?
Oct
26
answered Why don't research papers that mention custom software release the source code?