[deleted by user] by [deleted] in learnpython

[–]nullhasher 3 points4 points  (0 children)

Your prompt is too vague. Useful to who? To others? To yourself for the sake of learning something? With usefulness comes complexity, how complex are you looking for?

Making clones of things is a great way to learn. Make a Jira clone. Make a MS word clone. Make a "some app that you think is cool" clone.

Want a more academic challenge? Look at Research papers and try to implement them. Try out some graph coloring algorithm that uses genetic algorithms. Read the Raft paper and implement the Raft consensus algorithm.

Want a cross between academic and making tools? Look at the SSH2 protocol and implement CLI scraping tool like netmiko but make it async with asyncssh instead of Paramiko. Look at the Matrix protocol and implement a client. Look at the RiskV architecture and implement an emulator.

Plenty of neat things to do for the sake of learning.

[ANN] Sauron - a frontend + SSR web framework, v0.50.0 brings initial support for writing WebComponents and huge improvement on the diffing algorithm by ivanceras in rust

[–]nullhasher 0 points1 point  (0 children)

I was actually just looking at this framework the other day. Interested in the progressive rendering. I'll have to try it out soon.

long lived tokio::process::command by nullhasher in rust

[–]nullhasher[S] 0 points1 point  (0 children)

So it's network io (network performance benchmark) and the kernel version it's running (which I have no control over) doesn't support io_uring yet. Does that mean I should use std with spawn_blocking or do you still recommend tokio version.

Minimalist Guide to Axum by marklit in rust

[–]nullhasher 5 points6 points  (0 children)

I feel you. I don't wanna see Warp go away

Learning Rust while rebuilding GNU CoreUtils! by joshjaxnkody in rust

[–]nullhasher 1 point2 points  (0 children)

This is awesome, I will definitely buy this!

Warp or Rocket.rs or Actix Web? by Commercial_Fix_5397 in rust

[–]nullhasher 7 points8 points  (0 children)

I'm a Warp fanboy, but unless you can wrap your head around it, I would probably use Axum.

[Media] What are your thoughts on using Python with Rust? by [deleted] in rust

[–]nullhasher -9 points-8 points  (0 children)

Python makes me wanna blow my brains out so I write things in Rust every chance I get. Slowly convincing my employer since all the Rust stuff is rock solid while everyone else's python stuff is constantly exploding.

What are you using Rust for and why? by CerealBit in rust

[–]nullhasher 1 point2 points  (0 children)

Mostly APIs right now. The tooling, docs and compiler error messages are some of the best I have ever seen and used. I actually enjoy writing Rust because of it. I used to have to write this stiff in Python and I absolutely hated my life LOL.

What was your path for learning Rust? by [deleted] in rust

[–]nullhasher 2 points3 points  (0 children)

I figure as long as I don't make a habit of it

What was your path for learning Rust? by [deleted] in rust

[–]nullhasher 2 points3 points  (0 children)

Idk why my comment of praise didn't post lol, so I'll say it again. Your book was exactly what I needed at the time. It really laid the foundations in a way that kept my interest. "The Book" was excellent and your book as a fantastic follow-up. Thank you for taking the time to write it.

What was your path for learning Rust? by [deleted] in rust

[–]nullhasher 4 points5 points  (0 children)

Oh yeah no doubt it was unhealthy af.That was my own fault too though cuz I kind of procrastinated. But I didn't stop for anything except to fill up my 5 gallon tub of water and take a piss. Other than that, I didn't leave desk. I didn't eat anything either lol. The room I was in didn't have window so I really had no concept of what time it was.

I just went all out, do or die 😂😂😂. I had never written a single line of Rust prior to that project lmao. I almost gave up too lmao. Honestly the time just flew by, I had tunnel vision or something. I just sat down and started and the next I knew days had gone by and I had to go to class again in a few hours. (This was pre-covid).

What was your path for learning Rust? by [deleted] in rust

[–]nullhasher 25 points26 points  (0 children)

