share
Stack OverflowWhat are programming lost arts?
[+116] [64] pavpanchekha
[2010-01-12 03:39:48]
[ history retro-computing ]
[ http://stackoverflow.com/questions/2046563/what-are-programming-lost-arts ] [DELETED]

Have you ever programmed raw machine code (not for class)? Examined a hex dump with just a hex editor (or, heck, without)? Written your own software floating-point library? Division library? Written a non-school-assignment in Lisp or Forth?

What sort of "lost arts" have been forgotten? And what reason (if any) would there be to resurrect them?

(8) Lisp is hardly a lost art, and I'm not just saying that because I write it all the time. Look at the serious Emacs users around you (I've got 3 on my team here) -- those people use Lisp. - Ken
(4) I've done four of the things you mention very recently. Try again. :P - Porculus
Which one haven't you? And if it isn't the first, why oh why are you coding raw machine code? Even for embedded systems, it seems like an assembler should exist. - pavpanchekha
I've done three of the things and studied all five you mentioned. @pavpanchekha: Coding raw machine code makes you feel good in a certain pervert way. Compilers are also fast to port that way and they don't need an assembler as the result. - Cheery
Congratulations for your gold badge! I haven't even read the question it but I'm gonna upvote from 99 to 100 points so you can get your badge =) - Andreas Bonini
[+124] [2010-01-12 03:43:59] Noon Silk [ACCEPTED]
  • Free thinking

(5) Why, exactly? I'd agree with common sense, or even just freedom, but what exactly constrains our thinking? - pavpanchekha
(86) pav: It is my experience that a lot of programmers rely on other peoples opinions too strongly, and are afraid of forming their own. The world of blogging as brought this on, there people are able to seem intelligent, and then end up with a bunch of followers, who all take their advice as gospel, without considering it. Often it can be referred to (by the same people, ironically) as 'Cargo Cult' programming. The best meaning I am trying to get across is that you can take in comments, but the best thing is to research and decide for yourself, in your situation, what is the most appropriate. - Noon Silk
"best practice is to..." says who? "..this web site that i take as gospel"... ;) - rally25rs
I see. Perhaps it tends to happen more in your neck of the woods. A pity -- I thought that the simple determinism of computers would make programming more, not less, like a science. - pavpanchekha
pav: You must be new to programming :) (And just to be clear, it's not at my work I notice this, it is on the forums and the internet, in general). - Noon Silk
pavpancheckha: Programming is about people as much as computers. Possibly more so. </sententious> - itowlson
(2) Personally, I consider programming to be more of an art than a science. - Anon.
(1) Anon: Some people would consider science an art :) - Noon Silk
(3) Well, I tend to take the internet with a grain of salt. According to it, Ron Paul won the US presidency. I was thinking, with the whole "science" thing, about questions along the lines of "hash tables are always better than RB trees, some blog said so" or "that CodingHorror guy likes C#, so I refuse to use anything else." - pavpanchekha
pav: Clearly, you don't take the internet with that much disrespect or you wouldn't be asking your question on it. It's a sad fact of society, or human nature, that we need to get information from people, as it's too hard to review it all personally. But on some matters, important matters, your own personal research and thinking are critical. I think this has been lost, a bit, in our field, because we lean towards popularity, as opposed to best (this site itself is the classic example of that, it's a democracy). - Noon Silk
(1) The irony is, if you decide my answer is correct, then did you really decide that, or did you research it and come to the same conclusion? :P It is my opinion (get ready for more irony) that too many people take opinions as research, and don't check the facts. This is what I have an issue with. - Noon Silk
(21) Great answer. Many programmers today are in little boxes. Come out! Try stuff. Fail. Therein lies the path to enlightenment. - Richard Pennington
(1) @silky - I was going to research the statement you made in the comments, but then I decided I didn't feel like it and I'm just going to assume you are correct. ;-) - JasCav
(16) @Richard Pennington: not when I'm paying your salary, it doesn't ;) - John
(2) You could make this answer even shorter (changing a little bit the meaning): "Thinking". - Bruno Reis
(1) +1 Yeah me too :P - AnthonyWJones
+1 for Cargo Cult Programming... - Slomojo
1
[+101] [2010-01-12 04:37:10] dsimcha

Programming for space efficiency seems like a lost art. Everyone nowadays assumes memory is cheap. It is unless you're working with sufficiently large datasets. I'm currently working on a project involving about a 54,000 x 32,000 matrix. Needless to say, there was some creativity involved in making everything fit in memory.


(8) +1. I still optimize mainly for the challenge and fun than actually needing to. - Louis
(11) One of the big gotchas is knowing when to pack data (e.g. to save disk, communication bandwidth, or cache space) and when not to (because packing/unpacking can slow you down). Also, I'm amused how little code deals with out-of-memory conditions; it's like they expect the OS to kill the process cleanly, and don't realize that they could corrupt a bunch of stuff before the OS realizes they're playing with null pointers. - Mike DeSimone
(4) I'm sure people who develop embedded applications have to worry about space (though not as much as before). - Noufal Ibrahim
(6) @Noufal - as one of those "embedded applications" developers, we still have requirements about code space size that limits us to KB. It is not unusual to be limited to less than 100KB of code space. That is pretty roomy compared to 10 years ago but it still requires some interesting optimizations. - D.Shawley
I always try to keep my code optimal the way I know how, while my co-workers say "come on who cares!" - phunehehe
Mobile development is also still pretty space constrained (though nothing like it used to be). - Kendall Helmstetter Gelner
We game developers optimise for space efficiency quite a lot, although it's for the performance gain rather than the reduced space as such. Cache access is paramount and we often use O(N) structures instead of O(logN) because the former is faster if it's kept small enough. - Kylotan
I just finished a program that is supposed to run as part of our auto-update process that uses upwards of 1 gig of ram. And (with the exception of some VM weirdness) it works in the wild! +1 for you in theory and ideals anyway. - Peter Turner
(1) Space efficiency is also aggravated by the use of garbage-collected programming languages. Although the latter tend to make programming easier and reduce memory errors, they also come at the cost of increased memory usage. In order to have time-efficient garbage collection performance, modern versions of a language like Java use generational collection that divides process memory into different containers and then uses different collection algorithms on each. Unfortunately, this also effectively increases memory requirements relative to a non-garbage-collected language like C++. - Joel Hoff
2
[+90] [2010-01-12 04:52:25] Mathias

