|
|
|
|
|
by donnachangstein
408 days ago
|
|
> I see he's also using fopen/fread/fclose rather than CreateFile/ReadFile/WriteFile/etc. It's a todo list, not a network service. So what if it's using unbounded strcpy's all over the place? It has basically no attack surface. He wrote it for himself, not for criticism from the HN hoi polloi. For once maybe take someone's work at face value instead of critiquing every mundane detail in order to feel like the smartest person in the room. Computers are tools to get stuff done. Sometimes those tools are not pretty. I place much of the criticism being levied here in the same category as the "we must rewrite 'ls' in Rust for security" nonsense that is regularly praised here. |
|
I didn't point that out so I could be the smartest person in the room and I certainly don't subscribe to the whole rewrite-the-world in rust.
The sheer amount of time I spent debugging problems caused by buffer overruns and other daft problems is immense. It's literal days of my life that could have been saved had safer APIs been created in the first place.
It's a cool toy program and I encourage the learning but maybe let's try and avoid unnecessary problems.