Re: [CodeGallery] MFC MD5 Calculator




"Joseph M. Newcomer" <newcomer@xxxxxxxxxxxx> ha scritto nel messaggio news:bcvtd4pc35fb44eeftem4u8ivsenhp6qcl@xxxxxxxxxx

[...]
I programmed in this tenth-rate piece of crap for about five years, hating every minute of
it. It ranks among the worst languages ever designed. It wasn't until the idea of an
ANSI standard (and later an ISO standard) began to emerge that the language design
community got enough power to replace this piece of crap with real function prototypes
that had compile-time type-checking.

Thanks for the historical perspective, Joe.

Now it is very clear to me the origin of Hungarian Notation.

I'm glad that I started learning C when there was already compile-time prototype checkings, without "unsane" things like the "#define void int" :)


In those days, struct fields were global names, so if you had

struct Point2 { int x; int y; };
you could not have another
struct Point3 { int z; int y; int x;}

because x was a global value which was an offset of 0 into a structure. So you could
write

int A;
A.y = 2;

....Coding "horror" !


Giovanni

.



Relevant Pages

  • Re: Developing/compiling software
    ... of C on the slow Dec Writer keyboards - K&R were more concerned about avoiding keystrokes than on making a good structured modular programming language. ... If all you have is a int, everything looks like a hammer etc, or have I mixed that up a bit. ... When C was designed, there were plenty of other languages that were far safer, better structured, and in many ways more powerful - Algol and Pascal being the obvious examples. ... It's fair enough to say that C's limitations and design faults are because K&R were writing it for a specific use, and it worked fine for that job. ...
    (comp.arch.embedded)
  • Re: More CChildFrame questions
    ... DisplayInfo info; ... Note that if you "know UML" then why didn't UML tell you that your design was bad? ...
    (microsoft.public.vc.mfc)
  • Re: exe error, works on some pcs but doesnt on others
    ... Make sure you have a .msi file to install it; create this using the install project ... the "wizard" is crippled (another piece of irresponsible design) ... int GetScreeny ... GdiplusStartupInput gdiplusStartupInput; ...
    (microsoft.public.vc.mfc)
  • Re: Test Driven Development Sample
    ... "Isaac Gouy" wrote in message ... > scores for a possibly incomplete sequence of valid throws - update the ... "how" aspect of the design. ... int FrameNum; ...
    (comp.object)
  • Re: Inheritance
    ... Yes I think you are right, it is a bad design. ... int wheels; ... class glider: public monoplane { ... Given this hierarchy, I can probably come up with actual planes that don't fit it. ...
    (microsoft.public.vc.mfc)