Punching holes in floppy disks to make them double-sided.


(2) No thanks. The day I got my first CD-ROM is the day I stopped using floppies (well, almost). - Robert Harvey
+1 good one I already forgot, as using cd-rom give usb-sticks a try - stacker
(12) Lol, I already forgot that. +1 'cos im smiling right now :) - SoMoS
that's awesome! I remember having some purchased software that came on floppies that didn't have a cut in them at all and were "read-only", which was of course circumvented with a pair of scissors :) - rally25rs
(3) really? that possible? I don't use floppy but that's interesting, any body give me a link please? - phunehehe
(10) Basically, go look up a picture of an old 5.25" floppy. They would cut a square notch at the top of a side to let the drive know that the disk was writable (i'm not sure if something mechanically moved there, or if an optical beam passed through it) so to make a disk "read-only" you could cover it with tape. (the same thing was basically true on 3.5" floppies, they had that little plastic slider instead though). Both sides of the magnetic film inside the disk could be used, so you could cut a 2nd notch in the opposite side, and put it in a drive upside-down, and write data to the back! - rally25rs
(1) why didn't anyone tell me this years ago? hehe - Svish
(3) +1: Those sweet memories. I ended up just cutting the corner off as it was faster. But you had to be careful not to cut the disc inside. I once did but managed to use only the inner sectors. Nothing was going to waste back then... Ahhh... - Anders Hansson
(9) -1 Belongs on Super User. :) - Andrew Grimm
@R6bert Harvey. Death to all optical media! CD,DVD, BLURAY....they are all awful. - Alex
At least when I did double-siding you had to not only cut the notch but punch the two holes to allow the light through the start-of-track marker hole. Since one end of the punch had to be inside the case to do that you had to be careful not to scratch it. - Loren Pechtel
rally25rs: the floppy drive of the c64 had a non-mechanical sensor. My - failed - invention was to misplace this sensor, so the two parts always saw each other. But the sensor's job was to check if I took out the disk. - Vili
(10) I've yet to find the correct hole position for DVDs to make them double sided... - Jawa
bit bleed was a big problem for me when using bulk fd. @vili my second real programming paycheck was spent on a c1541. the first was spent on a c64 and both came from games i wrote on a v20. ;-) - Sky Sanders
(2) what??? I need to go back to 1990, now. - bobobobo
@Alex: Agreed. I'm still waiting for the perfect backup media. Lately I have been using WD Passport drives. - Robert Harvey
3
[+65] [2010-01-12 14:02:11] John

Tweaking your config.sys & autoexec.bat files to squeeze every free byte you possibly could from your 640Kb, so a game would run.

Very similar to that scene in Apollo 13 where they are trying to cut as much as possible out of the normal startup process due to low power!


(5) Spending all night changing the order drivers were loaded in conig.sys to get enough low memory for Autocad to run - Martin Beckett
Falcon 3.0 had brutal demands... - icelava
I managed to run Wing Commander 3 with just 4MB of RAM! - Frerich Raabe
(3) I remember finding a smaller mouse driver from somewhere to free up 5 or 6 precious kilobytes. - Kylotan
(1) And I remember having a keyb.sys-replacement which needed under 1k! - dwo
I remember this too. I actually got so good at it that I was PISSED when Win95 came out and "everyone" could just do as they pleased without needing to know how to config their memory. Origin games were the worst for needing this back then, too. - JNK
(1) Uh yeah... Almost forgot about the cycle of: Change 2 lines in config.sys - Ctrl+Alt+Del - mem grunting noise Change another line - Ctrl+Alt+Del - mem grunting noise etc... - Jules
4
[+52] [2010-01-12 05:05:03] Robert Harvey

Performance as a feature, not as an afterthought.


(20) Security as a feature, not as an afterthought. Same thing really, it's all about good design, both security and performance should really be just sideeffects of it. - Marcin
(1) Depends on what sort of software. In most cases, performance isn't really an issue. In some cases, it's critical. Designing security in strikes me as more generally valuable. - David Thornley
(2) I think a lot of people these days assume performance won't be important when they're initially writing and testing it because it's always "good enough", but then when the software is out in the real world and creaking under the strain of thousands of users and millions of lines of data, opinions may change! - Kylotan
@Marcin, I think security as a feature has never been given the priority that it deserves... if anything, security was actually less of a consideration back in the day than what it is now. - dodgy_coder
5
[+48] [2010-01-12 03:50:24] rally25rs
  • Knowing how memory pointers work (no one cares any more thanks to Java, .net, etc)
  • Knowing how to debug real issues. Garbage collection, taking heap dumps, etc.

