473,659 Members | 3,239 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Hardcode Definiton

I browse Google MS Access groups frequently and have come upon the word
"hardcode" or its variations (hardcoding, hardcoded, hard code, etc) in some
of the posts. What exactly is "hardcoding " ? Is it the opposite of
"softcoding " (though I've never seen that word)? How does it differ from
any other code? Is it more strenuous to write hardcode than most other
code? Just curious.

Thx...
Earl Anderson

Nov 12 '05 #1
2 2079
The metaphore is similar to hard-wired. If a behavior or data item used by a
program is determined entirely within code itself, then it is hard-coded. If
a behavior is driven by data stored and accessible outside of the code, then
it is not. There is no antonym for hard-coded, the term you would use depends
on what the code would do with the data.

By way of example, if a program displays the name of the registered owner, and
that is determined by a line in the code like the following

Public Const cstrRegisteredO wner = "Foo Bar, Inc."

then it is hard coded. Nothing outside of the code itself determines what
registered owner name will be displayed.

On Fri, 14 May 2004 00:08:16 -0400, "Earl Anderson" <is*****@rcn.co m> wrote:
I browse Google MS Access groups frequently and have come upon the word
"hardcode" or its variations (hardcoding, hardcoded, hard code, etc) in some
of the posts. What exactly is "hardcoding " ? Is it the opposite of
"softcoding " (though I've never seen that word)? How does it differ from
any other code? Is it more strenuous to write hardcode than most other
code? Just curious.

Thx...
Earl Anderson


Nov 12 '05 #2
Steve Jorgensen wrote:
The metaphore is similar to hard-wired. If a behavior or data item
used by a program is determined entirely within code itself, then it
is hard-coded. If a behavior is driven by data stored and accessible
outside of the code, then it is not. There is no antonym for
hard-coded, the term you would use depends on what the code would do
with the data.

By way of example, if a program displays the name of the registered
owner, and that is determined by a line in the code like the following

Public Const cstrRegisteredO wner = "Foo Bar, Inc."

then it is hard coded. Nothing outside of the code itself determines
what registered owner name will be displayed.

On Fri, 14 May 2004 00:08:16 -0400, "Earl Anderson" <is*****@rcn.co m>
wrote:
I browse Google MS Access groups frequently and have come upon the
word "hardcode" or its variations (hardcoding, hardcoded, hard code,
etc) in some of the posts. What exactly is "hardcoding " ? Is it
the opposite of "softcoding " (though I've never seen that word)?
How does it differ from any other code? Is it more strenuous to
write hardcode than most other code? Just curious.

Thx...
Earl Anderson


I usually say the opossite to "hard coding" is "dynamic" :) I usually
try to make things as dynamic as possible to allow for unforseen
eventualities.
--
regards,

Bradley
Nov 12 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1621
by: Matthias Drescher | last post by:
Hi there, I have a litte problem while reading from a Excelfile. Im try to read a 4 byte value and convert it into an integer or floating point value with the following criteria: Thats what the definiton says: An RK valie is an encoded integer or floating-point value. RK values have a size of 4 bytes and are used to decrease the size for floating-point values.
467
21462
by: mike420 | last post by:
THE GOOD: 1. pickle 2. simplicity and uniformity 3. big library (bigger would be even better) THE BAD:
3
3205
by: Zunbeltz Izaola | last post by:
I've a clas with following methods: class difracsocket: def __init__(self,sock=None): self.Handle = 1 def cliente(self,orden,respuesta):
35
2326
by: Gabriel Zachmann | last post by:
Is there any generic way to use C++ libraries from within Python. I seem to recall that there are tools to generate wrappers for C-libraries semi-automatically. But those were still way too cumbersome, IMHO. What I would like to have is some module (or whatever), with which I can say "load this C++ library", and then, "create that C++ object" or "call method x of C++ object y".
2
1178
by: Fatih Gedikli | last post by:
Hi, is it "allowed" to define variables after a statement (not at the beginning of a block) or is this not standard-conform? thx -- mfG Fatih Gedikli
3
1433
by: baumann | last post by:
Hi all, in a .h header file i want to declare a var as extern struct mytype a; after I include the header file in a dot c file
0
1414
by: Tim S. | last post by:
I have an ASP.Net app call another program, "helper.exe", on its same server. I want the helper.exe to always have a user = Administrator (as opposed to the standard aspnet_user inherited from the "parent" process that called it). Is there any way in the code to hardcode the user, regardless of how that process is started (i.e. whether it is run directly by the administrator, or called through the System.Diagnostics.Process.Start( ) in...
2
1803
by: noridotjabi | last post by:
I have a program (its gigantic so I'm not posting the source) that I'm writing with two probelms. First of all can someone give me an example of how fgets is suposed to be used because I've read its man pages but I still get a segmentation fault everytime I try to use it. Second here is the problem with structures. #include <stdio.h> typedef struct MY_STRUCT{ int one;
2
1839
by: Rich | last post by:
Hello, I am adding a makeshift Help component to my VB2005 project. That means I am not using HTML help to create a chm (unless someone can explain how you connect a chm file to a project - I have HTML workshop - and sort of know how to use it). Anyway, I am currently using a tab control and placing textboxes/RichTextboxes in the various pages with my information. The problem I am having is that I want to hardcode the text, so I am...
0
8428
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8851
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8747
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8528
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7356
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5649
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
2752
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1976
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1737
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.