410 reputation
27
bio website unsa.me
location Dallas, TX
age 40
visits member for 4 years, 5 months
seen 2 days ago
The rest of my face does not appear in this textbox. Sorry!

Apr
13
comment Are null references really a bad thing?
This is a good answer. The null construct in programming is not the problem, it's all the instances of null values that are. If you make a default object, eventually all your nulls are going to be replaced with those defaults and your UI, DB and everywhere in between will be filled with those instead, which are probably no more useful. But you'll get to sleep at night because at least your program is not crashing I guess.
Apr
13
comment Are null references really a bad thing?
I can tell by the downvoting this is not a popular answer, and that's OK, it's not an easy one to swallow. It's much harder to keep null values out of your system than to develop a pattern to just deal with them. But every null has a cost in complexity and and usefulness. I stand by my opinion: they should be avoided if at all possible.
Apr
13
comment Are null references really a bad thing?
NULL in SQL is a special case in many instances, requiring mindfulness when JOINing or you get unexpected results (same for other comparison operations). A null reference in .Net (and other development systems) crashes your program. How is this not a practical problem? Conceptually, your program producing a big dumb "?" is not very useful to anyone. So it should do so as infrequently as possible. In other words, only when it must or the value is conceptually "we don't know". I would be willing to stake a paycheck on the fact that it's very seldom the case.
Apr
10
answered Securing a Web Api for individual Users
Apr
10
comment Are null references really a bad thing?
I would assert that you never know whether you can trust the data coming in because it's coming in to a function and is a nullable type. Code could be refactored to make the input totally different. So if there's a null possible you always gotta check. So you end up with a system where every variable is checked for null every single time before it's accessed. The cases where it's not checked become the failure percentage for your program.
Apr
10
answered Are null references really a bad thing?
Mar
30
awarded  Student
Jan
30
revised Are there problems with using Reflection?
grammar
Jan
29
awarded  Yearling
Jan
29
answered Are there problems with using Reflection?
Dec
2
comment How can I structure my angular app so that I don't end up with one huge controller and view?
no, just one big-old view...
Dec
2
comment How can I structure my angular app so that I don't end up with one huge controller and view?
nope, just the usual: go get the data, display the data, send the data to the server, etc.
Dec
2
asked How can I structure my angular app so that I don't end up with one huge controller and view?
Oct
2
comment Should test data be checked into version control?
100% agree. VCS is the system of record for your development effort.
Sep
15
revised Implementing a generic/dynamic custom property system in C#
added 329 characters in body
Sep
12
comment What is a good design pattern to implement REST services on mobile?
Short answer, use RestKit. Or at least, take a look at how they do it.
Sep
11
awarded  Commentator
Sep
11
comment Version control workflow for semi-bespoke software
This is a terrible idea. Having worked with the "one massive application with features you can turn on or off..." many times throughout my career, I can say with certainty: this is almost never done right. The settings hive ends up with a meta type system, or a huge list of settings no one understands. The ability to turn on or off features without passing the system through a QA process leads to lots of production bugs due to a "bad setting". The UI to manage these settings becomes its own nightmare project. You are better off copy/pasting the entire codebase.
Sep
9
answered Version control workflow for semi-bespoke software
Sep
4
comment Proper Response to HTTP Request When Too Much Data is Requested
@Griffin edited to reflect an example