(22) Yes, because Lord knows we don't have enough pain already. - Robert Harvey
(5) I program .Net and I know what pointers are and how they work. You'd be hard pressed explaining the difference between an array and a collection if you didn't. - Spence
(8) pointers are hardly arcane. Many schools still teach C++ and many projects (legacy and new) continue to use C++. - John
(4) @spence and john, that's great, I'm glad you still know. I've been working primarily in Java and .NET for the last 6 years, and have worked with plenty of contractors that have never programmed in an un-managed language, and hardly understand how any of it works underneath. I've always been very happy that I learned C/C++ and ASM in school,a nd I think it'll be a terrible day when schools drop all that and just teach a managed language and that's it. - rally25rs
I don't think ASM/C will be dropped very soon at all. In ASM, you're completely free to do nearly anything you want. Though it may be difficult, it's an adventure to hobbyists like me. Even if they stop teaching it in school, the information will still be available on the web (that's where I learned it). - Wallacoloo
(8) Sort of how we don't care how a spark plug works inside. I think these types of lost arts aren't really lost arts. They're evolution. Expressive languages are like frameworks. They remove the menial tasks. - orokusaki
Long live C++!!! - George Edison
(1) @orokusaki, good point. Its like no one knows or cares how the engine in their car works, and suddenly you find yourself broken down on the side of the road with the hood open, staring blankly at all the wires and hoses. So, lets all step up and be the code tow-truck! :) - rally25rs
You know, there are many people that program that do not build boiler plate business CRUD applications and Web based social networking clones. - BobbyShaftoe
Your point being? - John
(2) @orokusaki: When my engine fails me, I go to a specialist, because I have neither time nor desire to learn how modern engines work (they're a lot different from the slant six in my first car). When I was young, a lot of programmers knew assembler, and now it's a specialty. - David Thornley
(1) @David Thornley Tell me about it. I don't even clean my house. I have a lady who comes each week 3 days a week and does my laundry, and everything (and I'm not rich). If everybody and everything did what it/he/she was best at, the world would spin faster. Note: I am a fan of a large breadth of knowledge and the micro tasks have to be done by somebody just like how somebody has to flip burgers until McDonalds figures out a way to do it cheaper by machine. I'm just not a fan of solving problems that have been solved for 15 years. - orokusaki
I'd consider pointer arithmetics an ''art''. It's now iterators and whatnot - progo
(1) If I'm hiring someone to do design work on an internal combustion engine, I would like them to have a pretty good idea of how a spark-plug works. There is lots of programming that can be done without understanding pointers, but the best software engineers probably know pointers inside-and-out -- even if they don't use them often. - nobar
6
[+43] [2010-01-12 03:41:59] jldupont

Reverse engineering through disassembly... would get back to me though. SoftIce anyone ;-)

Why would it be useful? It gets one to understand the inner-workings of a machine rather well... and allows one to understand Client languages (e.g. C,C++) more easily.


(14) +1 softice was amazing. - rally25rs
(1) I'm doing this nearly every day. Working on SharePoint, have to know what's inside microsoft.sharepoint.dll ;-) Of course, I'm talking about .net reflection which is a modern way of saying "disassembly". - naivists
(1) +1 i loved the advanced full screen debuger - stacker
(7) This is still very much alive and kicking. IDA-Pro with HexRays is tough to beat for application level reversing. - Simucal
(1) @naivists I agress, I often have to use WinDbg to debug SharePoint weirdness, so knowing assembler is very useful. Also knowing .NET IL (Intermediate Language) is crucial for tasks like this. - Jason Evans
OllyDbg is still great too, and v2 is just around the corner... - romkyns
7
[+42] [2010-01-13 08:27:12] Thilo

The ability to work without constant access to online reference material (and Google and Stackoverflow).


(5) +1 This might be a lost art, but in today's world, someone that knows everything about a specific language has to have some kind of super memory. Take php for example. It has loads of functions, loads!!! I can remember some of them but not most and the ones I do remember I have to look up the parameters :P - AntonioCS
(4) Yes but even for stuff which has full documentation, figuring out how do do something can take several days... with SO it can sometimes get an answer in 10min, or might take days for an answer but you can "spawn a parallel SO process while you work on other stuff yourself!" - John
8
[+37] [2010-01-12 04:04:33] itowlson

The Story of Mel [1] is a classic of the lost arts... in blank verse, yet.

Mel loved the RPC-4000
because he could optimize his code:
that is, locate instructions on the drum
so that just as one finished its job,
the next would be just arriving at the "read head"
and available for immediate execution.
There was a program to do that job,
an "optimizing assembler",
but Mel refused to use it.

[1] http://www.cs.utah.edu/~elb/folklore/mel.html

(3) Agreed, I love this article. - Noon Silk
(3) Hrmm... was Mel a real programmer... stackoverflow.com/questions/622515/was-mel-a-real-programmer - user113476
Technically, I believe that's free verse (not blank) because the lines don't have ten syllables. - Michael Myers
9
[+29] [2010-01-12 04:19:37] Aaronaught

Debugging a program via blinking lights.

(Or blinkenlights [1], if you prefer)

[1] http://www.catb.org/~esr/jargon/html/B/blinkenlights.html

(20) Note to self: Hook up system that connects christmas lights to debugger state. - Noon Silk
Vote up for the Jargon File reference. Had my first read 25-and-some years ago. - DaveE
This and debugging via logging, understanding the bugs logging can hide (e.g. it can make race conditions less visible). I do embedded work that interacts with other real-time systems, so setting a breakpoint generally causes more problems than are solved (since a halted program looks like a hung program to the other end of, say, a socket). - Mike DeSimone
Yes, using a toggle switch to step through tape-loaded instructions and observe the state of lights grouped by threes to get the octal codes, and using that to find which card is bad. - Bratch
I actually laughed out loud at "Das rubbernecken sichtseeren keepen das cotten-pickenen hans in das pockets muss". - Michael Myers
+1: you should have added toggle-switches and alligator clips ;-) - jldupont
Hah, if we had a light bulb for every register... :) - tsilb
I can assure everyone that this is not a lost art. There are probably more people doing this now than in the 70s just because there are far more people doing programming at all. Every firmware developer has at least some experience with this. - romkyns
10
[+28] [2010-01-12 10:21:48] fa.

Writing self modifying code !


