6
\$\begingroup\$

What tips do you have for golfing in Wierd? Tips for golfing other languages don't seem to help one golf Wierd programs so I'm looking for ideas that can be applied to code golf problems that are specific to Weird - especially if it helps me reduce the size of this answer at "Hello, World!"

\$\endgroup\$
  • \$\begingroup\$ I've never heard of this language and it looks very... interesting. I don't have much to add except I'll be looking at making my own Hello, World! program soon and coming up with some tips :) \$\endgroup\$ – Teal pelican Nov 30 '16 at 9:35
  • \$\begingroup\$ @Tealpelican my two favourites are Weird and /// \$\endgroup\$ – Jerry Jeremiah Nov 30 '16 at 10:49
  • 1
    \$\begingroup\$ Currently mine is ><>, I've been able to come up with 'He' in wierd atm but it's not the easiest language to figure out aha. \$\endgroup\$ – Teal pelican Nov 30 '16 at 12:31
  • \$\begingroup\$ @Tealpelican What it needs is a good editor that lets you clip rectangular pieces and rotate and flip them before reinserting them. \$\endgroup\$ – Jerry Jeremiah Nov 30 '16 at 18:13
  • \$\begingroup\$ My primary advice for golfing in Wierd is: don't. :P Kidding aside, I'm impressed by your determination to improve your score in this ridiculously unwieldy and not entirely well specified language. :) \$\endgroup\$ – Martin Ender Nov 30 '16 at 19:24
1
\$\begingroup\$

Don't forget about self modifying code

As Dennis showed in https://codegolf.stackexchange.com/a/142785/24812 a loop can be much shorter than a linear program and that there are clever ways to exit the loop. The spec makes it clear that a 90 degree angle allows you to choose one of two different directions at runtime. Dennis showed that you could modify the program at runtime - with amazing results.

\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.