1,018 reputation
49
bio website kdgregory.com
location
age
visits member for 3 years
seen yesterday

Mar
17
comment Why was “goto” originally supposed to be included in Java?
Why are you assuming that it was "supposed to be included"? Perhaps goto is reserved so that it will never appear anywhere in a Java program.
Feb
4
comment Is it worth the time to run static analysis tools (e.g. Findbugs) on test classes?
Only you can answer those questions, and without the answers to those questions, nobody else can answer the one you asked.
Feb
4
comment Is it worth the time to run static analysis tools (e.g. Findbugs) on test classes?
How much time are you planning to spend? What's the cost of discovering a bug in production that should have been caught by an existing test? How well-written are your tests in general? Do you have other things to spend your time on?
Feb
2
comment Is it okay to make coding style changes on an open source project that doesn't follow best practices?
See: en.wiktionary.org/wiki/bikeshedding
Jan
29
comment Finding next free IP in a network
By writing your own code to maintain IP addresses in a database, you're effectively doing what a DHCP server already does. And you, as a programmer, are effectively doing what your network support team already does. Talk to them; you'll find there are easier ways of managing hosts.
Jan
22
comment Are there any ultra high level languages out there?
@Phoshi - the last three points are covered by SQL as well. Just not in a DWIM (do what I mean) manner.
Jan
22
comment Are there any ultra high level languages out there?
Be careful what you wish for. If there ever is such a language -- one that eliminates the translation of business requirements into something the computer understands -- you won't have a job.
Jan
20
comment How to get local device time corresponding to NTP server timestamp?
But, do you really need two perfectly synchronized clocks? The whole point of NTP is to smooth out network latencies, to synchronize clocks within a few milliseconds. If you need more accuracy than that, you'll need dedicated hardware, and more important a real-time operating system.
Jan
20
comment How to get local device time corresponding to NTP server timestamp?
It's impossible. In order to make it work, you would need to know exactly how long the request took to get from your computer to the timeserver. But to know that, you'd need to have the clocks on those two servers exactly synchronized.
Dec
21
comment The practical size limits of an AngularJS based application
My impression, after reading this question several times, is that you've given a lot of thought to the issues but not the problem. You don't need to load up the entire app at once, but you do have to be mindful of browser memory. But focusing on the front end, to me, seems wrong: data entry will always be server-intensive, so that should be where you look to solve performance problems. If you can offload some of the work using a tool like Angular, great (I've done this), but it's not going to solve the underlying problem of server workload.
Dec
15
comment How are I/O port addresses and data sent?
Perhaps you could define what you mean by "send the address." An out instruction writes data to a specific port, just like a mov instruction writes data to a specific memory location. The only difference is the physical wiring.
Nov
29
comment Scripts to run Java programs - e.g. Ant
What OS are you using, and which of the benefits are you willing to give up?
Nov
29
comment What if I will not use Software Design Patterns?
+1 for the comparison to physical structures. I would add that it helps to build a house if you already know that a "truss" is a good structure to support the load of a roof, rather than experimenting and hoping that it doesn't collapse.
Nov
11
comment Unit testing to prove balanced tree
As an addition to this answer: if you prevent direct access to the implementation (eg, by using a factory and an interface), you should feel free to add any useful method to the implementation class. Including methods designed solely for testing.
Nov
10
comment When there's no TCO, when to worry about blowing the stack?
@JörgWMittag - docs.oracle.com/javase/specs/jvms/se5.0/html/… (old version intentional, it's also in the SE7 edition)
Nov
9
comment When there's no TCO, when to worry about blowing the stack?
@JörgWMittag - no, the question -- at least the OP's question -- was whether lack of tail-call optimization in the JVM was a problem. My comment pointed out that the question was irrelevant, because TCO is a feature of a language implementation rather than machine architecture (ie, the JVM is identical to the 80x86 in this respect).
Nov
8
comment When there's no TCO, when to worry about blowing the stack?
Last I looked, the 80x86 doesn't do (native) tail-call optimization either. But that hasn't stopped language developers from porting languages that use it. The compiler identifies when it can use a jump versus a jsr, and everyone's happy. You can do the same thing on a JVM.
Aug
21
comment How do I implement code obfuscation for native code?
@user2102508 - I think you will get better answers and fewer off-topic comments if you remove "obfuscation" from your question, and focus on transforming intermediate representations (personally, I think AST may be too high level).
Aug
16
comment Benchmark of asynchronous code
@Euphoric - I suspect that Lesstat is looking for your definition of "asynchronous programming." I, for one, don't know of a canonical definition, so would ask the same question. But I wonder: if you can't compare them, then how do you expect benchmarks to exist?
Aug
2
comment What is the intention behind asking weight of plane?
To follow up on what Mike said, the FAA has very specific rules for how to measure the weight of a plane, and they don't involve boats (and speaking as a former private pilot, if asked this question I would reply with "the current weight and balance sheet is required to be in the cockpit, so let's go take a look").