This is one of those things that should never come back. - Mike DeSimone
(4) Sure it breaks all today's coding practices, but that was a lot of fun. - fa.
(20) It never went away. - Pete Kirkham
A large company I work for now has some production code that is self-modifying. It's in mainframe assembler, and the program is written in a clever way - it switches branches off/on at another areas of the program (such a branch is called "gate"). Reading it is kinda like playing Chaos Strikes Back (a PC RPG game famous for the teleports and changes that affect other part of the game). - J S
Was anyone else forced to write self modifying code to get a common Interrupt(int x) function? Intel was nice enough to only put in int imm8 for the interrupt instruction, so if you needed a dynamic interrupt number, it was pretty much forced upon you. - Earlz
(3) Still used for JIT compilation, dynamic recompilation, and malware. - Longpoke
11
[+25] [2010-01-12 04:06:14] Richard Pennington

My first assembler was pirated from an Intel 8080 development system. I printed the hex dump on an ASR33 teletype and entered it by hand into my SOL80. I hand edited the I/O functions to use the SOL's cassette drive.

The SOL80 was build from a bag of 74LSxx parts and an 8080.

I relocated the SOLUS monitor from $C800 to $F800 so I'd have more room to run a (modified) UCSD Pascal system.

I don't think that hex editors existed back then. At least I didn't have one.

I wrote my first C compiler to run in 48K of memory: 5 passes: pre-processor, parser, improver (not really), code generator, and assembler. For the 6809. Yes, floating point in software and divide as well.

I ran (almost) version 7 Unix on a PDP11/23 (Venix), with a compiler written by Ritchie.

I ran BSD Unix on a VAX. With a 9-track tape drive.

I had a SparcI, a Lisa, the original Mac.

That was in the first 5 years. A lot happened since then.

You guys (at least some of you) have missed a lot.


I forgot to mention Leor Zolman and BDS C. - Richard Pennington
I wish I could give you more than +1. I had one chance to program an EPROM for a self-created 6800 monitor which included an assembler and debugger. In less than 8192 bytes. No chance to debug it—it had to work the very first time. And it did. - wallyk
Yes, we indeed have missed. I just saw X11R7 on a friend's NetBSD and said (without thinking) that "but it has ALWAYS been R6" - Kimvais
+1 Wow! Wish I had done half of that :( - AntonioCS
SOL80? Are you sure you don't mean SOL-20? That was my first computer too. - I. J. Kennedy
(2) @I. J.: You're right. It was a long time ago. ;-) - Richard Pennington
12
[+23] [2010-01-12 04:07:02] Neil N

I still have a warm and fuzzy for Peeks and Pokes.


Not so fun when you mistyped an address and caused the machine to hang hard! ;-) - Mauricio Scheffer
POKE 53280, 0 POKE 53281, 1 - Jason S
13
[+23] [2010-01-12 05:44:44] Don

Reading code—somebody else's code.

This is one of the best ways to learn. But learn on many different axes in one piece of code wherein you might be beset by bad 'style' but still learn a great algorithm, fight with spaghetti code just to find the secret sauce of the data structure, or ignore the code to see the patterns.


loool... +1 for ingenuity and constructive criticism. - lmsasu
+1 This is not a lost art for me :) I do lot's of this :) - AntonioCS
Like recognizing XR a,a does the same as LR a,[0] but takes less space and does not reference memory. - Don
14
[+23] [2010-01-12 09:09:13] Nick Dandoulakis

Parking hard disk's heads :)

Landing zones and load/unload technology [1]

Do you remember DOS park utility?

[1] http://en.wikipedia.org/wiki/Hard_disk_drive#Landing_zones_and_load.2Funload_technology

(2) I once forgot to park the heads on a Ferranti 286 PC and then proceeded to take it across a bumpy road on a small trolley with solid wheels. You can imagine the result :( - IanW
(3) Anything to keep your precious 20 MB data save ;-). - Gamecat
+1 for dos park - Kimvais
my first harddrive was a used seagate st220 (20mb) for only 500 bucks. - stacker
@stacker: HA! My HD was 30mb! :-) BTW, I didn't have a PC but a PS computer, en.wikipedia.org/wiki/IBM_PS/1 It was (still have it) good computer but I could buy hardware/peripherals only from IBM :/ - Nick Dandoulakis
15
[+18] [2010-01-12 17:19:27] Noufal Ibrahim
  1. TSR [1]s!
  2. ModeX [2]
  3. Staring at my old PC-XT wide mouthed when I first played a game that used RealSound [3] - That was a neat hack. Digitised speech on the PC speaker!
[1] http://en.wikipedia.org/wiki/Terminate_and_Stay_Resident
[2] http://en.wikipedia.org/wiki/Mode_X
[3] http://en.wikipedia.org/wiki/RealSound

Do you not mean the "Terminate and Stay Resident" TSR's? ;) - Wesley
Yes. That's the one! - Noufal Ibrahim
+1 for TSR's, they're fun! - mlvljr
16
[+17] [2010-01-12 06:20:26] grigy

Using DOS extender (such as EMX/XMS) drivers to access memory beyond 640KB.


Not as dead as you might think. DOS still has its niches. - Porculus
17
[+17] [2010-01-12 07:06:45] stacker

In the early days we did really weird things:

  • Listening to a speaker which was connected to a register (pc) to debug a mainframe (no joke).
  • Replacing paper tape reader by hard and software.
  • Incorporating the VIC-20 floppy drive for calculations, because it's processor was just as well.
  • Writing interrupt routines to switch between text and graphics mode in one screen.
  • Drawing and erasing lines by xor.
  • Using video ram for codes since 3,5 Kb were not enough.
  • Rewriting machine code lost by a chewed-up tape.
  • Writing code for self soldered acoustic coupler (predecessor of modem).

