2,041 reputation
1914
bio website grahampeel.com
location
age
visits member for 3 years, 7 months
seen Dec 23 at 17:54

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


Dec
18
awarded  Organizer
Dec
18
comment If a webpage invokes a javascript function on a click from a browser, why can't I invoke it programatically?
Your question isn't super clear. Is this webpage you are viewing the same as "your program"? 'doPostBack' is an ASP.NET way of binding server-side events to client-side actions like button/link clicks, dropdown changes, etc.
Dec
18
revised If a webpage invokes a javascript function on a click from a browser, why can't I invoke it programatically?
edited tags
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 to set an ungoogleable coding test?
@LordScree, if its "cheating" for devs to use Google, then YOU ARE CHEATING RIGHT NOW by coming to this site to ask us for advice. If I were your employer, I'd fire you right away and look for someone who can "think for themselves" when it comes to deciding how to conduct coding interviews.
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 to set an ungoogleable coding test?
What, exactly, is wrong with using Google for assistance when "finding X value in Fibonacci" anyway? Does your company block devs from using the Internet during their normal workday? If not, then why do you care if they Google for hints on that sort of thing. I've been a dev for a decade now and I almost always use Google when presented with a new type of algorithm to code.
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.
Sep
3
comment Translating views in MVC
Alas, my attempt at sarcasm has sailed over yet another set of heads. Clearly my career choice as a programmer instead of a comedian was the correct one. I would have thought "HTML Cinco" (Spanish for "HTML5") would have been a dead giveaway for the joke.
Sep
3
comment Translating views in MVC
FYI <fuente colorido="negro"> is fully supported in HTML Cinco, so its not the best example.