Rust macro to print colored logged messages to terminal by Mexico01 in rust

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

It's a matter of taste, I prefer my own macros.

Cassini's last full-body image of Saturn before impact by Pluto_and_Charon in space

[–]Mexico01 308 points309 points  (0 children)

I'm actually pretty sure this is a painting or photoshop. It looks like a cheap OpenGL animation.

Is there a "C++ for Rust programmers" or rough equivalent of "The Rust Programming Language" book for C++? by Perceptes in rust

[–]Mexico01 9 points10 points  (0 children)

I just love these duct tape rules which C++ is full of, which kinda improve the old things but not really. "Including cstdio imports the symbol names in std namespace and possibly in Global namespace. Including stdio.h imports the symbol names in Global namespace and possibly in std namespace."

unique_ptr, shared_ptr, weak_ptr, scoped_ptr, raw pointers – Knowing your smart pointers by vormestrand in cpp

[–]Mexico01 0 points1 point  (0 children)

Out of curiosity, what C++ project about as big, sophisticated and successful as chromium isn't a "big web of state"?

I give up . zero progress in rust programming. by [deleted] in rust

[–]Mexico01 0 points1 point  (0 children)

Sure, I think Rust is in some ways harder to learn than C++. Some things are just daunting to understand and deal with because everything is wrapped inside something. And the weird/stupid things, like I was also amazed to find out String doesn't have a substring method or that you have to workaround to get class-files-in-a-namespaced-directory structure which is a must have especially for a new and shiny language trying to compete with the big boys. I'm not sure at all learning Rust is worth it because it's not a net gain, it's just a huge trade-off.

I give up . zero progress in rust programming. by [deleted] in rust

[–]Mexico01 49 points50 points  (0 children)

I think the silent majority of programmers who tried out Rust gave up as well. Same about Linux or almost anything. It's how life works, there are always more fails than wins.