Register a SA Forums Account here!
JOINING THE SA FORUMS WILL REMOVE THIS BIG AD, THE ANNOYING UNDERLINED ADS, AND STUPID INTERSTITIAL ADS!!!

You can: log in, read the tech support FAQ, or request your lost password. This dumb message (and those ads) will appear on every screen until you register! Get rid of this crap by registering your own SA Forums Account and joining roughly 150,000 Goons, for the one-time price of $9.95! We charge money because it costs us money per month for bills, and since we don't believe in showing ads to our users, we try to make the money back through forum registrations.
 
  • Post
  • Reply
Kraus
Jan 17, 2008
Hey, nerds!

Anyone here into code golf?

For those who don't know: You're given a task, like print all the primes from 1 to 100, and you have to write the smallest possible program to do that.

There are some excellent sites out there for playing code golf.

Code.golf is one: https://code.golf/

Anagol is another: http://golf.shinh.org/

Adbot
ADBOT LOVES YOU

FPS_Sage
Oct 25, 2007

This was a triumph
Gun Saliva
Never heard of this before, but I like it! I've been learning python and have been looking for some fun, intermediate-level "exercises" to try. I'm sure I won't break any records for efficiency, so I'll focus on just completing the problem and that will be fun enough!

Kraus
Jan 17, 2008

FPS_Sage posted:

Never heard of this before, but I like it! I've been learning python and have been looking for some fun, intermediate-level "exercises" to try. I'm sure I won't break any records for efficiency, so I'll focus on just completing the problem and that will be fun enough!

Yeah, I've solved some of the problems just to solve them without caring about competition. I have a few problems where I have extremely golfed versions and also professionally written versions just to see.

Good Sphere
Jun 16, 2018

I just did this, and I love it. Got 7th place for a Swift FizzBuzz challenge. I wasn't even trying. :smug:

ColTim
Oct 29, 2011
There's also the Code Golf and Coding Challenges stack exchange community, where I've golfed a bunch in K.

The site and community are very flexible and diverse when it comes to the languages used. The answers are public, and often accompanied by explanations, which is way to get into golfing.

  • 1
  • 2
  • 3
  • 4
  • 5
  • Post
  • Reply