2,060 reputation
11014
bio website grahampeel.com
location
age
visits member for 4 years
seen yesterday

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


May
19
comment Is it possible to work with visual studio and sql server in macbook
That's pretty much it. Install Windows in a partition then duel-boot into which ever mode you need to at the time. Or run it as a virtual using Parallels or VM Ware Fusion, but that's a little trickier.
May
16
awarded  Yearling
May
11
comment Functional vs object-oriented style in C#
@henginy I hear ya about 'DataGridView'. Perhaps separate your UI-related code (which will remain very object-oriented) from your data/transactional code, which could be much more 'purely' functional.
May
11
comment Functional vs object-oriented style in C#
Why do you "lose the benefits of functional style"? If you need grouping, you can create and nest static classes that group together the related functions. And there's nothing wrong with having multiple functions take in the same type as their parameter, just think about how many methods inside .NET take a 'string' param.
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.