🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.privacy.anon-server
Article #47088

Re: Free reliable wordcount utility available (final version)

#47088
From: Thomas J. Boschloo
Date: Tue, 26 Nov 2002 13:35
429 lines
23855 bytes
Richard Heathfield wrote:
> 
> "Thomas J. Boschloo" wrote:
> >
> > Richard Heathfield wrote:
> > >
> > > "Thomas J. Boschloo" wrote:
> > > >
> <snip>
> > > >
> > > > It is an array the size of MAX_UCHAR at least depending on the compiler
> > > > program.
> > >
> > > You mean UCHAR_MAX, I think.
> >
> > Wow, you had me there again. You really know your stuff. I am so
> > impressed.
> 
> I'm not trying to impress you. I'm trying to educate you.

Wow, I am so educated, you really know your stuff. I am so glad to have
you as a teacher, if I stick with you I will learn everything I ever
wanted to know about programming!

<snip rest, I am bored with this troll, it is not even a good troll>

Thomas

> > Also I am not aware of any
> > 'isupper()' BIOS functions in those BIOSSES,
> 
> I didn't claim that isupper() is a BIOS function. Please learn to read
> for comprehension.
> 
> <snip>

Sigh, well, maybe you need to learn the implications of the things you
take for granted. You can't pull the trigger and be oblivious of the
concequeses. Use a compiler and you also have to know what will happen
next. If you don't know the implications of your actions you are a very
dangerous person to anyone who believes in you.

> > I have
> > learned not to include libraries I don't need or can code for myself in
> > a better and more implementation-independent way.
> 
> You don't include libraries; you link them. You include headers.

Again, you pull the trigger, the bullet follows your preset trajectory.
You can't separate the two without going nutters and being in need of a
soft cushioned cel..

> > I don't want my code
> > to produce different results with each isalpha implementation of every
> > different c-compiler like you seem to do.
> 
> You seem to misunderstand. It is because I want the /same/ results on
> each platform that I use standard libraries whenever they are
> appropriate (as in this case).

The only thing that will be the same with the purpose my program was
written for is that fact that it will read a newsfile in binary mode
like the comments in my code say. If you assume your newsfeed provider
knows about isalpha and translates every post to the character set you
are using on the computer you read this newsfeed on. Fine with me. But
don't bother me with your delusions and waste both our time when we
could be doing better things. You have stopped being a challenge for me
long ago. I could trash you any time I wanted to but I am not sure you
would notice.

> > In fact, _I don't care_ about
> > the ctype library and I don't think I have ever used it in my entire
> > life. I have learned to put more faith in my own code and in the code of
> > other people. They just mess up too often and that costs security IMHO.
> 
> If I were you, I would not be too quick to place my faith in the
> portable programming skills of a person who thought PCs used EBCDIC.

You are limited with the literature you have. EBCDIC was the only hint
to upper-latin1-ascii I could find in Tannenbaums book about computer
networks (it deal with newsgroups also). I can quote the passage if you
want me to. Maybe Tannenbaum misunderstood the PC ascii set also, but
then again, he never was a big fan of the PC industry to begin with
judging for the classes he gave me. (he once complained about Defrag and
how long it took on his son's computer, it is true that even Scandisk is
a total piece of crap that was written by a programmer that exeeds even
your stupidity in programming).

> > The security and reliability of a program is priceless in my opinion.
> > You seem to have the opinion that you should include every standart
> > library there is in order to gain 'portability'?
> 
> I never include libraries. I link them. I include headers. I try never
> to include unnecessary headers. Your interpretation of my opinion is
> incorrect.

You probably also don't format your harddrive, you just use the keyboard
to perform command shell commands. Am I right? Is that how your brain
works? I am sorry that mine works in a different way and that this leads
to these boring discussions that you don't even seem to want to take
off-group.

