Re: Increasing efficiency in C

From: jacob navia (jacob_at_jacob.remcomp.fr)
Date: 03/05/04


Date: Fri, 5 Mar 2004 20:10:06 +0100


"Mike Wahler" <mkwahler@mkwahler.net> a écrit dans le message de
news:9G32c.22867$aT1.20587@newsread1.news.pas.earthlink.net...
>

> Back [almost?] to topic: If I couldn't control my memory handling
> and pointers, I wouldn't use C.

You keep control of everything. But the system should
have an automatic.

When you turn the wheel there is a point where the
machine refuses to turn more. It just refuses to
obey to a nonsense command. It is build like that.

When you attempt to write beyond a pointer limits
the system doesn't do it.

You still have an error, and you can fire an exception
or just return false, and leave it up to the calling
routine.

You keep control of the error since you are the
only one that can fix it. The machine will not fix
it.

> My first programming was with
> 'plug boards', I'm not sure if it was 'safe' or 'dangerous'.
> I never got an electric shock, and didn't destroy any hardware,
> anyway. :-)

You should keep an eye into nostalgy.

Yes, those were the times.

I am too old to look back. I want to look forward.

If we program remembering the past we are doomed.

We have no future.

Remember the future. Today's fast machines provide
power for a new and widespread way of developing,
in scales much bigger than before.

Today's priorities aren't those of years ago.

A good antidote against nostalgy is realizing that
those circuit boards are gone for good.

There are much more powerful circuit boards today.



Relevant Pages

  • Re: parallel structure(s) used in sorting CListCtrl?
    ... As a typical example of the bad programming, it uses an LPTSTR to hold pointers to strings ... be kept in the LPARAM and the pointers don't need to exist anywhere else. ... the LPARAM field of each element of the list control, and use that for the sorting. ...
    (microsoft.public.vc.mfc)
  • Re: Natural Selection was: Re: Railways - do we need them?
    ... across 3rd rail gaps with the DE generator set. ... part of the control system. ... The output from the generator side was used to either oppose or add to ... reference for this) the circuit boards were a particular weakness. ...
    (uk.railway)
  • Re: C question
    ... > and give me control back without waiting for ENTER to be pressed. ... BIOS memory. ... if you like) but the BIOS has a keyboard buffer and two ... control of the buffer and buffer pointers with C pointers, ...
    (RedHat)
  • Re: Read items from a ListView in another application.
    ... all of the items from the list, using some Windows API? ... You need to send LVM_GETITEM message to the control once for ... actual buffer where the text should be placed) - and these pointers must ... So, you need some way to allocate, read and write memory in the remote ...
    (microsoft.public.vc.language)
  • Re: Increasing efficiency in C
    ... "jacob navia" wrote: ... >> and pointers, I wouldn't use C. ... > You keep control of everything. ... Jeez... ...
    (comp.lang.c)