HNHacker News
TopNewBestAskShowJobs

jesusprubio

30 karma · joined May 26, 2019

submissionscomments
jesusprubio··on Show HN: Rust Library to check your Internet connectivity
Thank you for the feedback. It's only my first crate I wrote to learn about the environment. It emulates more or less this one in Node.js a lot of people uses: https://github.com/sindresorhus/is-online

I wanted to implement it in this way. But I'm waiting for async/await, it should be trivial with a map function or something similar. But now it already tries a fallback connection if the first one fails.

Good point about the countries, I need to add an issue to cover it.

jesusprubio··on Show HN: Rust Library to check your Internet connectivity
Launching a distributed attack by publishing a crate which makes one request? XD

You can relax, I know how they work. My final year project was about DoS. I would send you the link but it's Spanish.

But I can say you I've written a tool to implement this vector (among others) against VoIP services and it was presented even at the BlackHat conference.

jesusprubio··on Show HN: Rust Library to check your Internet connectivity
BTW, there're parts of DNS over TCP.
jesusprubio··on Show HN: Rust Library to check your Internet connectivity
Thank you! Very interesting thoughts, adding them to the repo here:https://github.com/jesusprubio/online/issues/7

Please feel free to contribute ;).

jesusprubio··on Show HN: Rust Library to check your Internet connectivity
Agree, answered in other comments but the idea is I truly believe in this micro modules way of building things. If it reduces complexity it's welcome. :)
jesusprubio··on Show HN: Rust Library to check your Internet connectivity
It's only my first crate I made to learn about the environment.

But I truly believe in this micro modules way of building things. If it reduces complexity it's welcome. :)

jesusprubio··on Show HN: Leg – Simple, elegant logging for Rust
About the first page of HN I agree, it's crazy xD. I wrote it as my second crate to learn about the environment.

But I truly believe in this micro modules way of building things. If it reduces complexity it's welcome. :)

jesusprubio··on Show HN: Rust Library to check your Internet connectivity
Obviously, you're right. And I can imagine any developer can imagine the same thing :).

But I couldn't find a better way to check if I am online than making a request to any server. In fact, I'm using two over different protocols just in case.

jesusprubio··on Show HN: Rust Library to check your Internet connectivity
About the option to pass other services I agree, answered here: https://news.ycombinator.com/item?id=20028483

About DoS attack, I think you need to review how those work, the library is not implementing amplification or something similar.

jesusprubio··on Show HN: Rust Library to check your Internet connectivity
Couldn't agree more, thank you! :)
jesusprubio··on Show HN: Rust Library to check your Internet connectivity
This why we're called engineers, we put pieces together.

So, your solution to "left-pad" is to write all your own code? xD. I think you need to review what was the problem there.

About the support to different services, those are the ones I use in my applications. But you are right, it would be a nice feature. PR's are welcome by the way ;).

The same about IPv6 support, this is an important feature.

Added both as issues: - https://github.com/jesusprubio/online/issues/5 - https://github.com/jesusprubio/online/issues/6

jesusprubio··on Show HN: Leg – Simple, elegant logging for Rust
An open minded in the forum? I can't believe.

Thank you! :)

jesusprubio··on Show HN: Leg – Simple, elegant logging for Rust
The third one is to use `print!` instead of `println!` to keep the cursor in the same line.

Thank you for the feedback!

jesusprubio··on Show HN: Leg – Simple, elegant logging for Rust
Please, see this response: https://news.ycombinator.com/item?id=20028428

Thank you for the feedback.

Thinking in a CLI, do you think the timestamp is important? I also had this doubt, but it only bothers me.

jesusprubio··on Show HN: Leg – Simple, elegant logging for Rust
Please, see this response: https://news.ycombinator.com/item?id=20028428

Thank you for the feedback.

jesusprubio··on Show HN: Leg – Simple, elegant logging for Rust
You're right, being discussed in other places right now. Finally, changing the description to clarify that the goal is to be used in CLIs, not as a logger.

I prefer to keep lower complexity and there are some crates that cover that case better.

Thank you :).