this post was submitted on 24 Nov 2024
37 points (93.0% liked)
Advent Of Code
806 readers
10 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 | 18 | 20 | 21 | 22 |
23 | 24 | 25 |
Rules/Guidelines
- Follow the programming.dev instance rules
- Keep all content related to advent of code in some way
- If what youre posting relates to a day, put in brackets the year and then day number in front of the post title (e.g. [2024 Day 10])
- When an event is running, keep solutions in the solution megathread to avoid the community getting spammed with posts
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
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Haha, well... I have plenty of self-esteem but not Rust-specific self-esteem. I still have imposter syndrome with that language.
I'm a top notch expert in Python and JS though! ๐๐
I wrote PyMinifier which required such a deep understanding of Python it kinda broke my brain writing it for a while, haha. I eventually figured everything out though and got an even deeper understanding of the language and its features.
For JS it has just been years and years and years of knowing 100 ways to do what I want in JS but none ever seeming to be, "correct". Then eventually I realized there's no best way to do basically anything in JS and that's when the true enlightenment came ๐คฃ
If you look at anyone's JS code and think to yourself, "ugh, there's got to be a better way to do this" chances are you're wrong. All the ways will be equally shitty for any number of different reasons! ๐
I am glad to hear that :) I have friends who don't cherish their accomplishments so maybe I was just in that headspace. Sorry for assuming.
Yeah, I started to learn to code with JS and the whole thing seemed to be, and I don't intent to be insulting, amateurish. Not something I would expected from engineers who try to be efficient and pride themselves with that.
Kinda lost interest in the whole thing because everything seemed so needlessly complicated and fast changing.
But a few weeks ago I started to pick up rust and it seems to have a lot more thought put into it.
The installation process is straight forward, the compiler pretty much tells you what you did wrong, tools are easy to set up and the name of the language is cool^^
This happens because JS is such a shit language! There's no best way (or even good way) to solve any given problem. This results in everyone reinventing the wheel every goddamned day.
Someone like you and me thinks to themselves, "this is such crap!" And they're right! ๐คฃ So they come up with a new way of doing things that's just a little bit better and they post it publicly.
Then some huge amount of new JS developers (there's always a steady stream) and a few old ones think, "hey, this isn't a bad idea!" So they start using the new thing. Then it becomes the hot new thing and suddenly huge amounts of JS code is depending on it.
Then people start to realize that this new way doesn't quite work so well in certain situations so they add on to it by making new utilities/GUI libs. Others see the wisdom in this and adopt these new tools.
These new "solutions" build and grow in complexity until new JS devs working with the new paradigm think, "this is such crap!" And they're right!
๐