rust-analyzer in VSCode will add parameter names (and compliler inferred types) in when displaying the source, without actually adding them to the file. I'm still on the fence about whether I hate that feature or not.
With Java on VScode, you can make it so these things (called "inlay hints" iirc) only show up when you hold ctrl/cmd + alt. I find that a much better option
There is no "::" for namespaces in JS, and I don't think it has named parameters either. Also, snake_case is unusual for JS code, it's camelCase by convention
Yes. But those a static methods. I have to use them string.IsNullOrEmpty(stringVariable). Instead I want stringVariable.IsNullOrEmpty(). I wish it is in BCL.
2
u/Daniikk1012 Jul 31 '26
What language is this? Looks like Rust, but Rust doesn't have named parameters IIRC
19
u/ArsenicPolaris Jul 30 '26
Hope he has also taken care of '' and other characters that can cause shenanigans.
Looks like Reddit didn't do that. I meant '\'
13
u/Confident-Ad5665 Jul 30 '26
You're hired!
This is the kind of developer we've been looking for.
5
u/SteveSteveCleveSteve Jul 30 '26
In C# we have a whole extra method for this, lol.
4
u/GoogleIsYourFrenemy Jul 31 '26
I'm tempted feed all inputs into a sacrificial sqlite query and then have it give an error message if it's a success SQL injection.
1
u/switch161 Aug 02 '26
Source