/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,949 Subscribers

12

Dweet of the Week #46 - Pillars of Dwitter HD by Tomxor

1 Comment
2024/11/09
11:22 UTC

30

Dweet of the Week: Ventilation Shaft by tomxor

8 Comments
2024/11/08
01:07 UTC

29

Dweet of The Week: Drilling for Dweets by tomxor

3 Comments
2024/11/08
01:02 UTC

2

Dweet of The Week: Multiple Torus Choreography by Rodrigo Siqueira

1 Comment
2024/11/08
00:50 UTC

9

Fitting Flappy Bird (Assets Included) onto a QR Code

1 Comment
2024/11/03
11:04 UTC

11

Improve Tiny SVG Analog Clock

Hi guys! I’ve implemented the smallest SVG analog clock I could make. Is there a way to make it even smaller or simpler? Alternatively, without adding too much complexity, how can I make it look more appealing? Do you have any suggestions for improvement?

Here’s the CodeSandbox.

const AnalogClock = ({ date = new Date() }) => (
  <div
    mount={(self) => {
      const timerId = setInterval(() => {
        date = new Date();
        update(self);
      }, 1000);

      return () => clearInterval(timerId);
    }}
  >
    <svg viewBox="-50 -50 100 100">
      <circle class="face" r="48" />
      <line
        class="hour"
        transform={() =>
          `rotate(${30 * (date.getHours() % 12) + date.getMinutes() / 2})`
        }
        y2="-25"
      />
      <line
        class="minute"
        transform={() => `rotate(${6 * date.getMinutes()})`}
        y2="-35"
      />
      <line
        class="second"
        transform={() => `rotate(${6 * date.getSeconds()})`}
        y2="-35"
      />
    </svg>
  </div>
);

Made with Fusor library

4 Comments
2024/10/12
08:49 UTC

11

Dweet of the Week: untitled by Hardly Productive

1 Comment
2024/10/11
15:27 UTC

21

Multi-Part 256 byte Intro - ranked 1st at Deadline2024

1 Comment
2024/10/07
20:50 UTC

16

Dweet of the Week: Emanating Light Spiral by Rodrigo Siqueira

2 Comments
2024/10/05
20:21 UTC

0

Counting Button: React vs Fusor

4 Comments
2024/10/04
09:37 UTC

3

Dweet of the Week: Dr1v3n Wild by KilledByAPixel

1 Comment
2024/09/27
14:27 UTC

16

Dweet of the Week: Red light flow by Rodrigo Siqueira

2 Comments
2024/09/21
18:59 UTC

13

Dweet of the Week: Default Target Practice by Agnes

2 Comments
2024/09/14
15:58 UTC

5

Dweet of the Week: Leaky Edition by Magna

1 Comment
2024/09/06
14:29 UTC

15

Dweet of the Week: Comets by Rodrigo Siqueira

3 Comments
2024/08/30
13:02 UTC

14

Butterfly Effect 1024 bytes, SVG (Chrome/Edge only)

1 Comment
2024/08/27
14:33 UTC

14

Dweet of the Week: Tropical Flowers Remix by Danny

3 Comments
2024/08/23
15:18 UTC

5

Dweet of the Week: Fractal Remix by Tesseract

2 Comments
2024/08/16
19:05 UTC

8

Fitting Flappy Bird (Assets Included) onto a QR Code

1 Comment
2024/08/13
17:39 UTC

20

Dweet of the Week: Volumetric Star Rotation by Rodrigo Siqueira

1 Comment
2024/08/09
15:00 UTC

8

Dweet of the Week: Sierpinski Sail by Rodrigo Siqueira

1 Comment
2024/08/02
19:55 UTC

9

Dweet of The Week: I Ching by KilledByAPixel

3 Comments
2024/07/26
16:28 UTC

Back To Top