1,125 reputation
49
bio website ndssl.vbi.vt.edu
location Blacksburg, VA
age 45
visits member for 3 years, 10 months
seen May 30 '13 at 19:59

Mar
27
comment Do I check generated code in to source control or not?
@DaveHillier Best practices are, by definition, general rules. They always need to be considered in context. In other words, they are generally, but not always, the right way to do things. Follow the best practices unless you can clearly articulate and defend doing something different.
Oct
6
comment Maintaining a list of nodes with challenging requirements
How often does the persisted version need to be updated? Is it after every operation, or can the data be read from the database, a bunch of operations done on it (modifications and lookups), and then written back. Will other processes deal with the data, or is it done just by one piece of software? The answer to these questions will determine the organization in the DB. It may be best just to write the data to the DB as a single chunk, and not do any operations through the DB other than read/write the entire route.
Sep
27
comment Why do so many developers believe performance, readability, and maintainability cannot coexist?
Exactly. And isolate the code in the third point, as much as possible. Because when you move to difference hardware, even something as small as a processor with a different cache size, these things may change.
Aug
10
comment How to flag a class as under development in Java
@Birlf If he is worried about others not seeing the explanation in the JavaDoc of code that they are using, I doubt that they will go looking for the other documentation that he produces.
Aug
5
comment Programming as a career option for a computer science graduate vs other fields?
What you said about CS PhDs is mostly true (myself being one of the exceptions). This is because a lot of CS PhDs are not interested in producing deliverable products. They are doing research into new languages, methods and techniques that can then be used by practitioners. How much this is actually successful is another discussion. It is similar to how you won't find lawyers with a JD in a courtroom.
Aug
3
comment Is there a license where all rights are granted?
@Ray Trying to apply logic once the lawyers get involved is generally a losing game :) In a sane world, what you said makes perfect sense, and is all that should be required. Or just the ability to say (p) Public Domain.
Aug
3
comment Is there a license where all rights are granted?
@Ray You need a license because anything you write is automatically covered by copyright, limiting what other people can do with it. What open source licenses do is provide others with rights that they do not otherwise have because of copyright laws.
Aug
3
comment I don't want to patent my business software, but I don't want to get ripped off later
I didn't downvote, but I think many people disagree with the statement "There is nothing inherently wrong with a patent." as it applies to software. The basic argument is that people are patenting an idea, not the embodiment of an idea. For instance, the idea of buying something online with a single click, as opposed to a particular implementation of that idea. Ideas are not supposed to be patentable, just inventions.
Aug
2
comment Why should I write all the Statements within Try-Catch?
@MetalMiester - The impact on performance depends on the language and the particular implementation. In C++, there generally is no performance hit unless an exception is thrown.
Aug
1
comment What can multiple threads do that a single thread cannot?
That sounds like a limitation of Java RMI, not an inherent limitation of single threaded code. Besides, if you are doing RMI you have a separate "thread" of execution, just on a remote machine.
Aug
1
comment What can multiple threads do that a single thread cannot?
But why would you do blocking IO if you want to remain responsive? Is there any blocking IO that generally doesn't have a non-blocking alternative? I can't think of any.
Aug
1
comment What can multiple threads do that a single thread cannot?
They can be single threaded (and often were). The code tells the kernel to start some IO, and gets a signal when it completes. While waiting for the signal, it can do other processing.
Aug
1
comment What can multiple threads do that a single thread cannot?
Threads may make it easier, but all of the tasks that you mentioned can be done without threads, and indeed used to be. For instance, the canonical GUI loop used to be while (true) { process GUI events; compute a bit}. No threads needed.
Jul
26
comment Is any JavaScript code used only for websites, open source?
This isn't right. If part of a project is GPL, the entire project must be released under a GPL compatible license (assuming it is all considered the same program, and can't be broken up into pieces). And being GPL does not prevent you from selling it, it just means that you must provide the source with any binaries, and cannot restrict further redistribution.
Jul
25
comment Can any GPLv2 licensed library be used in a company's internal intranet application?
The application is not automatically GPL by including a GPL library. However, if you wish to distribute an app that includes a GPL library, it must be licensed under a GPL compatible license. Section 7 of GPL V2 states: If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Program at all. So if you do not have permission to distribute your companies application code, you cannot distribute the application.
Mar
2
comment Are there any benefits to checking in commented out code into version control?
3. As documentation for what was tried in the past, and found to be lacking. This shouldn't be large chunks of code, but small snippets. For instance, if the obvious way of doing something leads to performance problems.
Mar
2
comment Why big internet companies (Google, Facebook, Twitter, etc) going open source way?
I wish that companies that made analytical instruments understood this. They want to sell you a piece of hardware for $10k-$500k, with crappy control software, a proprietary interface, and undocumented data formats. You would think it would be to their benefit to make their instrument as useful as possible to as many people as possible, and giving away the software. Its not line its useful to anyone who hasn't bought the hardware.
Nov
2
comment Why Oracle still loves command-line black dump screen?
I wish they would add some simple features to it, like command history and editing. After switching from Postgres to Oracle, it was like stepping back in time 20 years.
Nov
1
comment Exceptions or Error codes
There is nothing wrong with C++, or C++ exceptions. There are plenty of reasons to use a language other than C++ for certain projects, but exception handling is not one of them.
Oct
28
comment Legality of collaborative reverse-engineering
@Chris The question in this case is about reverse engineering in order to interoperate with another system. It is not about stealing. This is still a legal gray area, but generally considered to be acceptable. And since you cannot copyright a recipe, you are perfectly able to to use someone else's recipe and sell cookies based on it. This happens all of the time in the restaurant industry, and is a good thing. See techdirt.com/articles/20100702/11365410062.shtml