1,966 reputation
1911
bio website grahampeel.com
location
age
visits member for 3 years, 2 months
seen 9 mins ago

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


Jun
25
comment How viable is to create a mini documentation inside the source code
+1 for "Comments lie. They quickly get out of date." This is the primary problem with comments. The ONLY thing that can tell you what the code really does is the code itself. Reserve comments for WHY you are coding a certain way, like adherence to business rules and whatnot.
Jun
17
comment Can I use BOTH Java and C# in a game/application?
While this is technically possible, its a bad idea, unless you need some killer feature from each language that isn't in the other. If that is not the case, just pick one and go with it. You'll waste gobs of time trying to get it to build/debug/run on server/etc if you go the double-language route.
May
16
awarded  Yearling
May
9
comment The best way to open source my website
The only way to accomplish item #1 is to write your entire site/system to use HTML5/JS with all dataaccess as localstorage. That way, the code is entirely visible and "open" to anyone who wants to see it.
May
6
comment Progressive Enhancement vs. Single Page Apps
If the type of folks who disable JS/images/etc are not in your core target demographic, then there's no valid business reason to pursue Progressive Enhancement.
Apr
23
comment When to start thinking about scalability?
"Ask the architects, developers and ops people in your organization..." - Nothing in the question indicates that this is for an organization, its just this guy's side project.
Mar
5
answered Is there a best practice for populating a dropdown in ASP.Net MVC?
Mar
5
comment Is there a best practice for populating a dropdown in ASP.Net MVC?
The question could just be re-worded to say something like "Loading these dropdowns with AJAX seems troublesome, whats a good, reusable way to do this without AJAX?"
Feb
14
comment Corporate website design
I swear, strange as this sounds, having done several such projects I promise that the next one I have to do will involve just teaching the end users basic HTML and giving them a library of CSS widgets. Less work than actually building a great CMS, I feel.
Jan
10
comment Lead developer unable to do INNER JOIN
Database normalization is a strategy, not a commandment. There are cases where it makes sense to normalize, and cases where it does not. Furthermore, the rise of NoSQL is going to create a caste of devs in a few years whom do not posses the basic SQL skills that we all take as part of a standard developer's repertoire. In all likelihood, the dev in question is probably just a crappy dev, but nonetheless, there will be plenty of great developers whom do not do much SQL JOINing in the very near future.
Dec
12
answered Ways of developing for small system. What is expedient?
Dec
10
comment Why are <section>, <header> and <footer> tags not used much when I see sites that are in HTML 5?
I highly doubt that, to be honest. Do you have an example of how a commonly installed screen reader treats <section> better than <div>? tink.co.uk/2013/02/screen-reader-support-for-html5-sections -- that page indicates that there's very mixed support for these tags among the screen readers anyway.
Dec
10
answered Why are <section>, <header> and <footer> tags not used much when I see sites that are in HTML 5?
Oct
25
comment Implementing new required feature after software release
Had this scenario happen on a project I'm on. We had 300K "person" records in a database, the client decides to add "DateOfBirth" and make it a 'required' field. But remember, 'required field' does not equal 'non-nullable column'. In our case, we added the column as a nullable DateTime, but the UI requires the user to enter a DOB if they try to edit that record in any other way, and once a DOB is added, you can't erase it. The column will probably stay nullable forever since its unlikely the users will backfill 100% of the missing DOBs.
Oct
8
comment Database is performing slow, even all the tables are having normalization
The more you normalize, the less efficient your SELECTS get. Normalization is to make efficient INSERTS, denormalization is the path to the most efficient SELECTS. Most applications must figure out a balance of the two.
Oct
3
comment Can you be succesfull as a programmer without being good in math?
It depends on which area of programming you want to master. I work exclusively on Line of Business apps (sales databases, order processing, etc). In that world, there's very little 'real' math that you have to do. If you want to work for Google fine-tuning their search algorithm though, its a different story.
Sep
26
comment Why can't SQL return joined tables in a nested format?
A stored procedure could be called in 1 transaction, and then return as many datasets as you wanted. Maybe a "SelectUserWithEmailsPhones" sproc is needed.
Sep
17
awarded  Pundit
Aug
28
comment ASP.NET without viewstate input, How comes?
Yup. The pages with no interaction can turn it off without noticing any development trouble at all. I bet its an SEO concern for a site like this.
Aug
22
comment Instantiating Null Objects with Null-Coalescing Operator
FWIW in the JavaScript world you'll see a lot of their null-coalescing operator for optional parameter default values. Like such: props = props || {}; (props is a method param that we set to an empty obj if its not passed in).