> > > > That is why will are still on speaking terms so to
> > > > speak. I either flame an attacker into oblivion or I try to stay friends
> > > > with them. Your fate is still undecided with me because I can't judge
> > > > your skills yet from what you have posted.
> > >
> > > That has a lot to do with the fact that this is a crypto newsgroup, not
> > > a C newsgroup. At the risk of being accused of blowing my own trumpet,
> > > however, I refer you to:
> > >
> > > http://users.powernet.co.uk/eton/unleashed/code/ch07/ch07.zip
> > > http://users.powernet.co.uk/eton/unleashed/code/ch08/ch08.zip
> > > http://users.powernet.co.uk/eton/unleashed/code/ch11/ch11.zip
> > > http://users.powernet.co.uk/eton/unleashed/code/ch20/ch20.zip
> > >
> > > which are the source code snippets from four of the chapters I
> > > contributed to "C Unleashed", which was published by Sams in August
> > > 2000. (Some of the files contain only a code fragment, but there are
> > > enough complete programs there to give you some idea of my coding
> > > style.)
> >
> > Oh, I am so impressed.
> 
> It was not my intention to impress you. It was my intention to give you
> the opportunity to examine my coding style, since you appeared to want
> that opportunity.

Yeah, that was a good piece of your quote. You wrote a book about ANSI-C
didn't you?

