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

Advent Of Code

982 readers
53 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
[–] [email protected] 21 points 2 weeks ago (2 children)

looks slightly better than the code I have at work

[–] [email protected] 20 points 2 weeks ago (1 children)

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

[–] [email protected] 10 points 2 weeks ago

or at the entrance to an ancient Egyptian tomb.

[–] [email protected] 5 points 2 weeks ago

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

[–] [email protected] 13 points 2 weeks ago

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

[–] [email protected] 6 points 2 weeks ago (1 children)

This looks like scrambled emoticons

[–] [email protected] 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

[–] [email protected] 4 points 2 weeks ago (1 children)
[–] [email protected] 3 points 2 weeks ago

Uiua, forgot to put that in the post