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

32

Dweet of the Week #51 Photon-Mapping using a Random-March Scattering Model by Tomxor

1 Comment
2024/12/13
19:53 UTC

1

A simple virtual computer to practice writing compilers

0 Comments
2024/12/13
14:17 UTC

8

Dweet of the Week #50 - Just One More Drop by Rodrigo Siqueira

1 Comment
2024/12/06
18:52 UTC

23

Dweet of the Week #49 - God of Fractals 3D Rotation by Rodrigo Siqueira

1 Comment
2024/11/29
20:53 UTC

14

Dweet of the Week #48 - Sun Mountains by KilledByAPixel

1 Comment
2024/11/22
16:49 UTC

6

Slaughter by mindbleach -- FPS running on the NES hardware

1 Comment
2024/11/22
12:30 UTC

18

Dweet of the Week #47 - Color Tree by Rodrigo Siqueira

1 Comment
2024/11/15
20:17 UTC

32

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

2 Comments
2024/11/09
11:22 UTC

31

Dweet of the Week: Ventilation Shaft by tomxor

8 Comments
2024/11/08
01:07 UTC

34

Dweet of The Week: Drilling for Dweets by tomxor

3 Comments
2024/11/08
01:02 UTC

3

Dweet of The Week: Multiple Torus Choreography by Rodrigo Siqueira

1 Comment
2024/11/08
00:50 UTC

11

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

10

Dweet of the Week: untitled by Hardly Productive

1 Comment
2024/10/11
15:27 UTC

22

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

18

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

13

Dweet of the Week: Comets by Rodrigo Siqueira

3 Comments
2024/08/30
13:02 UTC

Back To Top