Using the video RAM was done not so long in time. I had some DOS software to use the 1Mb my VGA had on my 386 with 4MB of RAM. - SoMoS
(7) The awesome things I saw people do with Commodore floppy drives... The one I remember was a Huffman compression algorithm for the serial port to double the 250 byte/sec bandwidth. (Yes, it was that slow; it was implemented with bit-banging.) But then that got trumped by Don Lancaster using his Postscript printer as a computer. He'd write programs in PS, send them to the printer, and the output (like a Bode plot of an active filter response) comes out on paper with more resolution than the screens could do then. - Mike DeSimone
(1) +1 for Rewriting machine code lost by a chewed-up tape. - johnc
The video memory for code thing is coming back with CUDA and other stream processors. - CannibalSmith
(2) The video RAM for code thing: Back in the C64/Vic20 days, those CPUs were synchronous: A memory access happened in one cycle, no support for wait states. So some designers made the video circuit access the RAM on the opposite clock from the CPU, since the CPU finished a read on the rising clock edge. Another video/code resude story I heard was that in some Atari 2600 games, the programmers would reuse sections of code for the sprite bitmaps for things like explosions and wreckage, to save ROM. - Mike DeSimone
Changing hard drives (looked like taking the agitator drum out of a top-loading washing machine). Loading up a nine-track tape. - David Thornley
@Mike DeSimone, SO THAT WAS WHY some explosions were so ass-ugly! :-D - Amigable Clark Kant
+1 for XORing lines ... this can still be done in WinForms/GDI+ in .NET (I've done it) and is a great technique for quick-n-dirty rubber banding of selection rectangles or lines. - dodgy_coder
18
[+16] [2010-01-12 08:54:37] Rubens Farias

"Think before act"

Not so long ago, processing time was expensive and you had to make sure that your program would run on the first try. You're asked to create basic paper documentation, get it reviewed, code your program and, finally, run it.

Now, everybody has a hammer.


and nowadays everything is multi-core so when your code goes haywire and busyloops on a server shared by other people you can actually kill the process yourself before waking up the scary rootperson. - Kimvais
19
[+15] [2010-01-13 14:12:59] Square Rig Master

Charging money for your code!


20
[+14] [2010-01-13 09:04:06] Jonathan

Designing Ansi/Ascii screens for BBS's!!!


People in taiwan still draws asiarts and use BBS, popular BBS site: telnet://ptt.cc (100k user connected now), and ansiarts: ansi.loli.tw - albb
21
[+14] [2010-01-16 13:51:57] nickf

Javascript seems like a lost art these days. I couldn't count the number of questions on Stack Overflow which read something like this:

How do you add two numbers using jQuery?


You've got to be kidding me. - Kawa
well, thankfully not literally, but in essence, some people are learning jQuery and not javascript and don't even seem to realise the two are related. - nickf
JavaScript a lost art? Man, you must be young; or I am significantly older than I'd like to think :) - Noon Silk
22
[+11] [2010-01-12 03:44:44] Thilo

After five years of Eclipse, my vi-fu is seriously degrading. Combine that with a terminal without cursor keys, and I am in a bit of trouble.


(2) that's not a lost art man, people are using it - phunehehe
(4) yeah, other people ;-) - Thilo
vi lives. (well in the form of gvim and vi-input mode in programs like QtCreator and KWrite) - Ali Lown
(1) viplugin.com/viplugin - dkantowitz
23
[+11] [2010-01-12 12:08:06] ammoQ

Classic BASIC (before QuickBasic), with line numbers and GOTOs and GOSUBs, but without any loops other than FOR loops (because you used IF and GOTO to implement WHILE loops). Allowed for the best spagetti in town.


You give QuickBasic too much credit. GW-Basic had WHILE loops, and there were 8-bit BASICs at the same time that even had proper named subroutines. - Porculus
I remember doing basic on my Apple IIe. Always code in multiples of 10 in case you make a mistake. - Scott Chamberlain
scott: some versions of basic had a RENUM command as a remedy - ammoQ
Yes, and unless you were really careful, there went your table of contents (this routine starts at line 1000, that one at 1400, etc.). - David Thornley
BEEP command was my Korg Synth - BumbleB2na
24
[+10] [2010-01-12 05:23:52] Sarah K

Writing code by wiring individual diodes because (a) you happen to have them laying around and (b) your parents don't actually give you enough allowance to let you buy an EPROM burner, and you're not quite yet skilled enough to build one yourself. Unfortunately the resulting programs are rather short. But the output can be read on the homemade logic probe!

Ah, misspent youth.


Is the output smellable? - James Morris
... So if you used LEDs, you could watch your code execute? Sound like a trippy way to analyze code coverage. - Mike DeSimone
(3) Well, you could watch the address and data buses. And single step the CPU clock using individual pulses, provided you were playing with a CPU with static registers. Output was only smellable if something went wrong and the magic smoke got out... - Sarah K
25
[+10] [2010-01-12 06:08:22] Alex B

Classic viruses that embed themselves in other executables. I haven't heard of any modern malware that's not related to controlling botnets and sending spam, and certainly no malware comes close in complexity to ZMist [1].

P. S.

No, this should not really be resurrected. Only for academic purposes.

[1] http://en.wikipedia.org/wiki/ZMist

+1 for metamorphic code - Longpoke
(3) Executables? Boot sector viruses, man! I think I still have an LHA archive containing my collection of Amiga viruses somewhere... - Michael Borgwardt
(2) No viruses come close in complexity to that one? Not even the infamous Stuxnet, the most awesome malware that I have ever heard of? :) - romkyns
(1) The reason you haven’t heard of modern malware that embeds itself into executables is because there are now even sneakier techniques for viruses to reside in your system, e.g. system DLLs, rootkits, device drivers, etc. The complexity of malware is rising, and so is that of anti-virus software, which is a highly active area of research. If you are interested in finding out about fantastically complex recent malware, check out Symantec’s dossier about Stuxnet which is unprecedented. - Timwi
26
[+10] [2010-01-12 10:45:25] Christian Vik

Fixing the partition table and FAT file system by hand using a simple hex editor.

Writing a small linux application in C from scratch to restore a damaged RAID set (3 of 4 disks had hardware errors when the server crashed).

+1 for Threading reel-tapes. Been there, done that. (Tandberg tape drive for Norsk Data servers)


