/r/tinycode

Photograph via snooOG

This subreddit is about minimalistic, often but not always simple implementations of just about everything. tiny code / minimalistic programming / yagni / kiss / dry

TL;DR: Low line count, high quality

This subreddit is about minimalistic, often but not always simple implementations of just about everything.

PLEASE NOTE: This Subreddit is NOT about CodeGolf and obfuscation!

_______Low line count, high quality!_______

  • Webserver in 42 lines of code? Great!
  • A wiki engine smaller than your usual MVC controller? Awesome!
  • Tiny games that somehow kicks ass? Sure!
  • That one liner that fulfills your deepest desires? You got it!
  • An exploit so small and elegant to make you drool? Maybe even that!
  • Open source alternatives to common bloatware? Most definitely!

I'm sure you get the idea by now ;) ...

Remember: "Tiny depends on what you're doing. A tiny box, a tiny house, and a tiny country are very different sizes." - snarkyxanf

In other words: Try to aim for stuff that makes you go "wow!" instead of "huh?" ;)

Also look into:

Other Subreddits that might interest you:

/r/tinycode

24,929 Subscribers

26

Wavy Cube Grid (Code in Comments)

6 Comments
2023/12/02
23:45 UTC

63

Cube Grid (Code in Comments)

7 Comments
2023/11/30
07:15 UTC

30

I released a 19-track algorithmic music album, written in x86 assembly language, where each song is roughly 128 bytes

5 Comments
2023/11/19
18:32 UTC

6

JavaScript Haikus: My Adventures in Tiny Coding

0 Comments
2023/10/05
14:46 UTC

5

"Deadline Effect" - 256B for MicroW8 (WASM based platform) - reupload

1 Comment
2023/10/02
10:25 UTC

12

"Fairwell" - Four 3D animations with soothing music in 256 bytes

1 Comment
2023/09/11
16:23 UTC

17

Trancy - a 256 byte WASM based intro for "MicroW8" platform

1 Comment
2023/08/15
08:14 UTC

14

Check if a word is valid English word

if "hello".casefold() in open('/usr/share/dict/words/').read(): return True 

In most UNIX-based systems, a /usr/share/dict/words
file exists. Name and location can be different for you.

4 Comments
2023/08/03
21:54 UTC

28

Binary Golf 4

Goal: Create the smallest self-replicating file.

A valid submission will:

  1. Produce exactly 1 copy of itself
  2. Name the copy "4"
  3. Not execute the copied file
  4. Print, return, or display the number 4

Looks like they are accepting all file types, which makes it a very interesting challenge covering a wide range of environments.

Binary Golf Grand Prix 4

0 Comments
2023/06/26
04:32 UTC

11

Tiny Reddit?

Hey here's another stupid idea out of a late night mood. How about a brainstorming thread about a tiny reddit alternative? What would be a minimal implementation that is functional enough but sort of self contained so it can be self hosted without effort? Think like what mastodon or even twtxt is for twitter but for reddit? Maybe something that implements enough functionality to self host a single subreddit and then make it connected to other self hosted subreddits? If you think this is stupid let me know but I think there's something to it.

Okay good that I asked a friend before posting. There's lemmy, join-lemmy. Which looks pretty cool but is definitely not tiny. Anyone got something similar but tiny?

9 Comments
2023/06/21
22:40 UTC

103

Why NSFW

Yes we are NSFW now. Why? Apparently Reddit is not able to put ads in NSFW subreddits and this serves as a little miniature (should I dare to say tiny?) protest against the upcoming API changes.

26 Comments
2023/06/20
10:26 UTC

32

dwitter.net: for(i=c.width=W=999;i--;){X=i/.7,Y=0;for(w=9;w<W/4;w/=.6)A=(X+t*w)%w-w/2,X+=A*C(D=1-A*A/w/w*4)+Y*S(D)-A,Y=Y*C(D)-A*S(D);x.lineTo(X-W*.3,Y+w+9e3/i)}x.fill()

1 Comment
2023/06/19
16:55 UTC

Back To Top