Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.misc > #4702

Re: Why Johnny can?t code

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!us.feeder.erje.net!news2.arglkargh.de!news.swapon.de!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From scott@alfter.diespammersdie.us (Scott Alfter)
Newsgroups comp.misc
Subject Re: Why Johnny can?t code
Date Thu, 4 Sep 2014 15:24:31 +0000 (UTC)
Organization USS Voyager NCC-74656, Delta Quadrant
Lines 31
Message-ID <lua07f$r89$1@dont-email.me> (permalink)
References <jCWo060GWCUx8svQg454q6sz@dont-email.me> <alpine.LNX.2.02.1409031436440.11910@darkstar.example.org> <lu7ro5$9qh$1@dont-email.me> <alpine.LNX.2.02.1409031731570.2647@darkstar.example.org>
Injection-Date Thu, 4 Sep 2014 15:24:31 +0000 (UTC)
Injection-Info mx05.eternal-september.org; posting-host="554b5a57e612c8eb5d677fe61471f97f"; logging-data="27913"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX194JB2V0SMipHdMQuUkAiq5"
Originator scott@alfter.diespammersdie.us (Scott Alfter)
X-Newsreader trn 4.0-test76 (Apr 2, 2001)
Cancel-Lock sha1:Xb7+NgzhrU8qdoZgy3zzFXpwU60=
Xref csiph.com comp.misc:4702

Show key headers only | View raw


In article <alpine.LNX.2.02.1409031731570.2647@darkstar.example.org>,
Michael Black  <et472@ncf.ca> wrote:
>Isn't it supposed to be kind of like FORTH?

It is a stack-based language.  Consider this example:

/Times-Roman findfont 72 scalefont setfont
1 72 mul 9.5 72 mul moveto
(Hello, world) show
showpage

Values get pushed onto the stack.  Operators (findfont, mul, etc.) pull them
off and (optionally) push return values back on.  Fans of HP calculators
would appreciate how PostScript handles math.

>The closest I've come is to patch a postscript file so it prints multiple 
>copies, right at the beginning there's a line about that, easy to find 
>once you know what to look for.

I've mostly used it to do manual duplexing on printers that don't support it
in the driver, or occasionally to do n-up printing...been a while since I've
needed it for that, as there's almost always an option nowadays to do that. 
Probably the fanciest I've gotten with it is this Bitcoin note generator:

https://github.com/salfter/btcnotes

  _/_
 / v \ Scott Alfter (remove the obvious to send mail)
