Talk:Hard coding
The style of this article is far too conversational. Please fix that.
![]() | Computer science Start‑class Low‑importance | ||||||||||||||||
|
"Strings" chgd to "data"
I replaced references to 'strings' with 'data' since non-string data can also be hard-coded. --User:SteveBaker
"Practitioners"?
"practitioners of the software art"? If that's valid, I'd like some links. --Astronouth7303
"Hard code" v. "hardcode"
I thought the concept was written as a single word. This is the first time I have seen it as two words. --Anonymous
- Seems several forms are used; "hardcode", "hard-code", "hard code", "hardcoding" and "hard-coding", and "hard coding". Actually, to my surprise, "hard coding"/"hard-coding" is more frequently used than "hardcoding" (according to google). --Wernher 17:33, 20 January 2006 (UTC)
- I prefer the hyphenated "hard-code", as in my own usage this is the most common. Deryck C. 03:39, 21 January 2006 (UTC)
- It has to be said that the number of Google hits is not reliable for more than one word. It's some weird heuristic and given that "hard" and "code" are both probably quite common words on the internet, maybe that heuristic produces bollocks here. --Mudd1 (talk) 21:32, 18 December 2013 (UTC)
Profile Path
Actually, the example of C:\Documents and Settings\ failing on Vista isn't true - Vista automatically redirects this to C:\Users\ as there is a junction point/reparse point/symbolic link that points from Documents and Settings to Users. —Preceding unsigned comment added by 217.33.15.251 (talk) 10:30, 26 May 2009 (UTC)
- You are right, and i changed the article that way, removing the Vista reference. --95.89.180.211 (talk) 07:17, 26 May 2011 (UTC)
Microprocessors example
"[...] similar to the microprocessors in early computers, that were built to expect the computer's initial program code to start at the address 0 [...]" This example is wrong. There's no other way, every microprocessor must have some hard-coded start point. It's obvious that hardware can't randomize start pointer. Even when boot routine moves, there must be some hard coded place where microprocessor looks up for that changable start point (and some hard-coded instructions to jump there). —Preceding unsigned comment added by 93.179.214.1 (talk) 21:09, 18 October 2010 (UTC)
Origins
Currently the article says 'the term "hard-coded" was coined in 1990 by R. Galichon (then a Programmer/Analyst at Mobil)'. I beg to differ, I was using the term in 1989 and have also never heard of R. Galichon. -- JonRB (talk) 13:29, 18 April 2011 (UTC)
- Given that whoever wrote that origin story originally has been failing to provide a source for almost four years, I removed the sentence. It can always be re-added if someone can actually prove that this term is as young as 1990 (which seems unlikely to me). --Mudd1 (talk) 21:37, 18 December 2013 (UTC)
Optimization
Hard-coding can also be a powerful optimization technique, such as using sinus-tables instead of expressions when an FPU is not available. /Stellarvortex (talk) 15:51, 7 November 2012 (UTC)
Left / Right handedness
Example: In e.g., https://github.com/openstreetmap/iD/issues/7866 I plead the case about not assuming all users use their left hand for certain mouse operations and their right hand for others, and thus have this hardwired too deep into the code to change. Jidanni (talk) 21:21, 21 September 2020 (UTC)