Giter Club home page Giter Club logo

hanoi's Introduction

Primitive Tower's of Hanoi

I stopped by the living computer museum a couple weekends ago and found some amazing old unixy systems that are older than I am. I want to try to run some non-trivial program on them so I figured I'd code it up first.

I'm going to try a program that solves the towers of hanoi problem in a primitive version of C.

Hardware

While writing this I figured it would be helpful to actually emulate some old machines to see how old C actually runs on old hardware. I investigated some hardware emulators

Software

Configuring and developing the software was much different than it is today.

Lessons

After using the command line without command history I started to make my filenames very short. Now I know where cp, mv, du, etc. came from.

Having to scope all variables at the top of the function means you may have to reuse the variables for different purposes. You might as well call them i, j, k. It makes sense that early versions of K+R C manuals consistently used these letters as variable names.

I am so used to compiler help: typing, mismatched arguments, error messages that mean something, correct line numbers, etc.

More than once while editing hit q expecting changes to be saved before exiting. They were not. There was no warning.

Source control: I can't believe progress was once made without this tool.

All of these issues make me very gun shy about any changes to the system. I started composing all of my actions before actually entering any of them. I felt like I was chisleling a marble statue. Mistakes are costly. This was a bad thing but it wasn't a 100% bad thing. I think keeping more of this think before doing attitude in modern environments would be a good thing.

hanoi's People

Contributors

sizezero avatar

Stargazers

Tony Hsieh avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.