(IIGS( http://alfter.us/            Top-posting!
 \_^_/                              >What's the most annoying thing on Usenet?

Back to comp.misc | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Why Johnny can?t code Rich <rich@example.invalid> - 2014-09-02 10:02 +0000
  Re: Why Johnny can?t code Tim Streater <timstreater@greenbee.net> - 2014-09-02 12:23 +0100
    Re: Why Johnny can?t code Ben Bacarisse <ben.usenet@bsb.me.uk> - 2014-09-02 14:43 +0100
      Re: Why Johnny can?t code Paul Sture <nospam@sture.ch> - 2014-09-02 16:40 +0200
        Re: Why Johnny can?t code Sylvia Else <sylvia@not.at.this.address> - 2014-09-03 12:43 +1000
      Re: Why Johnny can?t code scott@alfter.diespammersdie.us (Scott Alfter) - 2014-09-02 15:17 +0000
        Re: Why Johnny can?t code RS Wood <rsw@therandymon.com> - 2014-09-02 18:24 +0000
          Re: Why Johnny can?t code Rich <rich@example.invalid> - 2014-09-02 21:01 +0000
          Re: Why Johnny can?t code greymaus <greymausg@mail.com> - 2014-09-03 14:55 +0000
            Re: Why Johnny can?t code Tim Streater <timstreater@greenbee.net> - 2014-09-03 18:04 +0100
            Re: Why Johnny can?t code Michael Black <et472@ncf.ca> - 2014-09-03 14:38 -0400
              Re: Why Johnny can?t code Rich <rich@example.invalid> - 2014-09-03 19:55 +0000
                Re: Why Johnny can?t code Michael Black <et472@ncf.ca> - 2014-09-03 17:33 -0400
                Re: Why Johnny can?t code Rich <rich@example.invalid> - 2014-09-03 21:35 +0000
                Re: Why Johnny can?t code scott@alfter.diespammersdie.us (Scott Alfter) - 2014-09-04 15:24 +0000
                Re: Why Johnny can?t code Rich <rich@example.invalid> - 2014-09-04 20:17 +0000
        Re: Why Johnny can?t code Rich <rich@example.invalid> - 2014-09-02 18:56 +0000
        Re: Why Johnny can?t code Paul Sture <nospam@sture.ch> - 2014-09-03 20:59 +0200
      Re: Why Johnny can?t code Rich <rich@example.invalid> - 2014-09-02 18:45 +0000
        Re: Why Johnny can?t code Ben Bacarisse <ben.usenet@bsb.me.uk> - 2014-09-02 20:50 +0100
          Re: Why Johnny can?t code Paul Sture <nospam@sture.ch> - 2014-09-03 21:05 +0200
    Re: Why Johnny can?t code Paul Sture <nospam@sture.ch> - 2014-09-02 16:56 +0200
      Re: Why Johnny can?t code Tim Streater <timstreater@greenbee.net> - 2014-09-02 16:09 +0100
    Re: Why Johnny can?t code Huge <Huge@nowhere.much.invalid> - 2014-09-04 14:57 +0000
      Re: Why Johnny can?t code Gordon Henderson <gordon+usenet@drogon.net> - 2014-09-04 15:24 +0000
        Re: Why Johnny can't code Mike Spencer <mds@bogus.nodomain.nowhere> - 2014-09-05 02:33 -0300
  Re: Why Johnny can?t code Will Honea <whonea@whonea.net> - 2014-09-02 14:08 -0600
    Re: Why Johnny can?t code Rich <rich@example.invalid> - 2014-09-02 20:55 +0000
    Re: Why Johnny can?t code Bob Eager <news0002@eager.cx> - 2014-09-02 21:02 +0000
      Re: Why Johnny can?t code Will Honea <whonea@whonea.net> - 2014-09-02 23:07 -0600
        Re: Why Johnny can?t code Bob Eager <news0002@eager.cx> - 2014-09-04 10:58 +0000
          Re: Why Johnny can?t code Rich <rich@example.invalid> - 2014-09-04 11:09 +0000
            Re: Why Johnny can?t code Bob Eager <news0002@eager.cx> - 2014-09-04 11:17 +0000
              Re: Why Johnny can?t code Will Honea <whonea@whonea.net> - 2014-09-04 22:58 -0600
                Re: Why Johnny can?t code Bob Eager <news0002@eager.cx> - 2014-09-05 11:38 +0000
                Re: Why Johnny can?t code Will Honea <whonea@whonea.net> - 2014-09-05 13:55 -0600
                Re: Why Johnny can?t code Bob Eager <news0002@eager.cx> - 2014-09-05 20:02 +0000
          Re: Why Johnny can?t code Marko Rauhamaa <marko@pacujo.net> - 2014-09-04 14:28 +0300
          Re: Why Johnny can?t code RJH <patchmoney@gmx.com> - 2014-09-04 20:27 +0100
            Re: Why Johnny can?t code Bob Eager <news0002@eager.cx> - 2014-09-04 19:55 +0000
              Re: Why Johnny can?t code Will Honea <whonea@whonea.net> - 2014-09-04 22:50 -0600
                Re: Why Johnny can?t code Bob Eager <news0002@eager.cx> - 2014-09-05 11:37 +0000
                Re: Why Johnny can?t code Tim Streater <timstreater@greenbee.net> - 2014-09-05 13:05 +0100
                Re: Why Johnny can?t code Bob Eager <news0002@eager.cx> - 2014-09-05 15:22 +0000
                Re: Why Johnny can?t code Will Honea <whonea@whonea.net> - 2014-09-05 13:48 -0600
                Re: Why Johnny can?t code Bob Eager <news0002@eager.cx> - 2014-09-05 20:09 +0000
  Re: Why Johnny can?t code Sylvia Else <sylvia@not.at.this.address> - 2014-09-03 12:26 +1000
  Re: Why Johnny can?t code Bruce Horrocks <07.013@scorecrow.com> - 2014-09-04 00:34 +0100
  Re: Why Johnny can?t code Huge <Huge@nowhere.much.invalid> - 2014-09-04 15:01 +0000

csiph-web