hardcode

What casing is a driveletter

is it uppercased C:\ or lowercased c:\ ? We tried to come up with a conclusion, only argument is that that MS displays uppercase (C:) Its not what is technically correct, its a matter of arguments choosing what to use when creating config file or hardcode other path info's e.g in a deployment script. ...

Hard-coding HTML into VB6 code

Background: we have an application that generates reports from HTML (that may or may not have inline scripting). The HTML source is normally stored as a blob in the database. There is now the need to hard-code a particular report into the application (i.e. so that it is not database dependent). I first tried it the brute force way (cutt...

Can .NET source code hard-code a debugging breakpoint?

I'm looking for a way in .NET (2.0, C# in particular) for source code to trigger a debugging break as if a breakpoint was set at that point, without having to remember to set a specific breakpoint there in the debugger, and without interfering with production runtime. Our code needs to swallow exceptions in production so we don't disrup...

JQuery - Hardcoding HTML in Javascript - Is there a better way to dynamically create dom elements?

I have a lot of messages, and raw HTML that I hard code in my javascript code, such as: var subjectId = $(subject).attr('subjectId'); var subjectName = $(subject).attr('subjectName'); var html = "<table id='invitations' class='invitations' width='100%'><tbody>"; $(subject).find('group').each( function() { var groupId = $(this)...

should i use the web framework for implementing a bunch of external links that likely won't change?

i'm building my webapp using the wicket java web framework. there is one page that i'm building right now contains 20+ external links, a lot of them are pointing to the wikipedia pages. i'm currently hardcoding the url for all these links in the html page. i could definitely add these links by using the framework (wicket has a class fo...

Is this hardcoding? How can I avoid it?

I'm creating a parser for a specific XML structure and I'm facing a possible hardcoding issue. Here: private function filterDefaultParams($param){ #FIXME Hardcoding? return array_key_exists('default',$param); } The literal 'default' is a valid tag in the Xml structure, is this hardcoding? May I use another technique to search ...

Constants for resource types in Android

Are there constants for the various resource types (ie: "drawable") in Android? I want to code some conditional logic based on the return value of getResourceTypeName and I would prefer to avoid hardcoding the resource types. Example: final String type = context.getResources().getResourceTypeName(resid); if ("drawable".equalsIgnoreCas...