3 ms·
> people think they can do useful things with strings as a result Besides not "being proper" or whatever your argument boils down to, people (arguably) are doi
by capableweb 3y ago
> people think they can do useful things with strings as a result
Besides not "being proper" or whatever your argument boils down to, people (arguably) are doing useful things by just manipulating strings.
I'd argue most of the web is probably built with just strings and duct tape holding all the pieces together.
- jameshart 3y agoDoing useful things that are riddled with bugs and security holes and fail to handle people whose name is O’Reilly. It would be better if programming languages discouraged people away from those mistakes and prodded them towards the pit of success by making string concatenation harder and providing better tools for constructing grammatically sound structures.
- theamk 3y agoOr we can use type systems to automatically escape. No more XSS injections _and_ still as easy as string concatenation. Python's MarkupSafe (used in jinja) and go's html/template are good examples.
- jameshart 3y agoThat would be in the category of ‘better tools for making grammatical structures’.
- wombatpm 3y agoPeople with wrong names should be encouraged to change them to something correct.