Re:Open letter to all developers with blogs
by andyfleming on Wednesday October 09, 2019 @03:23PM
(#21206924)
And if you have line numbers or a shell prompt prefix, make sure they aren’t included when the text is copied!
I'd like to add that snippets of code presented as plain text should not be auto selected when someone clicks on them or what not, but should give the user the OPTION to copy the entire snippet as a separate button.
We don't always want to copy everything, we sometimes want to test out specific lines or what not. Don't mess around with how the select option works.
Re:Open letter to all developers with blogs
by gist on Wednesday October 09, 2019 @03:48PM
(#21207182)
> No screenshots of code.
Not that I disagree but isn't there a security risk with code that can be cut and pasted?
Re:Open letter to all developers with blogs
by mixedCase on Wednesday October 09, 2019 @03:50PM
(#21207206)
> Not that I disagree but isn't there a security risk with code that can be cut and pasted?
Yes if the blog author is malicious and the copy-paster inattentive. Don't even need an inattentive user if it's a command pasted in a terminal that will interpret the newline as <enter>.
Re:Open letter to all developers with blogs
by dragonwriter on Wednesday October 09, 2019 @08:33PM
(#21209726)
No. Not to the poster. And not any different to the recipient than code that can be retyped, downloaded, or reproduced by any other mechanism besides copy and paste.
Re:Open letter to all developers with blogs
by sergiotapia on Wednesday October 09, 2019 @11:20PM
(#21210561)
Who cares - is it your problem?
No screenshots of code. I don't care if it's not syntax-highlighted, but I would like it to be in plain text, hopefully fixed-width.
If you're going to reference another blog, please include the relevant information in your own blog before the linked site goes down and I have to hope that site's owner didn't block archive.org from indexing it.
I'd like comments enabled, but I know some people have a hard-line stance against it (I was once told, "oh, you're thinking of a forum" when I suggested a developer add comments to their blog). Sometimes people smarter than me comment on my blog, and that adds value to my post when it has incomplete or incorrect information.