


Code: Select all
init=/sbin/openrc-init
-systemd -logind -elogind seatdI am NaN! I am a man!

Ouch. I read that and said to myself, wow that's old. Then I realized, me too.Irre wrote:I am very old (73). ...
a bowl of water is wet insideBoth of these languages are actually fairly popular among their users.
Do you know of any resources that address modern "best practices" that avoid the "bad parts" of the language? I only seem to come across them in bits and pieces, and I'd rather not learn it incorrectly. For a lot of it, I suppose a quick reference guide of "Do use / Don't use" and "Do / Don't do" would probably be fine. I need to get back to K&R.psycho wrote:learn C

MISRA-Cpjp wrote:Do you know of any resources that address modern "best practices" that avoid the "bad parts" of the language? I only seem to come across them in bits and pieces, and I'd rather not learn it incorrectly. For a lot of it, I suppose a quick reference guide of "Do use / Don't use" and "Do / Don't do" would probably be fine. I need to get back to K&R.psycho wrote:learn C
Yeah, I wasn't sure how to put it other than that. I'm referring to the parts that are known as "don't do" (incorrect use of scanf being the most obvious). I guess I should try to put together a list as I come across them. Also, I've read about some professors who teach Bad Things, so there's that (I can't recall specifics, but they fell into the category of the stuff I was hoping to find in a quick reference format).The Doctor wrote:The thing about best practices is I don't think any such thing exists. I've had several professors fundamentally disagree about what best practices are. It seems to me that the real best practices are to adopt a maintainable style for yourself and stick to it.
Just my 2 cents.
I can't take anything seriously that recommends that approach.curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
Seriously? For "Hello, world!"?Generating a new project
Let’s write a small application with our new Rust development environment. To start, we’ll use Cargo to make a new project for us. In your terminal of choice run:
cargo new hello-rust
This will generate a new directory called hello-rust with the following files:
Code: Select all
fn main() {
println!("hello world");
}Code: Select all
10 PRINT "HELLO WORLD"