home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: rec.games.mud.misc
- Path: sparky!uunet!spool.mu.edu!darwin.sura.net!ra!wintermute.phys.psu.edu!atlantis.psu.edu!handel!stine
- From: stine@handel.psu.edu (Jeffrey Stine)
- Subject: Re: Note to any fellow DikuMUD coders...
- Message-ID: <kwt1H$1cnb@atlantis.psu.edu>
- Sender: news@atlantis.psu.edu (Usenet)
- Organization: Penn State University
- References: <9212241834.AA23599@TIS.COM> <lek1Hah5mb@atlantis.psu.edu> <9212260257.AA22918@TIS.COM>
- Date: Sat, 26 Dec 92 06:21:26 GMT
- Lines: 36
-
- In article <9212260257.AA22918@TIS.COM> mjr@TIS.COM writes:
- >stine@handel.psu.edu (Jeffrey Stine) writes:
- >
- >>I've worked on machines where this call did not work and would produce a
- >>seg fault. There is nothing wrong with transforming the address this way
- >>provided it is done correctly.
- >
- > Sure. You cal also make your code "portable" by including the
- >complete source of a libc that you trust to work. If the system libraries
- >are broken, that's an implementation detail you should work out with
- >the vendor - rewriting library routines in a way that works "provided it
- >is done correctly" is not good programming.
- >
- >mjr.
-
- Is this from the book of programming according to Mr. Ranum?
- What makes this "not good programming"? If you mean it is
- duplication of effort, that is a wasted argument for most code (and
- in particular mud code).
- However I did not mean that it is ok to rewrite any library routine,
- only those that are known to be have problems... In particular the
- inet_ntoa() function produces the seg fault on the SunOS machines
- that I have worked on and if it is the case that all SunOS 4.1 has
- this problem it is good enough reason to write your own function.
- If I write a library routine in a way that I can expect it to
- be portable, this is far better than using one that may be expected
- to be absent or broken. I didn't suggest they rewrite the entire
- libc, that is your stupid idea. The people we are talking about writing
- this probably would have no clue as to what to do in the case that
- the library routine they wished to use was "broken".
- In conclusion how about getting off your high horse long enough to
- realize which group your post is targeting and not refer to something
- as vomit without giving specific reasons _why_ it is bad. I mean
- after all not all of us have your _vast_ experience, some of us only
- have several years worth of programming these things under our belts.
-
-