this post was submitted on 07 Dec 2024
47 points (98.0% liked)

Advent Of Code

987 readers
15 users here now

An unofficial home for the advent of code community on programming.dev!

Advent of Code is an annual Advent calendar of small programming puzzles for a variety of skill sets and skill levels that can be solved in any programming language you like.

AoC 2024

Solution Threads

M T W T F S S
1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25

Rules/Guidelines

Relevant Communities

Relevant Links

Credits

Icon base by Lorc under CC BY 3.0 with modifications to add a gradient

console.log('Hello World')

founded 1 year ago
MODERATORS
 

I don't remember exactly what this difference caused but I do remember it being very annoying to debug.

Edit: the language used is Uiua

top 9 comments
sorted by: hot top controversial new old
[–] hades@lemm.ee 21 points 3 weeks ago (2 children)

looks slightly better than the code I have at work

[–] perviouslyiner@lemmy.world 20 points 3 weeks ago (1 children)

This looks like something you'd engrave on the side of a space probe

[–] archonet@lemy.lol 10 points 3 weeks ago

or at the entrance to an ancient Egyptian tomb.

[–] Quant@programming.dev 5 points 3 weeks ago

Glad to hear that my attempts at de-spaghettifying worked to some degree at least :D

[–] circuitfarmer@lemmy.sdf.org 13 points 2 weeks ago

I imagine the code that runs Klingon navigation systems probably looks like this

[–] 0ops@lemm.ee 6 points 2 weeks ago (1 children)

This looks like scrambled emoticons

[–] Quant@programming.dev 3 points 2 weeks ago

You can actually use (singular) emojis as variable names. According to the documentation, they won't be be used as glyphs so you don't even have to worry about breaking changes of that kind :D

[–] thenextguy@lemmy.world 4 points 3 weeks ago (1 children)
[–] Quant@programming.dev 3 points 3 weeks ago

Uiua, forgot to put that in the post