[-] FizzyOrange@programming.dev 17 points 2 weeks ago

Totally depends what you end up working on as a programmer. If it's web apps, you'll be totally fine. All you need is basic arithmetic. Writing a game engine? You'll need to know some basic to moderate matrix maths...

If you're doing formal verification using unbounded model checking... good fucking luck.

On average I would say most programming tasks need very little maths. If you can add and multiply you'll be fine. Definitely sounds like you'll be ok.

[-] FizzyOrange@programming.dev 17 points 1 month ago

Unless the binary size difference is insane, who would say "oh well we were going to pick the library that wasn't riddled with security issues but we decided to save 2MB instead, hope that makes you feel better about your $12m cybersecurity fine!".

[-] FizzyOrange@programming.dev 19 points 1 month ago

The C++ standards committee don't see memory safety or UB as a problem. If they did they wouldn't keep introducing new footguns, e.g. forgetting return_void() in a coroutine. They still think everyone should just learn the entire C++ spec and not make mistakes.

[-] FizzyOrange@programming.dev 18 points 1 month ago

Wow, they (apparently) finally made the REPL not suck! I always thought it was weird how shit it was given that it's one of the big reasons Python has become as popular as it is.

Maybe in another 20 years they can make the package tooling not suck too.

[-] FizzyOrange@programming.dev 17 points 1 month ago

Its definitely best to try and avoid raw pointers, but even if you try really hard I found it's not really possible to get a Rust-like experience with no UB.

Even something as simple as std::optional - you can easily forget to check it has a value and then boom, UB.

The C++ committee still have the attitude that programmers are capable of avoiding UB if they simply document it, and therefore they can omit all sanity checks. std::optional could easily have thrown an exception rather than UB but they think programmers are perfect and will never make that mistake. There are similar wild decisions with more recent features like coroutines.

They somehow haven't even learnt the very old lesson "safe by default".

If I wanted memory unsafety I think I would consider Zig instead of C++ at this point.

[-] FizzyOrange@programming.dev 16 points 2 months ago

I use this big expensive simulator called Questa, and if there's an error during the simulation it prints Errors: 1, Warnings: 0 and then exits with EXIT_SUCCESS (0)! I tried to convince them that this is wrong but they're like "but it successfully simulated the error". 🤦🏻‍♂️

We end up parsing the output which is very dumb but also seems to be industry standard in the silicon industry unfortunately (hardware people are not very good at software engineering).

[-] FizzyOrange@programming.dev 18 points 2 months ago

valid criticism of his own defense

To be clear that post makes a valid point (don't defend people just because they seem nice or dedicated or whatever), but it isn't a valid criticism of Chris's post because he didn't do that.

He did say Tim is nice and dedicated etc. etc. but he also went through the specific crimes that Tim was supposed to have committed and refuted them.

I read a load of Tim's comments and this was definitely a case of the CoC people getting annoyed with someone who disagreed with them and wouldn't give up. There wasn't anything remotely ban-worthy.

[-] FizzyOrange@programming.dev 16 points 6 months ago

Yeah I kind of agree but I also think when it gets to that point we'll have much bigger problems than programmers losing their jobs. Like, most of society losing their jobs.

[-] FizzyOrange@programming.dev 18 points 6 months ago

This sounds like a great improvement. I have read the sudo source code and anyone that seriously thinks there's no problem with it being SUID is crazy.

That said the whole security model of sudo makes no sense. As soon as you can access a sudoers' account you can trivially steal their password by MitMing sudo and waiting.

[-] FizzyOrange@programming.dev 17 points 7 months ago

Yeah IIRC it deletes them, which is as mad as you would expect. Maybe they've fixed that since I used it last which was some years ago.

[-] FizzyOrange@programming.dev 17 points 7 months ago

Are there any videos of this sort of editing, because honestly every single person I've watched use Vim has just been like "oh wait that's the wrong thing.. hold on." constantly. You're going to say "they aren't competent" but that's kind of the point - approximately nobody is competent in Vim because it isn't worth learning.

Even so, I'd be interested if there are any videos of pros doing real editing (not "look what I can do") on YouTube. Anyone know of any?

[-] FizzyOrange@programming.dev 19 points 7 months ago

Yeah this is one of the main reasons why Stackoverflow's question closing policies are bullshit. We're going to close the question so nobody can answer it... but they can still upvote it and it will still be ranked highly on Google!

Bunch of idiots.

You know the SO Devs actually tried to improve this a while ago - I think you would be able to reopen your question once or something. Of course the power-hungry mods hated that idea and the abandoned it.

At this point it's unfixable. They depend on their unpaid mods and they've already attracted the sort of people you absolutely don't want to moderate a site.

The only hack I've found is that if your question gets downvoted/closed you are allowed to delete it, wait half an hour and ask it again. Much better odds of success than editing the question.

view more: ‹ prev next ›

FizzyOrange

joined 1 year ago