Connecting Tech Pros Worldwide Forums | Help | Site Map

The most important things to write a program

TSB
Guest
 
Posts: n/a
#1: Oct 30 '07
Hi everyone,

I think algorithm is very important for every computer language. But I
don't know another important things.

I am newbie to computer languages, so anyone can tell me what the most
important things are to write a program?

Thanks,
Tsetsbold


santosh
Guest
 
Posts: n/a
#2: Oct 30 '07

re: The most important things to write a program


TSB wrote:
Quote:
Hi everyone,
>
I think algorithm is very important for every computer language. But I
don't know another important things.
>
I am newbie to computer languages, so anyone can tell me what the most
important things are to write a program?
Brain, fingers, pencil, paper, computer, editor, compiler etc.

Guy Macon
Guest
 
Posts: n/a
#3: Oct 30 '07

re: The most important things to write a program





TSB wrote:
Quote:
>
>Hi everyone,
>
>I think algorithm is very important for every computer language. But I
>don't know another important things.
>
>I am newbie to computer languages, so anyone can tell me what the most
>important things are to write a program?
GOTOs? (...ducks as people throw things...)

Seriously though, what is your goal? Someone like me who packs
a tiny little program into a microcontroller that costs a dime
and then has a couple of million toys made that run it has quite
different needs from someone who is developing the Linux Kernel,
and he has quite different needs from someone who is writing a
game for an Xbox/PS2/Wii or someone who is working on search
algorithms for Google. What kinds of programs are you interesed
in creating?

--
Guy Macon
<http://www.guymacon.com/>

TSB
Guest
 
Posts: n/a
#4: Oct 30 '07

re: The most important things to write a program


On Oct 30, 12:39 pm, Guy Macon <http://www.guymacon.com/wrote:
Quote:
TSB wrote:
>
Quote:
Hi everyone,
>
Quote:
I think algorithm is very important for every computer language. But I
don't know another important things.
>
Quote:
I am newbie to computer languages, so anyone can tell me what the most
important things are to write a program?
>
GOTOs? (...ducks as people throw things...)
>
Seriously though, what is your goal? Someone like me who packs
a tiny little program into a microcontroller that costs a dime
and then has a couple of million toys made that run it has quite
different needs from someone who is developing the Linux Kernel,
and he has quite different needs from someone who is writing a
game for an Xbox/PS2/Wii or someone who is working on search
algorithms for Google. What kinds of programs are you interesed
in creating?
>
--
Guy Macon
<http://www.guymacon.com/>
I am very interested in Open Source and like using UNIX. So I guess in
future I will write some Open Source program,

Richard Heathfield
Guest
 
Posts: n/a
#5: Oct 30 '07

re: The most important things to write a program


TSB said:
Quote:
Hi everyone,
>
I think algorithm is very important for every computer language. But I
don't know another important things.
>
I am newbie to computer languages, so anyone can tell me what the most
important things are to write a program?
0) In C at least, array indices start with 0, because an index is not a
count but an offset. Failure to understand this is the cause of many bugs
in newbie programs.

1) Know what you're trying to achieve. Write it down. Programming then
becomes the iterative process of getting your program's actual behaviour
to match the behaviour that you've written down.

2) Anything that can go wrong *will* go wrong. Make sure it can't, or at
least that you handle it when it does.

3) All code should do something good or stop something bad happening. If
the code is neither a positive benefit or at least a safeguard, rip it
out.

4) Everything Has To Be Somewhere. Manage your storage properly.

5) Know your language. Don't assume that local assumptions work everywhere.
If your program will have to work on more than one machine (and this
eventually happens to most useful programs), make sure you understand the
difference between "the C that works on THIS computer" and "the C that
works on ALL computers".

6) Never put more than seven items on any list.

--
Richard Heathfield <http://www.cpax.org.uk>
Email: -http://www. +rjh@
Google users: <http://www.cpax.org.uk/prg/writings/googly.php>
"Usenet is a strange place" - dmr 29 July 1999
Ben Pfaff
Guest
 
Posts: n/a
#6: Oct 30 '07

re: The most important things to write a program


TSB <ntsetsbold@gmail.comwrites:
Quote:
On Oct 30, 12:39 pm, Guy Macon <http://www.guymacon.com/wrote:
Quote:
>What kinds of programs are you interesed in creating?
>
I am very interested in Open Source and like using UNIX. So I guess in
future I will write some Open Source program,
That narrows the possibilities very little. Linux and other open
source software runs on wristwatches and supercomputers and
everything in between.
--
"Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it."
--Brian Kernighan
Charlie Gordon
Guest
 
Posts: n/a
#7: Oct 30 '07

re: The most important things to write a program