I used to modify FAT12 on floppy disks and create magic folders :-) - Nick Dandoulakis
+1 I remember now! - jldupont
eh, I recently had to fix a partition using a hex editor cause windows 7 messed it up :-/ - Dan
27
[+9] [2010-01-13 17:47:51] Bill Martin

Opening COMMAND.COM in an editor and changing the error messages.

'Bad Command or Filename' to 'Deleting C:*.*. Please Wait'.


A couple of friends went through and changed virtually every OS error once--this was back on the TRS-80. - Loren Pechtel
28
[+8] [2010-01-15 16:23:33] lorenzog

Two things:

  • the ability to focus on a problem without giving up to distractions easily (or, as a corollary, the inability to willingly take yourself away from IMs, mail, news, phone, etc).
  • the ability/will to think about what can be wrong when debugging a program, and not just mindlessly fire up the debugger and start tracing threads around and changing variables on-the-fly.

To rephrase the last point: more often than not I find myself doing trial-and-error bugfixing rather than trying to understand why things are happening.

Just because computers are fast it does not always mean that it will be faster to try out all possible combinations. Even though I never lived them, I miss not having the discipline of "the old days" when you wanted to make sure your program was correct because you might have only one single chance to compile it and run it that day.


29
[+7] [2010-01-12 14:40:10] Larry Watanabe
  1. Programming to handle out-of-memory errors and allow the user to recover gracefully.

    When I was programming the mac, each call to malloc would be followed by a check to see if an out of memory error occurred, and if so, to handle the error in a way that would warn the user, allow them to save work, and quit. Basically we would keep around a block of memory for this purpose, and free it up so it would be available for saving.

    Of course, if the user ran out of memory a second time, he /she was SOL.

  2. Locking main memory to prevent concurrent access.

    The mac had these things called "Handles". Basically they added an extra level of indirection to all memory access, so that they could recompact memory - move it around. Since you only stored the "Handle" - a pointer to a pointer to memory - and not a pointer itself, this was possible.

    However, you would need to lock memory down whenever accessing it, to prevent it from moving around, then release the lock afterwards.

    It was a royal pain in the butt :)

  3. Squaring up punch cards to optimize the chance of it making through the feeder without flying all over the place.

  4. line-oriented editors

    At my undergraduate school, we had to write a compiler - it was basically a 2 foot high printout of code, written from scratch, by a team of 3-4. To make things worse, we didn't use yacc, but a tool written by the instructor, who also worked on compilers for IBM.

    We had to do this entirely with "ed" as "vi" was deemed too computationally intensive to be used by everyone.

    I did get really good at regular expressions though, as the fastest way around a file was by search, and it was even faster to do a text match, bind, and substitution. Of course I was doing this pretty much blind, as I didn't even bother to see what I was working on. It was really a lot faster than using a mouse, cut and paste, etc. and luckily vi has the same capabilities.

    It's a lot harder to do it, though, without being able to see the screen :) You COULD print out lines of code, but you weren't really "operating" on it.


Isn't #2 basically what C#'s fixed blocks do? - Michael Myers
The idea is similar, however it is only required in c# within unmanaged code. Imagine programming in C# where ALL your code was unamanged and you had to do this for every memory access! - Larry Watanabe
+1 ed is the standard text editor! gnu.org/fun/jokes/ed.msg - Tuzo
30
[+7] [2010-01-13 00:15:25] FerretallicA

Palette-based graphic techniques like palette-cycling animation. I miss the 'old days' of graphics programming until I have to do bitmap rotations and alpha transparency at a remotely usable speed :)


(2) With a full 256 palette! I made my first ball-and-paddle game with palette rotation. Wish I can find that code :) - Wesley
31
[+7] [2010-06-25 04:42:45] Evan Plaice

Bootstrap loading a computer...

A lot of flight simulators still use the old Encore workstations in a Master/Slave configuration where you have to punch in a series of instructions in Hex on the keypad to load them.

Watching someone do this, or doing it myself (I'm only 25) is like stepping back in time into the computer room in Golden Eye where you're surrounded by blinking lights, tape backup drives, and Printronix printers.

Lets just say, when you do finally get it to load right (because it doesn't alway take on the first permutation) it's hard not to do an "I am invincible!".


32
[+6] [2010-01-12 03:47:22] Martin Beckett
  • Threading reel-reel tapes
  • Unjaming reel-reel tapes
  • Going through 1000s of reel-reel tapes rewinging them periodically.

Then later we progressed to:

  • Taking TK-50 tapes apart when they go wrong
  • Taking TK-50 drives apart when TK-50 tapes go wrong
  • Asking people if they have another copy of their work when TK-50 tapes go wrong.

(1) I assume that you look nostalgically, but not necessarily fondly, at those days. I can't imagine anyone eagerly wanting to return to the era of punch cards. - Robert Harvey
funny answer :) - phunehehe
33
[+6] [2010-01-13 07:34:46] David Johnstone

Butterflies.

alt text


34
[+5] [2010-01-12 04:18:54] Joshua

Paging though the disk device to recover your work after rm * .o


I still consider strings my go-to tool for disk recovery. - pavpanchekha
ext3undelete works, though I can never get it to recover just the files I want, so I have to wait while it 'recovers' the entire partition onto a smaller partition while I delete it all again! - James Morris
35
[+4] [2010-01-12 03:50:38] Eric J.

For a physics class I once had to enter the machine op codes using a hex keyboard.


(2) Damn. A hex keyboard. I've gotta get me one of those. My CompSci teacher had a large keyboard with just the buttons 0 and 1, and Shift/Ctrl/Alt/Meta. It'd buffer every eight presses and send that code to the computer. My teacher was rather adept at usin it. - pavpanchekha
(4) You guys had it easy, all I had was toggle switches. - ergosys
toggle switches? Luxury! - kristian
(16) You had toggle switches? When I were a lad we had to individually solder each bit to the breadboard. And to set it back to zero again we had to scrub it off wi' a bit of pumice. (etc. etc. Four Yorkshiremen ad nauseam) - itowlson
(4) Pumice? We had to set fundamental concepts just to get that. xkcd.com/378 - pavpanchekha
You had zeros AND ones - you were spoilt - Martin Beckett
(1) You had zeros? all i had were thoughts i couldnt put into code - RCIX
I once entered machine code with a text editor, back when text editors were text editors. (Only about 16 bytes, to reset the serial port after it had hanged.) - Tom Hawtin - tackline
About 2 weeks into the class, I realized the board we were given to work with had a serial port. And there was a cross compiler available for that CPU... but I did wear down my fingers a good deal in those first two weeks ;-) - Eric J.
(1) I once met a guy who actually coded on the C64 in this way. He knew the hex value for every opcode by heart and said it was faster to code that way... - Jonas Elfström
Sure, as long as the program he's writing doesn't require any abstraction. And branching is minimal. And he doesn't need functions :-) I know people that don't want to learn new stuff so claim the old stuff is faster, too. - Eric J.
36
[+4] [2010-01-12 07:00:45] Bill Martin