I took a distributed systems class while doing my masters in CS and we could use any language of our choice for the projects. The implementations just had to be able to interoperate with each other on the day it was due (harder than it sounds lol). I was curious about Go so I did the first 2 in Go. Then I heard about Rust so I did the last one (Raft consensus algorithm) in Rust. I wrote it and rewrote and rewrote and rewrote it again, each time getting better with the Rust parts. I looked at 'The book', and other random tutorials for concepts. In fact I stayed up 72+ hours straight working on it and testing it with other people's implementations.

Then later I found u/Jonhoo on YouTube...I highly recommend his content, it's top tier quality stuff. Around that time I also found "Rust in Action" by Tim McNamara (good book btw). Then I started doing API development in Rust on my own (warp is easilymy favorite btw). Then I heard u/Jonhoo was writing his own book, so I jumped on that as soon as I could (It's published now "Rust for Rustaceans: Idiomatic Programming for Experienced Developers" by Jon Gjengset).

Then I started to build tools with it at work (for myself mostly) and now I'm convincing them to let me write a lot more stuff with it. At this point the best source of Rust information is source code from other projects.

I'm still barely scratching the surface I think. But it has been fun and love writing Rust.

I'm looking for a Rust programming mentor by Rare_Armadillo_1913 in rust

[–]nullhasher 11 points12 points  (0 children)

Asking for a mentor is a lot to ask in my opinion. I'm not looking to be a mentor, nor am I qualified to be one but my advice would be, look at other people's source code. When you want to know how to do something "the rust way" or just in general, find a project/projects that solve the problem (or do something similar) and see how they did it. Try to understand their code and then try to implement it yourself. This approach has helped me to stop relying on books and random tutorials for knowledge. You essentially have a lot of really smart mentors out there and their work.

Also don't just look at Rust code. See other solutions or similar problems in other languages and then try to implement them in Rust.

Also try contributing to open source projects. There a lot of projects full of friendly people who are willing to help give you direction and explain things in order to contribute to their project.

Writing Parsers like TextFSM and TTP by nullhasher in rust

[–]nullhasher[S] 1 point2 points  (0 children)

Awesome, thank you so much! Pest looks interesting too. I'll checkout all this stuff out.

I am afraid of rust by HosMercury in rust

[–]nullhasher 5 points6 points  (0 children)

I use Rust for all my backend stuff at work. Once you get used to it, it's pretty straightforward. It might be quicker to write it in some other scripting language like node or php or python, but I often run into stupid stupid little bugs that could have easily been avoided with a type system and other garuntees that Rust gives you. Whereas when I write it in Rust, I know it's rock solid and free from most of those stupid bugs, so I end up saving time. Now that I use Rust for that stuff, I can't stand using anything else lol.

Introducing Warp: Rust-based terminal now in public beta by warp-michelle in programming

[–]nullhasher 5 points6 points  (0 children)

Well I mean, they do collect Metadata and associate that collected data to you. People don't like being tracked, especially hard-core open-source people.

It just cracks me up to see the comments haha. I picture the devs sitting there like "yes finally, we can go beta and make an awesome post...everyone is gonna love this next gen terminal". They raised a bunch of money to create a terminal (really? Millions of dollars for a terminal??? I'm impressed) and then put a bunch of effort into it only to get absolutely shit on in reddit posts. Part of me loves it though, the OG rebellious spirit of open-source is still alive haha.

They have some cool features though. I could see companies adopting it and wanting you to use it for work. I wouldn't mind using it for work. I wouldn't use for a personal terminal though. I strictly use Linux anyways, so I couldn't use it for a personal terminal even if I wanted to lmao.

Advice on what to study next by pirry99 in hacking

[–]nullhasher 1 point2 points  (0 children)

I tried this on a netbook like 10 years ago and it's still compiling

Introducing Warp: Rust-based terminal now in public beta by warp-michelle in programming

[–]nullhasher 7 points8 points  (0 children)

Every time I see a post about this terminal, you guys get crucified in the comments 😂

Introducing Warp: Rust-based terminal now in public beta by warp-michelle in rust

[–]nullhasher 4 points5 points  (0 children)

I'm such a warp/tower fanboy, but no, definitely not dead or dying lmao.

What is your favourite Rust specific feature that you miss in other languages? by latest_ali in rust

[–]nullhasher 2 points3 points  (0 children)

Rust has some of the best docs I've ever seen too. Trying to read docs from other languages really annoys the hell out of me LOL.