"Ben Pfaff" <blp@cs.stanford.edua écrit dans le message de news:
871wbcae02.fsf@blp.benpfaff.org...
Quote:
TSB <ntsetsbold@gmail.comwrites:
Quote:
>On Oct 30, 12:39 pm, Guy Macon <http://www.guymacon.com/wrote:
Quote:
>>What kinds of programs are you interesed in creating?
>>
>I am very interested in Open Source and like using UNIX. So I guess in
>future I will write some Open Source program,
>
That narrows the possibilities very little. Linux and other open
source software runs on wristwatches and supercomputers and
everything in between.
Hands? fingers? cans of jolt cola and pizza slices?

--
Chqrlie.


CBFalconer
Guest
 
Posts: n/a
#8: Oct 30 '07

re: The most important things to write a program


Richard Heathfield wrote:
Quote:
TSB said:
>
.... snip ...
Quote:
>
Quote:
>I am newbie to computer languages, so anyone can tell me what
>the most important things are to write a program?
>
.... snip ...
Quote:
>
6) Never put more than seven items on any list.
This includes functions, but does not include lists :-)

(i.e. a list is one thing)

--
Chuck F (cbfalconer at maineline dot net)
Available for consulting/temporary embedded and systems.
<http://cbfalconer.home.att.net>



--
Posted via a free Usenet account from http://www.teranews.com

Charlie Gordon
Guest
 
Posts: n/a
#9: Oct 31 '07

re: The most important things to write a program


"santosh" <santosh.k83@gmail.coma écrit dans le message de news:
fg65q9$k07$1@aioe.org...
Quote:
TSB wrote:
>
Quote:
>Hi everyone,
>>
>I think algorithm is very important for every computer language. But I
>don't know another important things.
>>
>I am newbie to computer languages, so anyone can tell me what the most
>important things are to write a program?
>
Brain, fingers, pencil, paper, computer, editor, compiler etc.
Lots of time, dedication, obstination, fascination, passion!

--
Chqrlie


TSB
Guest
 
Posts: n/a
#10: Oct 31 '07

re: The most important things to write a program


On Oct 31, 7:09 am, "Charlie Gordon" <n...@chqrlie.orgwrote:
Quote:
"santosh" <santosh....@gmail.coma écrit dans le message de news:
fg65q9$k0...@aioe.org...
>
Quote:
TSB wrote:
>
Quote:
Quote:
Hi everyone,
>
Quote:
Quote:
I think algorithm is very important for every computer language. But I
don't know another important things.
>
Quote:
Quote:
I am newbie to computer languages, so anyone can tell me what the most
important things are to write a program?
>
Quote:
Brain, fingers, pencil, paper, computer, editor, compiler etc.
>
Lots of time, dedication, obstination, fascination, passion!
>
--
Chqrlie
Thanks everyone,

Tsetsbold

Keith Willis
Guest
 
Posts: n/a
#11: Oct 31 '07

re: The most important things to write a program


On Wed, 31 Oct 2007 06:38:34 -0700, John Bode <john_bode@my-deja.com>
wrote:
Quote:
>1. Know exactly what the program is supposed to accomplish
>(requirements analysis).
<snip et cetera>

[Article saved to disk as canonical answer :-)]
--
PGP key ID 0xEB7180EC
Tor Rustad
Guest
 
Posts: n/a
#12: Oct 31 '07

re: The most important things to write a program


TSB wrote:
Quote:
I am newbie to computer languages, so anyone can tell me what the most
important things are to write a program?
deliver on time, with promised functionality, quality and price.

--
Tor <bwzcab@wvtqvm.vw | tr i-za-h a-z>
Richard Heathfield
Guest
 
Posts: n/a
#13: Oct 31 '07

re: The most important things to write a program


Tor Rustad said:
Quote:
TSB wrote:
>
Quote:
>I am newbie to computer languages, so anyone can tell me what the most
>important things are to write a program?
>
deliver on time, with promised functionality, quality and price.
On time; all the features; no bugs; within budget: pick any two.

--
Richard Heathfield <http://www.cpax.org.uk>
Email: -http://www. +rjh@
Google users: <http://www.cpax.org.uk/prg/writings/googly.php>
"Usenet is a strange place" - dmr 29 July 1999
Flash Gordon
Guest
 
Posts: n/a
#14: Oct 31 '07

re: The most important things to write a program


Richard Heathfield wrote, On 31/10/07 19:48:
Quote:
Tor Rustad said:
>
Quote:
>TSB wrote:
>>
Quote:
>>I am newbie to computer languages, so anyone can tell me what the most
>>important things are to write a program?
>deliver on time, with promised functionality, quality and price.
>
On time; all the features; no bugs; within budget: pick any two.
Since "no bugs" is as near to impossible as makes no odds for a complex
piece of SW that only leaves three to select from.
--
Flash Gordon
Closed Thread