Earlier quoted context omitted.
This just can't be your answer to everything... the article clearly stated that they're developing a client application for browsers. Rust advocates like yourself are really doing more harm than good by ignoring real world constraints.
You can use Rust to develop client application for browsers. Check out dioxus.
Property-Based Testing Caught a Security Bug I Never Would Have Found
21–30 of 40 posts
Re: Property-Based Testing Caught a Security Bug I Never Would Have Found
#22Earlier quoted context omitted.
You can use Rust to develop client application for browsers. Check out dioxus.
Rust is an unergonomic language that slows development in the general case (because it has lots of arcane syntax and rules, and people generally don't know it). Suggesting it as the "obvious" choice ignores the tradeoffs that come with adopting it for a project.
Re: Property-Based Testing Caught a Security Bug I Never Would Have Found
#23Re: Property-Based Testing Caught a Security Bug I Never Would Have Found
#24> We write unit tests for the happy path, maybe a few edge cases we can imagine, but what about the inputs we'd never consider? Many times we assume that LLMs are handling these scenarios by default, Do we?
Re: Property-Based Testing Caught a Security Bug I Never Would Have Found
#25TL;DR: obj[key] with user-controlled key == "__proto__" is a gift that keeps on giving; buy our AI tool that will write subtle vulnerabilities like that which you yourself won’t catch in review but then it will also write some property-based tests that maybe will
Re: Property-Based Testing Caught a Security Bug I Never Would Have Found
#26This kind of bug would never have happened if you used a proper programming language like Rust.
This just can't be your answer to everything... the article clearly stated that they're developing a client application for browsers. Rust advocates like yourself are really doing more harm than good by ignoring real world constraints.
Re: Property-Based Testing Caught a Security Bug I Never Would Have Found
#27Earlier quoted context omitted.
Rust is an unergonomic language that slows development in the general case (because it has lots of arcane syntax and rules, and people generally don't know it). Suggesting it as the "obvious" choice ignores the tradeoffs that come with adopting it for a project.
You can just hire people who know Rust. One Rust developer would likely end up more productive than ten Cursor baby sitters in the long run, and you would actually get a high quality app.
Re: Property-Based Testing Caught a Security Bug I Never Would Have Found
#28Earlier quoted context omitted.
This just can't be your answer to everything... the article clearly stated that they're developing a client application for browsers. Rust advocates like yourself are really doing more harm than good by ignoring real world constraints.
To be fair, this particular issue wouldn't have happened in C, Python, Forth, Zig, or a host of other languages. String-based weirdness is something of a JS issue.
Re: Property-Based Testing Caught a Security Bug I Never Would Have Found
#29Earlier quoted context omitted.
You can just hire people who know Rust. One Rust developer would likely end up more productive than ten Cursor baby sitters in the long run, and you would actually get a high quality app.
This is like some kind of psy-op to get people to hate rust.
Re: Property-Based Testing Caught a Security Bug I Never Would Have Found
#30> We write unit tests for the happy path, maybe a few edge cases we can imagine, but what about the inputs we'd never consider? Many times we assume that LLMs are handling these scenarios by default, Do we?
The original claim for TDD is your write tests for all your edge cases. It doesn't matter about inputs you didn't consider because they are covered in the edge. If you can only accept inputs from 2-7 (inclusive) you check 1,2,7,8 - if those pass you assume the rest work.