Woz did some really genius things in his designs. Creative ways to share memory. Also, the way he found out how to have the apple 2 display in color using a quasi-phase shifting technique. Building new hardware and writing drivers for it (graphics display, keyboard/driver).

He did some really cool stuff. Very inspirational!

Also, cool when guys repurpose wii remotes and other hardware.


How is repurposing a wii-mote a lost art? - Pete Kirkham
Yeah, ur right, it's not a lost art but it shows people doing similar things like woz but not necessarily for business purposes. It displays free thinking (like the earlier response to this question) - Bill Martin
37
[+4] [2010-01-13 09:07:19] George Polevoy

Handling the ray reverse event from a EGA monitor to make UI animations smooth.


Seems like most knowledge relating to EGA graphics is gone. :) - Parappa
And yet EGA graphics are still the future of TI calculators... :) - m_oLogin
38
[+3] [2010-01-12 14:27:27] Jon Ward

Word alignment and Endian. Two bugbears that I repeatedly watch people come a cropper over while starting out in embdded system programming (and then have to help out).


Agreed! I have seen this come up a lot outside of embedded systems programming as well. - bn.
Ack. Almost bit me recently when converting a (terrible) legacy license code builder from Delphi to Java. - Jules
39
[+3] [2010-01-13 08:56:17] Jonathan

We used to debug via different frequency Beeps from the PC speaker. So the windows service would play a variety of tunes depending upon what it was doing (seriously, and not my idea). It even made it into a rather large mining company.

Sidenote: The funny thing is, when we eventually took it out, the customer complained and we had to reinstate the functionality!!!


40
[+3] [2010-01-13 16:32:59] Fred

Whistling into the phone to check whether mainframe was "up" before connecting phone to acoustic coupler.

Buying a terminal emulator package only to read in manual that I had to write a Z80 device driver before the program would work (and then writing it).

The important difference between byte pointers and word pointers on Data General machines.

Debugging IBM Assembler code from an ABEND dump.


41
[+3] [2010-01-16 12:08:22] PurplePilot

There are none.

The golden age of computing, and hence the lost and arcane arts was the brief period between Babbage getting the Difference Engine on-line and Ada Lovelace saying to him, "Hey Charley we can probably use this win on the horses!".

Since then it has either been downhill, or uphill or pretty well flat depending on your point of view and how rose tinted your spectacles are..


42
[+3] [2010-05-15 19:16:41] Daniel

Writing an Intro for the C64, where each cpu tick was aligned to 8 pixels drawn on the screen, and every instruction in the cpu tock 1-3 cpu ticks. You wrote an interrupt for the screen hitting a given horinzontal line, and the read the current horizontal position of the cathode ray in the monitor (which could be on one of three position, depending on the length of the currently executed intruction in the cpu while the interrupt fired). The you jumped into a list of NOPs (one instruction each), depending on the cathode ray location to pixel align the excution flow of your program to the redraw of the screen. Then you switched background colors on each screen line to implement bouncing bars for your scrolltext.

Great great times.


43
[+2] [2010-01-12 07:23:33] RCIX

The ability to take a program that was approx. 40k assembly instructions and shrink it by half to fit on a smaller computer (I can't remember the name of the person that did this but it was someone who worked on the macintosh i think).


44
[+2] [2010-01-13 08:33:26] orokusaki

Typing over 50 pages of code from dot matrix paper into a Tandy 1000 to reprogram it completely after it was corrupted... Only to find that it didn't fix anything.


45
[+2] [2010-01-15 16:06:11] Conor

From what I've seen:

  • reading the manual
  • deep suspicion of IDEs, wizards, ...
  • integration testing
  • patience
  • treating design, coding, compiling and testing as separate steps
  • code reviews
  • thinking beyond the current version of a product

46
[+2] [2010-01-17 06:05:15] Loren Pechtel

Embedding assembly programs inside Basic programs on the TRS-80. It had to be done very carefully because you never knew where it would be executing--relative jumps only. Furthermore there were a few values that would break the structure and likely take out your whole program. Writing code without being allowed to use a zero was a pain.

Getting the teacher to leave alone any line with embedded stuff was even more of a pain. On the Mod Is they displayed gibberish and couldn't be edited by the normal editor. In class we only embedded graphics but she was determined to figure out how it worked and couldn't get it through her head that making no changes in the editor would still trash the line.


47
[+2] [2010-01-25 11:58:42] grigy

Graphics programming with BGI

int gdriver = DETECT, gmode, errorcode;
initgraph(&gdriver, &gmode, "");
errorcode = graphresult();
if (errorcode == grOk) {
...
}

48
[+2] [2010-06-25 04:47:03] James Anderson

Edititng punch cards with sticky tape!

Impelmenting simple "delete" and "insert" edits on a card copy machine by stopping the appropriate card moving with your finger.


49
[+1] [2010-01-13 05:30:08] Kane

Programming in AMOS, that's what got me hooked on programming.


50
[+1] [2010-01-13 13:59:29] AAT

Debugging DSP software with only a logic analyser to watch the program address & data bus, then manually disassembling the hex into TMS320 assembler to work out where we'd got to. You had to remember how deep the instruction queue was so that you knew how many instructions to ignore when you hit a branch.

Plus the beautiful old TMS320s had a pin called "XF" (External Flag) and you would use the SXF and RXF instructions to flip it to a 1 or a 0, and then stick a logic probe on the pin to see what was happening -- a 1-bit debugging interface!

Erasing and reprogramming UV EPROMS.


51
[+1] [2010-01-13 14:10:16] George Polevoy

Using a DSL framework to generate a generator-DSL, to code a generator which generates DSLs for the domain model.


+1, Yai, did this! - Daniel
52
[+1] [2010-01-16 15:01:53] LuI

Using TSRs and switching between Operating systems within a running program! I had to acquire data on an old CAMAC system running AMCA-80 on a Z-80. There have been no data storage devices for that system. The machine could run CP/M as well and for that we had a single floppy drive. We managed to switch from AMCA-80 to CP/M in order to store the acquired data on the floppy and than jump back for the next run. This was the time when I new every single byte by name ;-) and used tokens and short variable names to refer to string fragments in order to conserve RAM. Those where the times...


