DEV Community

Discussion on: 1 line of code: How to truncate a string at word boundaries

Collapse
 
moopet profile image
Ben Sinclair

I'm going to suggest an 80-character limit on "one line" code samples, because otherwise I could minimise the code for Excel and call it a one-liner!

Collapse
 
lionelrowe profile image
lionel-rowe

I guess a reasonable interpretation of "one-liners" is anything you can reasonably do without semicolons or newlines.