Real talk.
My youngest brother just started college and is learning C as part of his programming class.
So far they’ve only taught him very 101 stuff like basic data types and variables declaration. But, out of curiosity and because his eager of knowledge, the guy already…
@ptr_to_joel
1. Create a tmux session on a server and open nvim on it.
2. Tell all your devs to ssh into that server and attach to that tmux session.
3. You’re welcome
Trying the 1 billion rows challenge in Rust.
It’s taking ~130 seconds so far using a single thread on a 2019 macbook pro.
0 deps. All custom code + std
I’ve been coding for more than 10 years now.
I’ve dealt with matrices a lot of times.
Still never know if it’s m[x][y] or m[y][x] without trying it out first.
My 2023 in a nutshell
- Stop smoking
- Started doing backend full time (almost) again.
- Kept improving rust skills.
- Learned OCaml (WIP)
- Got rejected by a FAANG company (but with a good feedback)
- Kids keep growing strong and healthy.
- Still in love with my beautiful…
🦀 Useful method: skip/skip_while
- Creates an iterator that skips some items.
- skip: Given `n`, skip at most `n` items.
- skip_while: Given a predicate, skips items till evaluates to false.
#rust
#rustlang
#programming
#usefulmethod
I think I defined my goals from now on (all Rust related):
- [ ] Master the lang as much as I can.
- [ ] Contribute to the project and/or ecosystem.
- [ ] Get a full-time Rust developer job
Wish me luck 😁
@anerdguynow
I do it when the thing becomes a pain point.
But I’ve seen the problem go beyond devs not creating them. They sometimes don’t even care about that stuff to the point of not using them to their advantage when someone else creates the script/tools.
I think I’m ready to do rust full time. Still a lot to learn but I’m sure I can do it. 💪
Let me know if you know about any open position.
And remember, 🔄 gives you exp points.
you may not like it but this is what a real builder looks like. In Rust, btw.
yeah yeah, boilerplate blah blah. easily fixed with a macro.
Notice there's no error handling at all, nor Option fields. They're not needed when implementing the typestate…
🦀 Useful method: chunks
- From a slice, returns an iterator that produces slices of `chunk_size` len that don't overlap
- Last chunk could be smaller than `chunk_size` depending on the initial slice len
- Panics if `chunk_size` is 0
#rust
#rustlang
#programming
#usefulmethod
@rustafariandev
Agree.
That’s why I hate the current discourse advocating for teaching high level languages, because the low-level ones make people quit.
Choosing Rust is not all about speed/performance. You also get:
- Super expressive type system.
- Superior error management.
- Awesome tooling
- Robust ecosystem
#rust
#rustlang
#programming
🦀 Useful method: enumerate
- Creates an iterator that counts each iteration.
- From an iterator that yields items A, enumerate produces a new one that yields (i, A) pairs, where i is the index and A the item.
#rust
#rustlang
#programming
#usefulmethod
@ml4funandprofit
@typecraft_dev
skill issue. I used Linux as my daily driver for 5 years and never had a problem that made me want to stop using it due to instability.
In fact, I'm just about to get back to it.
Lately I've been thinking about starting a twitch channel. Motivations?
- Build and learn in public.
- Connect with people with the same interests.
- Practice my English.
- Have fun.
What do you think? Would you watch it knowing I'll sometimes struggle with the language?
🦀 Useful method: zip
- Combine two iterators into an iterator of pairs.
- Zip will continue yielding items till one of the initial iterators yields None.
#rust
#rustlang
#programming
#usefulmethod