(Well... since this is my adopted language 1, I feel like I'm obliged to add something here)
Use short variable names
Yeah, yeah, yeah, that's pretty standard to code-golf, you just use one-letter-length variable names, no news here. Or is there? Because the chaps that created SPL were wacky enough not to allow any name for their language's variables: they must come from Shakesperian plays which, in terms of character length, is a pain in the royal tush - but, if you're coding in SPL, you already know that. So, my advice would be to use characters with short names, like Ajax, Ford, Page or Puck, instead of The Archbishop of Canterbury, per instance.
That's all I got, I'm afraid.
1- since my Java skills are equivalent of those of a newborn.
17I'm not certain that you can golf SPL. SPL is so verbose that I almost feel like this question needs the code trolling tag. :P – Alex A. – 2015-04-14T19:40:07.890
You just can't golf SPL. At least, to my feeble knowledge of Shakesperian lore... – Rodolfo Dias – 2015-04-14T19:42:17.103
@RodolfoDias: Feeble? I think you're the resident Shakespeare scholar on PPCG. – Alex A. – 2015-04-14T19:44:02.093
8@AlexA. Which may not be a good thing: it just means I'm demented enough to try and understand SPL :-) – Rodolfo Dias – 2015-04-14T19:48:36.513
@AlexA. Sp can do it... – Conor O'Brien – 2016-01-16T00:14:53.380
This is not a golfing tip, but a note. On
Listen tothy!
command (akaint_input
) it's undefined behavior if there are nothing left in the input, so you can't reliably determine EOF with integer input. – user202729 – 2018-05-30T13:34:07.820