Thanks but I learned all I needed about your programming style when you
first made contact with me in sci.crypt. Reading actual code from you
only made your case worse for you. I feel no need to examine any of the
code you got pubished by your publisher and co-writters (I kind of feel
sorry for them, they can't help you are such a moron, now can they?).
For instance, decide if you are going to use a while, do..while or for
loop before you start typing. It will safe you some if statements and
make your code more readable. If a construct like

if(condition)
{
	do
	{
		[..]
	}
	while(condition)
}

was in any way useful, more people would be using it. I leave it up to
you to defend your own code here, or maybe you have something better
from your book that I can flame to bits? Try me if you still think you
have the skills it takes to beat me. To me our discussion is growing
very old. You still haven't learned me anything about coding C or on how
to improve the program I came to get your opinion on
<home.hccnet.nl/t.j.boschloo/wordcnt.c> (very old version by now, but
still very good IMO, contact me for the most currect version which I
feel is very nearly finished by now, I could have finished it weeks ago
if I hadn't run into you Richard!!).

> > A book from Sams, don't they publish beginners
> > books for wanna-be professionals like yourself?
> 
> They publish many books, some for beginners and some not. "C Unleashed"
> is not for beginners, so I suppose I should never have even mentioned it
> to you.

You probably shouldn't have. I have a book from SAMS which looked good
when I bought it, but I stopped reading it after only a few chapters. It
was about computer networks and it was full of even basic mistakes. I
don't think I will ever buy a book from that 24-hour publisher again,
they can thank you for this accomplished feat. You did your publisher
much harm IMHO. I cross-posted to the hole you originally crawled out
of, maybe you have some admirers there that can help you out of the mess
you have gotten yourself into and can't seem to find your way out of.
Sorry to all the other groups cross-posted to, I hope this will be over
soon and none of you will have to suffer this guy anymore.

> > I would have been more
> > impressed if you got any code published in Dr. Dobbs or something.
> 
> I have never tried to get any code published in Dr Dobbs.

That is probably best for you until you learn a bit more about
programming than that you do now. Dr. Dobbs is probably the best
magazine for programmers there is out there, though I have been hearing
things like it going downhill since I was a subscriber. I am more of a
gamer so I switched to Game Developer which was a bit too hard for me
since I didn't know much about C++ and Windows libraries. The ads and
background stories where nice though, maybe I will resubscribe again
when I feel ready for it.

> > Or
> > Game Developer by the same company since that stuff really wend over my
> > head at times. You just still seem like a stupid with an inflated
> > attitude to me like you did from the first post I saw from you about
> > MAXINT not being ANSI-C. Well, DUH!! That is why we have compilers. To
> > pick out these kind of portability mistakes.
> 
> <shrug> Either you care about your program's portability or you don't.
> If you do, then why not use a compiler that /does/ pick out these kind
> of portability mistakes, or at least get hold of a lint program? And if
> you /don't/ care about portability, why are we having this conversation?

I think the post that started our conversation was implied by you to be
written by a nut. I guess google will have the answers if you can't
remember you saying this anymore. You should never insult a person with
superiour coding skills to yourself. You might just end up having to
proof them and I don't think many coders will be impressed by your
skills anymore after reading this full thread. Glad you stuck around
this long though, most people I flame know there is no point in
continuing to attack me after I posted using a subject like 'The demise
of Richard Heathfield' or something like that. I wonder why you still
believe you would be able to teach me anything about programming knowing
I was among the best of my classes during three years of university and
one year of electronics in the topic of programming. Also notice that I
told you C was my favorite language still. Why don't YOU go spend some
time in alt.flame. Don't you think you have been burned enough back here
in sci.crypt? I don't think you have many friends that matter back here
anymore. I think Benjamin Goldberg also flamed you very skillfully and
still replied to me after all the pointing out to the group of how lame
I was by you. Doesn't tell that to you that you might be losing more
than your own ego back here in sci.crypt? Well get ready for this, you
just lost all respect you build up in comp.lang.c during all those years
you spend building up your status there. Know that I don't enjoy tearing
up people like you but I feel like you did leave me no choice. This
thread is not about programming. It is about you. And the you that used
to exist is nearly gone now. You just don't know it yet and that is a
very sad thing to see for me. I have given you all the hints you needed
to notice who you were dealing with by using things to decribe myself as
an elite-coder. You probably still think I am a nut like you did when
you first (didn't) read the word counting program I posted here. That is
just to bad for you. You are snipped, you no longer exist to quote some
of Jello Biafra's lyrics.

> > Now you are making errors
> > by not checking your buffered inputs,
> 
> A misunderstanding of C++ on your part does not constitute a security
> failure on mine.

Never assume, always know. It is true that the coders of the string
class are better coders that you will ever be. But that doesn't mean
that there are no coders that even exceed their skills. Here is an
example, I was pointed to a compiler called LCC by a friend. I
discovered that it just moves the filepointed up when writting the
compiled binary, probably for speed, but failing to notice how this
could publish sensitive materials on the coders harddrive like parts of
unwiped sensitive documents or password files. You might be like that,
but you are dealing with something totally else here. I am not your son
I am your LORD (to quote another of my all time favorite lyricists).

> > which is a major sign of lameness
> 
> Your misunderstanding of C++ is /not/ a major sign of lameness, but be
> careful about making blanket statements about programs written in a
> language you don't know.

You changed the battlefield from ANSI C to C++, probably because you
noticed I knew my stuff a bit too well for you to attack so boldly, I
followed you, not having ever heard about the string and map classes (I
know about them now, I talked to a profesional coder at a computer fair
this weekend). I followed you because I knew I could take any punishment
you were able to throw at me. To me not knowing about C++ specs is not a
big deal. I am a better designer that OSI combined anyways and a lot of
people in the knowledge agree that they are also better designers than
anything OSI could ever come up with. After all, I *did* take classes in
computer science for three full years. It is just you who doesn't know
this yet, well, welcome to the club. You know now.

> > and totally unforgivable in my own opinion about writting secure
> > programs that are supposed to run on a semi-secure server like Zax'
> > Solaris platform.
> 
> What is /really/ unforgiveable, surely, is to make incorrect statements
> as if they were gospel truth, and to criticise those who correctly
> correct you. You have done that several times in this discussion.

And you took the bait. Several times I might add. It is just too easy
for me to not get totally and completely bored with you. You failed to
be a challenge the first time you 'commented' on my program. (which I
wrote after not having written a single C program for over three years).

> > But thanks for the reference of the book! I will make
> > sure not to buy it any time soon.
> 
> That's probably best, as it is for intermediate-to-advanced programmers,
> not beginners.

You still fail to notice it is *YOU* who is the beginner here. I am leet
as I already pointed out in vain to you many times before in this
thread. Normally I wouldn't even deal with trolls like you, but then
again, you did attack me and any attack invites a response. It is a
shame you can't tell when you have been defeated (by arguments I must
add, maybe you have trouble following arguments like mine? Have you
ordered that book on logic which I suggested to your already? Don't have
any illusions about beating me in logic, I was top of my class in that
topic).

> > I have had to read many lame books
> > during my studies of computer science, and just what is your education
> > here? Non computer science I am sure, you would have used a const for
> > your word.resize() call if you had any clue about structured
> > programming.
> 
> 128 is a constant integer expression. How much more const can you get?
> In any event, the use of symbolic constants in place of magic numbers is
> orthogonal to structured programming. I'm afraid I don't expect you to
> understand that.

I don't understand orthogonal, but I can look it up for you. What you
fail to understand it that using the word.resize(128) call doesn't make
your code any faster in practize (if the library is implemented well,
which I suspect). You also fail to understand that the value you used in
that function should have been defined in a const expression on the top
of your program because you might have needed it elsewhere (like when
checking for buffer-overflows in your read function). Ha, yes, that read
function of yours. Do you have any idea why your program was 'only' two
times faster than mine while you were probably using an O(nlogn) library
function while I was merely using an O(n^2) function which will get very
drowsy for large input data sizes? Just read through your code again
assuming there is a lot of input from your binary file that is neither
alphanumeric, space nor from the set '\'' and '-'. If you fail to spot
this major performance hit in your program don't bother replying to any
of my posts anymore. You are just not worth any of my attention anymore
if you fail to notice such a bug after having it pointed out to you in
such clear terms.

> > > I am not in the business of comparing skills. It appears from this
> > > discussion that I happen to know more about writing portable C programs
> > > than you do, but that's nothing you couldn't put right with a little
> > > study. Portable C programming is not difficult.
> >
> > No, it seems you know more about writting portable C programmers than my
> > compiler does.
> 
> Yes, I probably do know more about writing portable C programs than your
> compiler does. This is not a tremendously great claim. Compilers are
> written for one platform. It is their job to translate C into object
> code. It is not their job to understand portability, merely to honour
> it.

Have you ever considered that you might know more about (ansi) C
compilers than the implementers of the libraries you use have? Like
assuming that isalpha also covers accented letters? Or assuming that the
compiler warns you about using non-ANSI libraries when you accidentely
include those libraries? (note my consistant use of the word libraries
here where you use the term header file, I noticed we both think on
highly different conceptual levels of programming. When I code in C I
already am thinking about the Assembly code it will produce, in fact, I
basically seem assembly when I write in C, and that is the main reason I
like this language so much).

> > And it also seems you make a lot more assumptions about
> > the language you are programming in than that I am willing to do out of
> > very hard real-life experience.
> 
> I assume the target compiler conforms to the relevant ISO Standard for
> the language under discussion. Don't you make that assumption? And /if/
> you don't, how can you claim that *any* program is portable?

I don't claim any program is portable. I just claim it tries to be ANSI
C and if it fails to be that I am very sorry. I have seem to many
programs fail to be in the illusion that even 97% of all profesional
programmers approach the coding skills I have taken for granted for most
of my life. People are just stupid and people have to know this fact
about themselves or they might put a lot of other people at sometimes
grave danger (I am not kidding here! I really believe this to be true!).

> > It had cost me a lot of time to find out
> > some errors, which in the end turned out to be the compilers fault
> > (damn, no good debugger for C on minix).
> 
> This is possible, but unlikely. It is more likely that your
> misunderstanding of the language was at fault. Many programmers say
> "it's a bug in the compiler", but very few indeed are correct.

I still think that the compiler messing up the bits in my bitfield and
the alloc function allocating _through_ my stack, making the return
value malloc returns pretty useless, are pretty serious compiler
failures. If you want to talk about this, contact Leendert (was
leendert@cs.vu.nl, how could I forget). He can probably explain to you
why it was me that failed his course and not him that failed his master
thesis. Thanks for allowing me to get this of my chest. Amsterdam
Compiler Kit my ass, Amsterdam Crap Kompiler would be more accurate as
it seems to me now. Be sure to inform ast@cs.vu.nl about his former
student complaining about his teaching skills. He never replied to me
when I was complaining about Leendert and Arno before that (both
graduated in cs under the protective wings of AS Tannenbaum), I doubt I
will suffer much from him if what I am posting here ever came to his
attention.. He didn't like my QBasic code for the towers of hanoi
problem either, I guess our relation went downhill from there.. I really
don't care what language I write my code in. As long as I can get it to
work it is just fine with me.

> I've been trying for years to find some way in which the Microsoft C
> compiler fails to conform to ISO/IEC 9899:1990. I've not succeeded yet.
> Have you? Please feel free to share even one tiny little way in which
> MSVC does not conform to the C standard when invoked in "conforming
> mode" (/Za).

Maybe you need to try harder. Programs like Outlook Express fail all the
time and I guess this is partly the result of bad Visual C# libraries.
But then I am an optimist. I still have high hopes for our future.

> > What is it with you sci.crypt guys!! Write portable! Not MS!
> 
> If it doesn't work on the Microsoft compiler, then, unless you can show
> that the Microsoft compiler is non-conforming in some way, your program
> is not portable to all conforming hosted implementations. "Write
> portable! Not MS!" is meaningless. If it's portable, it will work on
> Microsoft's compiler too.

Maybe I just don't want to buy this 'Microsoft C compiler'. I have
touched MASM in the past and I don't see any reason to believe
Microsoft's coding practizes (but more importantly here, design
practizes) have improved over the years. In fact, I believe MS-DOS 3.2
was a lot better than Windows XP will ever be. Just my own personal
opinion of course, I like MS-DOS, I am a bit strange in that. I love
wasting my time on coding functions that already have libraries for them
elsewhere that I could use just as easily (and much quicker). I just
don't feel like learning stuff I don't really need and which I could do
better myself any time.

Thomas
-- 
Douglas Adams, 1978: "The Greek ferry timetables are the greatest work
of sublime fiction ever written this century".
T.J. Boschloo <home.hccnet.nl/t.j.boschloo>
Technical Details
Message-ID: <3DE37891.B6DD5408@hccnet.nl.invalid>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-alt.fan.cult-dead-cow.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!lnsnews.lns.cornell.edu!newsstand.cit.cornell.edu!news.stealth.net!news.stealth.net!newsfeed.freenet.de!news2.euro.net!blue.nl.gxn.net!transit.news.xs4all.nl!bnewspeer00.bru.ops.eu.uu.net!emea.uu.net!news.hccnet.nl!not-for-mail
References: <3DC1596C.6D2B55BD@hccnet.nl.invalid> <3DC526FC.CBCFE9B6@hccnet.nl.invalid> <3DC5451F.DBF3CDDA@eton.powernet.co.uk> <pan.2002.11.03.17.05.02.482162@yahoo.co.uk> <3DC81975.45915377@hccnet.nl.invalid> <3DC98ABC.27E67263@eton.powernet.co.uk> <3DCBC8E4.3933993A@hccnet.nl.invalid> <3DCBE9CD.D33C572F@eton.powernet.co.uk> <3DCD22D6.94D49417@hccnet.nl.invalid> <3DCD3024.F1BEA8B3@eton.powernet.co.uk> <3DD269AF.7559165F@hccnet.nl.invalid> <3DD29BFF.AEA176E5@eton.powernet.co.uk> <3DD75F4F.88C9245A@hccnet.nl.invalid> <3DD78B7D.D10120B6@eton.powernet.co.uk>

Show Full Headers
Complete Article Headers
Message-ID: <3DE37891.B6DD5408@hccnet.nl.invalid>
Subject: Re: Free reliable wordcount utility available (final version)
Date: Tue, 26 Nov 2002 14:35:13 +0100
From: "Thomas J. Boschloo" <nospam@hccnet.nl.invalid>
References: <3DC1596C.6D2B55BD@hccnet.nl.invalid> <3DC526FC.CBCFE9B6@hccnet.nl.invalid> <3DC5451F.DBF3CDDA@eton.powernet.co.uk> <pan.2002.11.03.17.05.02.482162@yahoo.co.uk> <3DC81975.45915377@hccnet.nl.invalid> <3DC98ABC.27E67263@eton.powernet.co.uk> <3DCBC8E4.3933993A@hccnet.nl.invalid> <3DCBE9CD.D33C572F@eton.powernet.co.uk> <3DCD22D6.94D49417@hccnet.nl.invalid> <3DCD3024.F1BEA8B3@eton.powernet.co.uk> <3DD269AF.7559165F@hccnet.nl.invalid> <3DD29BFF.AEA176E5@eton.powernet.co.uk> <3DD75F4F.88C9245A@hccnet.nl.invalid> <3DD78B7D.D10120B6@eton.powernet.co.uk>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-alt.fan.cult-dead-cow.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!lnsnews.lns.cornell.edu!newsstand.cit.cornell.edu!news.stealth.net!news.stealth.net!newsfeed.freenet.de!news2.euro.net!blue.nl.gxn.net!transit.news.xs4all.nl!bnewspeer00.bru.ops.eu.uu.net!emea.uu.net!news.hccnet.nl!not-for-mail
Newsgroups: sci.crypt,alt.privacy.anon-server,alt.fan.cult-dead-cow,comp.lang.c
Organization: Hobby Computer Club News Network
Lines: 431
NNTP-Posting-Host: uds12-35.dial.hccnet.nl
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Trace: news.hccnet.nl 1038319135 726 62.251.35.12 (26 Nov 2002 13:58:55 GMT)
X-Complaints-To: abuse@hccnet.nl
NNTP-Posting-Date: Tue, 26 Nov 2002 13:58:55 +0000 (UTC)
Cancel-Lock: sha1:ZyH0qZMrESqtJw+eqA4mY2ecN54=
X-Mailer: Mozilla 4.8 [en] (Win98; U)
X-Accept-Language: en,nl,de
X-NFilter: 1.2.1-b1