2,060 reputation
1914
bio website grahampeel.com
location
age
visits member for 3 years, 11 months
seen 2 days ago

Software Developer - currently working in the Microsoft ASP.NET Stack with C#, MVC, JavaScript, CSS, HTML


Apr
6
revised Using static classes to define methods for handling POCO class objects
deleted 1 character in body
Apr
2
answered Using static classes to define methods for handling POCO class objects
Mar
26
answered Development Time: sql in UI code vs domain model with datamapper
Mar
17
comment Algorithm for a UI showing X percentage sliders whose linked values always total 100%
From a UX point of you, I'd suggest having the total score be presented as a large number off to the side of the sliders. As you slide one slider up, the total score increases over "100" and whatever your "next" button is becomes disabled until the user slides another slider down to reduce the total score. You will never know which of the other 4 sliders the user wants to reduce when they slide one slider up, so don't even try.
Feb
3
comment What to use instead of IDs in selectors in CSS
I used to care about such front-end quibbles like these until I realized it was just HTML-nerd code masturbation with very little or no real-world impact on the kinds of stuff I work on.
Jan
20
comment Why sacrificing good software engineering practices is typically the first choice for software development projects assuming “good enough” quality
@Telastyne, I might respectfully disagree. I can throw a databound GridView tied directly to a sql implementation into a web project reeealll fast. Compared to a properly encapsulated, testable solution anyway.
Dec
18
awarded  Organizer
Nov
13
comment Why use iFrames in a web application?
I feel like iframes elicit an groan of displeasure from devs these days, but you are spot on in that they can isolate functionality without worrying about JS/CSS/AJAX issues.
Oct
31
comment Which approach would be better for persisting these overridable configuration keys and values? A simple key-value store, or a graph database?
If there's one language being used by the client application(s), then your "type_constraints" table could hold the fully qualified type name of the variable type ("System.String", etc) so that reflection could be used to bind the database values to an instantiated Config object.
Oct
29
comment How do i upload small changes on a view of an asp.net mvc4 project
Wow, both the question and my (accepted) answer are at negative scores, for no reason that makes sense to me, at all. The question is perfectly valid for someone just learning .NET, and is easily answerable, and my answer "was really what i was looking for. you have really saved me." (according to the OP). Why is this community disinterested in these types of questions and answers?
Oct
28
comment How do i upload small changes on a view of an asp.net mvc4 project
Views are not compiled by default (edited my answer to say that), so there's little chance his Project is set up that way, so I don't think that's particularly relevant. You are correct about Publishing in VS being better than individual file FTPing, although the question SPECIFICALLY asks to "upload those small changes only". I've edited my answer to include a recommendation to use the Publish feature, but should we really second guess such a specific part of a question?
Oct
28
revised How do i upload small changes on a view of an asp.net mvc4 project
added 488 characters in body
Oct
28
comment How do i upload small changes on a view of an asp.net mvc4 project
@Meutron, why do you want to "upload those small changes only" instead of the full site? One of the better things about the .NET world is Visual Studio, which makes deployments very easy. Do you need some assistance configuring it to build and publish your site?
Oct
27
answered How do i upload small changes on a view of an asp.net mvc4 project
Oct
13
revised What is the best way to create HTML in C# code?
added 684 characters in body
Oct
3
comment Should I denote that a method satisfies an interface?
What if the interface drops the method from its signature later on? Then, your comment is incorrect and confusing (as all comments become eventually) and no compiler check will catch it.
Sep
25
comment Is there ever a reason to do all an object's work in a constructor?
"Unless they are told to do so, future programmers will not be inclined to surround these constructor calls with defensive code." - Good point.
Sep
24
awarded  Autobiographer
Sep
17
comment Where to put database table/column names?
I agree with the idea that general 1 class per table is the way to go here. I don't necessary think they need to be static classes, but this is a better idea than a single static class to keep track of all those things. In my current project, we've got 1 class per View or Sproc in our mapping layer, and its pretty easy to get your head around that.
Sep
4
comment C# Single Instance of a Form
Pretty funny that the question was "closed as unclear what you're asking" after an answer was given which was later accepted with a "thank you!" from the OP.