53
[+1] [2010-07-25 07:20:04] Paul Keister

Compiling from unsaved code in the editor's buffer - Turbo Pascal had this feature. If the code ran, you saved the file. Otherwise your system crashed; you would then have to reboot and start over.


54
[+1] [2011-02-02 22:55:57] FerretallicA

Learning through sleepless nights and trial and error instead of through spoon-feeding tutorials and screencasts.


(2) You don't learn by being spoon fed anyway. Trial and error is an essential part of any learning process, and is not a "lost art" :) - Will Vousden
(1) Given how many people I see give up on entire technologies if something doesn't work precisely the way they saw it in "that" video, I'm inclined to disagree :) - FerretallicA
55
[0] [2010-01-12 11:58:40] Square Rig Master
  1. Algorithm
  2. Edlin

56
[0] [2010-01-19 21:55:04] David Zimmerman

How to program keypunch drums.

Getting Domino's to deliver to the keypunch line (the line of people waiting for their turn at a keypunch)

What to do with buckets of chafe (the holes punched out of cards).


57
[0] [2010-01-25 22:33:30] Parappa

Mode 0Dh EGA graphics [1] programming for DOS. Among the plethora of examples out there covering Mode 13h VGA (which, I freely admit, kicks ass), good luck finding a working example(*) that shows how to plot pixels in EGA.

Now you might be thinking, "yeah, whatever, EGA deserves to die." Fair enough, but perhaps you haven't played Quest for Glory [2], one of the greatest DOS games ever made. Or what about King's Quest IV [3], released in 1988, a cutting edge game that pushed the limits of home user PC hardware at the time. This stuff is a huge part of my heritage as a programmer.

(*) P.S. If you know of such an example, please help [4]. :)

[1] http://en.wikipedia.org/wiki/Enhanced_Graphics_Adapter
[2] http://en.wikipedia.org/wiki/Quest_for_Glory
[3] http://en.wikipedia.org/wiki/King%27s_Quest_IV
[4] http://stackoverflow.com/questions/2085150/dos-ega-graphics-programming-in-mode-0dh

I added some useful info for you there... ;) - t0mm13b
That is fantastic! Thanks. - Parappa
58
[0] [2010-01-25 23:23:19] t0mm13b

Mine would have to be writing a TSR to trap the Ctrl+Alt+Del key..I still have it lying around somewhere...

The other is writing a Screen Design Aid in Borland C, this was inspired from the computer diploma course, that had the AS/400 mainframe system, a program called SDA on the AS/400, in which you could draw a data screen for inputs, interacting with COBOL and RPG IV, in college days (1996)...

It was that inspired me to write a program to write directly to the Video memory (remember 0xb800:0000 for colour and 0xb000:0000 for monochrome vga?) for fast writing/reading of the memory and dumping it to disk, then wrote a small library to read the dumped data back out into video memory, this includes the ascii lines and corners..

Remember those flashy boxes generated by entering ALT+240-250 somewhere...still have it on my netbook as I type this...cool! :D And creating a file on the DOS command line that was impossible to delete because there was a hidden ALT+254 character which was an ASCII blank and deleting it would fail. :)

edlin FILE[ALT+254].TXT
....
DEL FILE.TXT
Invalid command or filename.

Edlin was some editor, in fact I did grow to like it...

Happy days, Best regards, Tom.


59
[0] [2010-02-01 17:08:32] Michael Easter

In my experience, strong kung-fu at the command line is a lost art among many IDE-oriented developers. I often help people with problems that are simple if one knows (a) Bash (b) the Unix find command and especially (c) regular expressions.


60
[0] [2010-12-24 06:42:25] Zerba

Concerns for PERFORMANCES, SECURITY, FOOTPRINT, CLARRITY as important features.

These are just board-effects of a clean design.

Without this "lost art", this guy would not be able to piss off so many billionaires:

http://dearetc.net/

A brilliant demonstration that "lost arts" are still relevant.


61
[0] [2010-12-24 07:00:04] MikeAinOz

When I was a computer operator I altered a program while it was running to change the 'DISTY' instruction that was spewing out messages on the teletype to a 'NOOP', finished early and went to the pub. The other operator bought the beer.


62
[0] [2010-12-24 09:26:42] k3b

Programming without having an online-api-help available but required reading a printed api-dokumentation.


63
[0] [2011-12-04 01:39:28] Ron
  1. Using an oscilloscope to reverse engineer communication protocols no one ever documented.

  2. Manual quicksort - Dropping a stack of punch cards (say, 200 of them) and manually quicksorting them as a result.


64