23,444 reputation
650132
bio website steveevers.wordpress.com
location Bellevue, WA
age 31
visits member for 3 years, 7 months
seen yesterday

Currently:

Software Development Engineer in Test (SDET)

Interests:

  • AI
  • Computational Behaviour
  • C#, F#

1d
comment How to make my code decide which class to instantiate based on a parameter?
Sounds like you've got a standard FactoryMethod pattern. I don't see anything wrong with that (though, I usually prefer to us enums and a switch to identify which object to return).
Apr
8
comment Why are there so many Java applications that are development-related, and so few Desktop applications?
OSS projects are often made in spare-time, and people generally do things that benefit themselves in their spare time. It then makes sense that developers would write developer-centric things in their spare time.
Mar
27
comment Design pattern for method to accept one of several static items in C#?
IMO this is close to the best answer provided, except that I'd use an ENUM instead of magic strings and I'd override Dictionary<enum, planet> and lazily create them on get. Posted as such. +1
Mar
16
comment How to manage stress from ongoing difficult maintenance?
Get yourself a copy of Working Effectively With Legacy Code pronto.
Feb
24
comment How to put lessons learned, good practices, etc into the “work flow”
@andrew.fox: A shared OneNote can go a long way. I've worked at a place where the shared onenote (which is searchable) was the first, and often last, place to look for answers. Most people had it open at all times. There were 2-3 main people who updated everything, all the time, and it was great having them.
Feb
14
comment Is This A Good Example Of Open Recursion?
Repro'd in C#. +1 Interesting!
Feb
10
comment Event and Objects
Note, that Mike is correct, but the language you're working with will directly affect how you implement that pattern. Many modern languages have that pattern baked into the language in the form of events (which you have tagged).
Feb
10
comment How to write an optimal LAN messenger software?
For P2P discovery, clients can IP Multicast some kind of join request. All nodes on the network listen for that multicast and respond with their client info. You can quickly/easily discover all of the chat peers on the network that way.
Feb
9
comment Graph data structures and journal format for mini-IDE
@matec: Removing a node requires going through all of the existing nodes (O(|V|)) and then removing all edges that go to the node you're removing (O(|E|)).
Feb
1
comment How do International Call Rerouting Apps work?
Not an answer because I can't verify it, but from what I was told: the call is intercepted and immediately rerouted to the provider instead. The provider then places the call to the target from a server in the target number's local region, then they bridge the 2 calls (you to them, them to target).
Jan
30
comment is it a bad programming practice to return a new object in a property
@Phoshi: Indeed. My mistake.
Jan
29
comment is it a bad programming practice to return a new object in a property
@elios264: It might, it might not - my point is that you really do need to measure these kinds of things. That said ... my intuition from working with XNA yes. I rarely act on intuition though.
Jan
29
comment What is the norm for introducing new hires to a code base?
When you get home, would you mind asking the unicorns where my requirements docs and the unit tests are?
Jan
28
comment Can we say that Java or C# have unified inheritance trees?
How do value types fit into this concept?
Jan
28
comment available methods change with object state
Why can't you just query the object for mutability? if (graph.IsInMutableState) { graph.Set(...); } else { /* ... */ }
Jan
27
comment Log design approach
@gnat: Please see the update.
Jan
27
comment How should a senior programmer monitor another senior programmer?
+1. On the topic of positive feedback: studies (don't have access to them ATM) show that it takes a ~4:1 ratio of positive feedback to negative feedback for people to even remember that they received positive feedback.
Jan
20
comment What algorithm should I use to find the shortest path in this graph
Very true! My mistake.
Jan
19
comment What algorithm should I use to find the shortest path in this graph
DFS (or, slightly more complicated, iterative DFS) doesn't run into the memory issues that arise using BFS on some types of graphs. It also depends on the characteristics and expectations of the graph/data though.
Jan
17
comment Algorithm for defragmenting cross-pipe issues in a network for routing signals through?
As far as I know (and TBH, I'm not an expert here, it's a recent area of interest of mine) 1. most of the algorithms work with directed graphs 2. separate sinks on the same graph sounds problematic with the textbook/canonical algorithms