Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

Example of a simple program

Name: Anonymous 2010-05-29 16:54

new to programming here. i am reading SICP right now and have seen a couple of MIT videos on python but i was just curious if anyone could give me an example of how a program is written. as in the actual process beginning to end. it kinda boggles me that its all math and simple equation but i would love to understand it. thank you.

Name: Anonymous 2010-05-29 17:10

>>1
protip: nobody ever ended his own program.

Name: Anonymous 2010-05-29 17:13

*gulp* so you are saying that its so complex and i could never write an app or design a video game engine by myself?

Name: Anonymous 2010-05-29 17:14

First, you decide what you want the program to do.
Second, you simplify the program's function that you decided upon into elementary functions that can add up to produce the ultimate result.
Third, you decide what language you will be using.  This is occasionally an unnecessary decision.
Fourth, you deduce what components of the language will be useful for any given function.
Fifth, you arrange and manipulate those components such that they produce the output you desire.  If it does not or proves unsatisfactory, return to four.  You add a satisfactory result to the alphabet of your project and start working on the next elementary function.
Sixth, you group elementary functions in a way that every smaller success produces the success that you imagined in the first step.
Seventh, keep reading SICP.

Name: Anonymous 2010-05-29 17:26

>>4
EXPERT BOTTOM-UP DESIGN

Name: EXPERT DESCRIPTIVIST 2010-05-29 17:52

>>1
PROPER CAPITALISATION DETECTED

Name: Anonymous 2010-05-29 19:48

First you write some shit.  Then you write some more shit.  It never ends.

Name: Anonymous 2010-05-29 23:50

>>5
That's not EXPERT. He forgot the FLOW CHARTS.

Name: Anonymous 2010-05-30 0:24

You know that little tank game you programmed? If you add in another element, say enemies, and you've made asteroids. Add in scrolling and you have a schmup. You can program almost anything like this. Hacking on elements in succession to one another is how almost everyone learned how to program.

Sussman did not learn this way, Sussman stuck his dick into a computer and made it his bitch(this process is also known as SICP).

Name: Anonymous 2010-05-30 5:29

>>9
Stuck Into Computer: Penis ?

Name: Anonymous 2010-05-30 7:00

>>10
Shit! I can program!

Name: Anonymous 2010-05-30 22:33

>>11
Why do I suddenly have the conviction that /prog/ is brimming with expert mechanical engineers?

Name: Anonymous 2010-05-30 22:40

>>11
Shit! I can't program!

Name: Anonymous 2010-05-31 0:13

>>1
Keep watching the 6.001 videos and work through the assignments. you can find the solutions by searching google. In lecture 8 or so you will learn how to analyze algorithms using Big Oh notation.

Name: Anonymous 2010-05-31 5:26

>>14
ITS SHOW TIME!

Name: Anonymous 2010-12-23 6:00

Name: Anonymous 2011-02-04 19:19

Don't change these.
Name: Email:
Entire Thread Thread List