958 reputation
1118
bio website waynewerner.blogspot.com
location Greenwood, AR
age 30
visits member for 4 years, 1 month
seen Oct 2 at 21:11

I'm a husband to my beautiful wife, father to our children, Computer Science graduate from University of Central Arkansas. I love my wife, our children, computers, playing guitar (especially singing/playing for my wife and/or kids), bicycling (including taking my kids for rides in my bike trailer), woodworking, airbrushing, digital and traditional artistry, playing games with my family (traditional and digital), my poor Chevette that I had to sell, throwing knives, firearms, knot tying, rope making, whip making, and really just learning new stuff in general. If I don't know about it I probably want to learn about it, if only so I can make informed decisions about it.

My three favorite programming languages are Python, Lisp, and Assembly (though I'm not sure about the order of those last two languages...), and I currently develop in .NET languages, especially VB.

I think the CANSPAM act is one of the dumbest pieces of legislation in the history of the universe

Code I can write/read (where 1 is just barely, 3 is the average user, and 10 is the language designer/guru level):

  • Python - 6/10
  • C++ - 4/10
  • Perl - 3/10
  • Assembly - 3/10
  • HTML/JavaScript - 5/10
  • VB.NET - 5/10
  • C# - 5/10
  • Befunge - 2/10


Aug
8
revised Do I need to use an interface when only one class will ever implement it?
added explanation of interfaces
Aug
8
comment How big does my project need to be for me to unit test it?
There are at least two other types of testing - integration test, and acceptance tests. Unit tests cover a specific unit (e.g. this function of this class is supposed to Frab the Fizz). You mock/stub all the other places where that class interacts, passing it el fake-o data. When you do integration tests, you combine two (or more) classes to make sure that your classes go together the way you think they should. Eventually you build up enough tests that you're doing end-to-end testing of your entire system, sometimes known as "smoke tests".
Aug
8
comment How big does my project need to be for me to unit test it?
You shouldn't test everything, but you should test any behavior that's exposed to the outside world. There is/are certainly maintenance costs to testing, and as Kent Beck said in some SO answer (I think it was SO) - test enough to make you confident that your code is correct.
Aug
8
comment How big does my project need to be for me to unit test it?
1 line of code? ;)
Aug
8
answered Do I need to use an interface when only one class will ever implement it?
Aug
8
comment Do I need to use an interface when only one class will ever implement it?
@YannisRizos, even if they don't, I think I'd agree with Fabio about the non-violation of YAGNI. My personal opinion about developing in a statically bound language is that if you create a class, it probably needs an interface. The only exception (I've seen) is if the behavior of the class is actually part of another, interface'd class' API (e.g. a UserControl on a View). Then the tests against the interface should expose errors in the other class.
Aug
8
comment Do I need to use an interface when only one class will ever implement it?
This why I love dynamically bound languages - Unless you're checking isinstance(), all you care about is that whatever came in has the function/method/property you want to look at. Of course that makes good testing a priority... but requiring good practice isn't exactly a criticism...
Jul
10
answered What if globals make sense?
May
25
awarded  Nice Answer
May
25
comment How to become a super user (programming)?
@MadsAndersen, just because you don't get (grade?) credit, doesn't mean you get no credit.
May
25
comment How to become a super user (programming)?
@JamesYoungman, wish I could upvote your comment twice :P
May
17
comment Worst coding standard you've ever had to follow?
We use this style in our COBOL code on z/OS. No subversion (or better) tools there.
May
16
comment Why is Mercurial considered to be easier than Git?
@progo, that's besically the crux of the issue. Mercurial has great Windows support, git doesn't. I've heard rumor that's by design - git windows improvements are discouraged by Linus... but, [citation needed] of course.
Apr
25
awarded  Excavator
Apr
25
revised Python - Service, how to get a code review
improved spelling, grammar
Apr
25
suggested suggested edit on Python - Service, how to get a code review
Apr
25
comment How do I review my own code?
Concerning the check-list, having a spec is super useful.
Apr
25
comment How do I review my own code?
@KevinReid, I would love to see some stats on abandoned SE posts - especially ones that people have been typing for longer than 60s on. I know I've done that same thing myself at least 5 times.
Feb
29
comment What metrics do you use on your Scrum project?
I upvoted because I think it's a valuable answer, though I'd make the (hopefully) obvious comment that tests should be good tests. Otherwise you just end out with a metric that's just as useful as Lines of Code.
Feb
29
comment What can I expect when moving from University to a real programming job?
@Nick, they taught best practices at your University??? :-o