Reputation
Top tag
Next privilege 200 Rep.
See reduced ads
Badges
8
Newest
 Critic
Impact
~2k people reached

  • 0 posts edited
  • 2 helpful flags
  • 62 votes cast
Feb
2
comment Using events and event subscribers to create windows in a desktop application
@RobertHarvey OK, I see what you're saying. In practice I think this is somewhat easier to debug because I don't have to follow a chain of one form launching the next and the next and so on, and there is only one place where event listeners are registered, but I think some editing some excerpts into the question would probably clear up what I'm talking about.
Feb
2
comment Using events and event subscribers to create windows in a desktop application
@RobertHarvey Well, the presenters can raise the events without knowing about any of the forms. Wouldn't that not be the case if I were just listening for events on the forms themselves?
Feb
2
comment Using events and event subscribers to create windows in a desktop application
@RobertHarvey Let me see what sort of sample I can come up with. I suppose the big difference is I have an object with centralized "window opening events."
Feb
2
asked Using events and event subscribers to create windows in a desktop application
Feb
2
comment Why is chaining setters unconventional?
Most of these arguments apply to any fluent/chainable interface, though.
Jan
26
awarded  Critic
Dec
4
awarded  Popular Question
Sep
22
comment Why shouldn't I make variables public, but should use public getters/setters?
I agree with the principle but, for instance, a Point class is at some point going to have to provide coordinates... how else than with accessors?
Aug
12
comment Working as the sole programmer at a non-tech company
I think there's a sort of bias where we have trouble imagining how things could have possibly turned out if we did something different but I've been a solo developer and not-solo and in many ways being solo forced more growth, not less -- after all, there's no one to ask for help and there's no one to clean up your mess when you choose a bad design and have to untangle it. I used to be really self-conscious about not having a formal CS education and mostly working solo but then I traveled to some conferences and realized I was doing fine.
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
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.