News for hackers. Stuff that matters.

worldeva

Re:Facebook plans to change its name as part of company rebrand on Wednesday October 20, 2021 @01:54PM (#28933716)
If we're being pedantic, I'll one up you: The removal being arbitrary does not require that the reason is arbitrary; see: selective enforcement. :p
Sounds like you're looking for `find` or `fd`

https://man7.org/linux/man-pages/man1/find.1.html (-mindepth -maxdepth can also be added to make it stricter)

  find some/location -type d -wholename '*/January/Photos'
https://github.com/sharkdp/fd

  fd -p '*/January/Photos' some/location
Re:Microsoft Is Hilariously Misinformed with Rust on Sunday August 08, 2021 @03:16PM (#28109304)
For anyone that does know Rust, stop here, its more fun finding them yourself ;p

> crates.io - The Rust I/O library.

This is the first time I've heard that crates.io was a lib.

> structopt - A third-party crate that provides an easy way to define a basic struct.

Apparently... you can't define `struct`s in Rust? Also, the first line of the linked page is:

"Parse command line arguments by defining a struct. It combines clap with custom derive."

Come on, you could've spent the effort to at least read the description of a library you're linking. A copy and paste would've been more correct!

> The playground is an IDE for Rust development

The (rust playground)[play.rust-lang.org] is apparently a IDE now? ~~Don't I wish.~~

> The Rust language requires explicit declarations for types and definitions for actions. __The requirements are more rigorous than C++__, and can involve significant more time and effort to implement.

This is the first time that I found out that `struct`s were somehow more complex than... `struct`s.

> Rust is known to leak memory

What.

The quiz also seems to think that Clippy is somehow a playground specific feature.

Ask HN: How to Get into Category Theory?

I've always been interested in "Pure Maths" and Category Theory, because I'd like to understand the mathematics/logic behind programming more deeply and rigorously (also, just the concept itself is cool).However, I don't have a very advanced mathematical background (The highest that I've learned is Calculus 2), so I don't know what the "pathway" towards Category Theory is-What are the...

( Read More... | 3 comments | 5 points | on HN )
I'm a moderator of a fairly large, nontechnical subreddit-

Reddit allows you to see your subreddit's statstistics, and the last time I checked, around 1/3 of our traffic is from old reddit. So definitely not just a small minority.

(Then again, it has been around a year since I checked, so perhaps the numbers have shifted.)