advent-of-code-jq
too-many-lists
advent-of-code-jq | too-many-lists | |
---|---|---|
232 | 219 | |
204 | 3,038 | |
- | 1.3% | |
7.8 | 0.0 | |
5 months ago | about 1 month ago | |
jq | Rust | |
- | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
advent-of-code-jq
-
Ask HN: How do I get better at programming as a hobbyist?
If you just want a series of programming puzzles, check out the Advent of Code[1]
[1] https://adventofcode.com/
-
What Happens After Agile Dies?
This goes against Agile, against what many have only known. You can try it, and see what happens. Try a challenge from AdventOfCode, spend a couple of days working up a plan first. Did you write a cleaner solution? Now extrapolate.
-
When was the last time you used this? - Part 2: Algorithms
I have used BFS only sporadically to solve problems at work. DFS was usually a simpler or better choice. BFS is, however, an essential tool for Advent of Code puzzles - each year, BFS is sufficient to solve at least a few puzzles. BFS is also a very common algorithm for coding interviews.
-
2023, a year in images
I'm staring to be a huge fan of the Advent of Code challenge every beginning of December. Everyday puzzle is a great excuse to talk to people of your company that probably you don't interact much otherwise. And /r/adventofcode subreddit fan-arts and community is fun to follow. I always entered after completing the daily challenge, otherwise it may be a huge spoil :D
-
Ask HN: Programming Courses for Experienced Coders?
Advent of Code (https://adventofcode.com/)
It's not a programming course per-se, but it's a great resource to master the skill of coding and problem solving.
It's just one part though, it won't teach you anything about architecturing a bigger system.
-
Having a Game I'm into Makes Every Day Enjoyable
For anyone currently looking for something that does this for you, may I suggest Advent of Code: https://adventofcode.com/ This is the first year I've really had time and space to enjoy it, and enjoy it I have.
Also - this article ends on such a weird note given the message that the rest of it delivers. The author has finally realized how valuable it is to have something that gets them going, regardless of whether or not it ends up being "useful", but then immediately stumbles over the fear of it not lasting and failing to achieve greatness in it and sharply concludes with that sentiment.
Perseverance through intermediate-ness into greatness is irrelevant to enjoyment.
-
Stuff I Learned during Hanukkah of Data 2023
Hanukkah of Data is a series of data-themed puzzles, where you solve puzzles to move your way through a holiday-themed story using a fictional dataset. I think of it as "Advent of Code meets SQL Murder Mystery".
-
Using only vim to solve AdventOfCode Challenges | Episode 1
This journey will transform you and challenge your creative and resourceful thinking. You will explore new possibilities with VIM, going beyond what you thought it could do. And as you advance through the Advent Of Code puzzles, you will truly transform yourself if you follow the two scenarios listed below.
-
Ask HN: What apps have you created for your own use?
I've been making a CLI for advent of code ( https://adventofcode.com/ ) this week: https://github.com/VitamintK/wang-aoc-cli
It's been satisfying!
-
Does being bad at solving programming problems means not being a good programmer?
December started 12 days ago, and for my first year I decided to try the Advent of Code 2023, which is basically 1 programming problem everyday and they get harder and harder each day. I started HARD, I ate problems, day by day, until... day 10; things started getting pretty hard and couldn't do - I think - pretty average difficulty problems.
too-many-lists
-
Towards memory safety with ownership checks for C
You seem to have a preset opinion, and I'm not sure you are interested in re-evaluating it. So this is not written to change your mind.
I've developed production code in C, C++, Rust, and several other languages. And while like pretty much everything, there are situations where it's not a good fit, I find that the solutions tend to be the most robust and require the least post release debugging in Rust. That's my personal experience. It's not hard data. And yes occasionally it's annoying to please the compiler, and if there were no trait constraints or borrow rules, those instances would be easier. But way more often in my experience the compiler complained because my initial solution had problems I didn't realize before. So for me, these situations have been about going from building it the way I wanted to -> compiler tells me I didn't consider an edge case -> changing the implementation and or design to account for that edge case. Also using one example, where is Rust is notoriously hard and or un-ergonomic to use, and dismissing the entire language seems premature to me. For those that insist on learning Rust by implementing a linked list there is https://rust-unofficial.github.io/too-many-lists/.
-
Command Line Rust is a great book
Advent of Code was okay until I encounterd a problem that required a graph, tree or linked list to solve, where I hit a wall. Most coding exercises are similar--those requiring arrays and hashmaps and sets are okay, but complex data structures are a PITA. (There is an online course dedicated to linked lists in Rust but I couldn't grok it either). IMO you should simply skip problems that you can't solve with your current knowledge level and move on.
-
[Media] I'm comparing writing a double-linked list in C++ vs with Rust. The Rust implementation looks substantially more complex. Is this a bad example? (URL in the caption)
I feel obligated to point to the original cannon literature: https://rust-unofficial.github.io/too-many-lists/
-
Need review on my `remove()` implementation for singly linked lists
I started learning Rust and like how the compiler is fussy about things. My plan was to implement the data structures I knew, but I got stuck at the singly linked list's remove() method. I've read the book as well, but I have no clue how to simplify this further:
-
Factor is faster than Zig
My impression from the article is that Zig provides several different hashtables and not all of them are broken in this way.
This reminds me of Aria's comment in her Rust tutorial https://rust-unofficial.github.io/too-many-lists/ about failing to kill LinkedList. One philosophy (and the one Rust chose) for a stdlib is that this is only where things should live when they're so commonly needed that essentially everybody needs them either directly or to talk about. So, HashTable is needed by so much otherwise unrelated software that qualifies, BloomFilter, while it's real useful for some people, not so much. Aria cleaned out Rust's set of standard library containers before Rust 1.0, trying to keep only those most people would need. LinkedList isn't a good general purpose data structure, but, it was too popular and Aria was not able to remove it.
Having multiple hash tables feels like a win (they're optimized for different purposes) but may cost too much in terms of the necessary testing to ensure they all hit the quality you want.
-
Was Rust Worth It?
> Cyclic references can be dealt with runtime safety checks too - like Rc and Weak.
Indeed. Starting out with code sprinkled with Rc, Weak, RefCell, etc is perfectly fine and performance will probably not be worse than in any other safe languages. And if you do this, Rust is pretty close to those languages in ease of use for what are otherwise complex topics in Rust.
A good reference for different approaches is Learn Rust With Entirely Too Many Linked Lists https://rust-unofficial.github.io/too-many-lists/
- What are some of projects to start with for a beginner in rust but experienced in programming (ex: C++, Go, python) ?
-
How to start learning a systems language
Second, once you've finished something introductory like The Book, read Learning Rust With Entirely Too Many Linked Lists. It really helped me to understand what ownership and borrowing actually mean in practical terms. If you don't mind paying for learning materials, a lot of people recommend Programming Rust, Second Edition by Blandy, Orendorff, and Tindall as either a complement, follow-up, or alternative to The Book.
- My team might work with Rust! But I need good article recommendations
-
Conversion?
Learning Rust With Entirely Too Many Linked Lists which highlights a lot of the differences with how you need to structure your code in Rust compared to other languages.
What are some alternatives?
LeetCode - This is my LeetCode solutions for all 2000+ problems, mainly written in C++ or Python.
rust - Empowering everyone to build reliable and efficient software.
aoc - Advent of Code solutions
Rustlings - :crab: Small exercises to get you used to reading and writing Rust code!
online-judge - A modern open-source online judge and contest platform system.
book - The Rust Programming Language
Exercism - Scala Exercises - Crowd-sourced code mentorship. Practice having thoughtful conversations about code.
CppCoreGuidelines - The C++ Core Guidelines are a set of tried-and-true guidelines, rules, and best practices about coding in C++
codewars.com - Issue tracker for Codewars
easy_rust - Rust explained using easy English
materials - Bonus materials, exercises, and example projects for our Python tutorials
x11rb - X11 bindings for the rust programming language, similar to xcb being the X11 C bindings