123 reputation
6
bio website
location Boston, MA
age
visits member for 1 year, 3 months
seen Apr 17 at 20:19

Apr
7
comment What are the advantages of linear probing over separate chaining or vice-versa when implementing hash tables?
Cool. Thanks. That was helpful.
Apr
7
awarded  Scholar
Apr
7
accepted What are the advantages of linear probing over separate chaining or vice-versa when implementing hash tables?
Apr
7
comment Client wants source code, but it contains a lot of shared code I reuse with other projects
I think this feels like a good answer. The OP obviously shouldn't just roll over, but, on the other hand, asking for the source code for a custom project seems eminently reasonable (and I've seen enough contracted projects go totally off the rails and need to be rescued by someone else that I probably would not consider a contractor who refused to offer source, if I were looking).
Apr
7
comment What are the advantages of linear probing over separate chaining or vice-versa when implementing hash tables?
You actually kind of reminded me of a related issue... if you're working with a non-nullable type it's not obvious what the dummy value could be. For a double, for instance, do you just say, well, NaN is not a valid key and use that?
Apr
7
revised What are the advantages of linear probing over separate chaining or vice-versa when implementing hash tables?
added 2 characters in body
Apr
7
asked What are the advantages of linear probing over separate chaining or vice-versa when implementing hash tables?
Apr
7
comment Order of learning sort algorithms
Shellsort is probably worth learning because it's dead-simple to implement and despite being a relatively small modification from selection sort it's a huge performance improvement. You could probably get away with using it in many applications, even with large data sets. Sedgewick also suggests it's commonly used in embedded systems though I have no way of verifying that assertion.
Apr
4
comment Why are people making tables with divs?
What I see, frequently, is people not using tables even for tabular data. I don't understand it.
Apr
4
comment Why are people making tables with divs?
Somebody read they weren't supposed to use tables for layout and took it to mean they weren't supposed to use tables at all. I detest this trend.
Mar
18
comment Do I need unit test if I already have integration test?
That's more like an argument against fixating on code coverage at all than one that you should be writing a ton of unit tests and eschewing integration tests.
Mar
18
comment Do I need unit test if I already have integration test?
I don't really get that article. So there are a lot of code paths and integration tests can't cover them all... so? The same thing applies to unit tests unless your units are so trivial as to be pointless.
Mar
18
comment Do I need unit test if I already have integration test?
I don't feel you've made the case. Integration tests would also reveal bugs in the code, and in fact are capable of catching bugs that unit tests will not.
Jan
23
comment How to make significant technical decisions given very little time
@jpmc26 Sure. I can agree with that.
Jan
22
comment How to make significant technical decisions given very little time
@jpmc26 Then modify it to be "one of the popular and mainstream options for what you want to do." Anyway, look, maybe Java isn't the best option for every application, but it's mainstream because it's a passable option for almost all applications. Even GNU discourages you from writing GNU packages in anything but C and it would be hard to characterize them as "pointy-haired bosses."
Jan
20
comment How to make significant technical decisions given very little time
This is right. I know tech people tend to disdain this kind of thinking, but if it's one of the popular and mainstream options, how far afield can you really end up?
Oct
22
comment database migration with data already in the database in production
Well, sure, you'd write a script, and sure, this is done in production databases. But if you didn't collect some piece of information before you are probably going to have to write code that does not assume it will always have access to it.
Oct
16
comment Is CodeFirst intended for large scale applications?
All migrations do (and they don't have to run automatically) is describe the series of database changes you want to make in code. If there's no conflict between the old model and the new one (or you don't need database changes at all) then there is no reason why you can't have two versions using the same database.
Oct
16
comment Is CodeFirst intended for large scale applications?
Migrations are intended precisely for the scenario you describe.
Oct
7
awarded  Citizen Patrol