Reputation
10,136
Top tag
Next privilege 15,000 Rep.
Protect questions
Badges
3 32 43
Newest
 Yearling
Impact
~128k people reached

Jul
25
answered Protecting a new file format?
Jun
21
comment Shipping test code. Why wouldn't you?
Why would a unit test in a closed source program (or an open source program that hasn't been modified) ever fail? If your product requires a fair amount of setup and setup issues are often the source of bugs, it might make sense to ship some sort of "validate my configuration" app that does things like validating the database connection, validating connections to any other external services your code depends on, etc. It wouldn't make sense for a unit test to ever fail, though, since you've already validated that the code works.
Jun
8
comment How can Guard Statements and Small Functions coexist?
Trivially, including guard statements increases the size of a method. Whether that makes something "not small" depends on your definition of "small" and how many guard functions you need. If you find yourself needing dozens of guard statements, I would tend to expect that something is wrong with your design. If you have repetitive code in your guard statements, you can obviously factor that out as well.
Jun
1
comment Database view performance - good practice?
Views are not cached in any version of Oracle. Query result caching is a feature that is available but that doesn't depend on whether code is in a view-- a SQL statement coming from an application could just as easily take advantage of query result caching. But that's a niche feature that the vast majority of applications won't be able to meet.
Jun
1
answered Database view performance - good practice?
May
29
answered verify a defect is a production defect or not
May
20
comment What is the best way to protect highly sensitive algorithms in my code?
@cmaster - If you're trying to avoid latency, all the more reason to let the code run on a server you control and can colocate near the exchange(s) you're trading on rather than dealing with whatever latency a random client machine has. But algorithmic trading and high-frequency trading are not the same animal-- plenty of algorithmic trading happens at human time scales where an extra network round-trip isn't going to be important.
May
20
answered What is the best way to protect highly sensitive algorithms in my code?
Mar
13
comment Is using triggers best solution for this scenario
What database are you using? Many have a facility that lets the database build and automatically maintain an aggregate table. Oracle has materialized views, for example, and SQL Server has indexed views.
Jan
18
awarded  Yearling
Dec
10
answered Sending a notification to each participant 3 hours before the meeting starts
Nov
15
comment Optimizations in Compiler Design
@justin - I updated the answer with one example of a complex multi-step simplification that would use various simple transforms such as x=x*1.
Nov
15
revised Optimizations in Compiler Design
added 600 characters in body
Nov
15
answered Optimizations in Compiler Design
Nov
6
comment Why do we use non-descriptive internal codenames?
@back2dos - Renaming servers (and updating all the clients) every time a new app is deployed gets pretty painful pretty quickly. What happens when you deploy a 10th app to a particular server? What happens when you have hundreds of client machines that have references to a particular server name? db3.todoapp is more informative if the server only handles todoapp. If marketing decides to call the app "Organizer Pro" and you have 8 other apps on the server, managing the names gets to be pretty complicated.
Nov
6
comment Why do we use non-descriptive internal codenames?
@back2dos - And when a new application gets deployed to the server or an existing application moves to a different server, do you rename all the affected servers? What about when Product A gets renamed (since we're not using code names)? Are you going to change everywhere that name is stored on a client? Or are you going to leave misleading DNS aliases in place to minimize the scope of the change?
Oct
10
awarded  Guru
Oct
9
awarded  Good Answer
Oct
9
awarded  Enlightened
Oct
9
awarded  Nice Answer