News for hackers. Stuff that matters.
Re:Breakout in 30 lines of JavaScript by chc on Monday November 18, 2013 @04:31PM (#6757203)
My problem (and I think a lot of other people's) is not with the arbitrariness of lines so much as the fact that you can run a longer program through a very dumb minifier and get a "short" program just by sacrificing readability. It's still very much the same program; we're just rewarding people for making it harder for us to read. This problem isn't solved by switching the requirement to bytes. I would sooner accept a token limit than a byte limit, because it's harder to elide tokens to the point of unreadability in most languages.
Re:Breakout in 30 lines of JavaScript by etler on Monday November 18, 2013 @05:40PM (#6757747)
I think the fairest way to do it and keep readability is to have the minified code be the byte count and also provide the unminified version as well.