3 ms·
This is nothing, I've seen some pretty substantial JS apps that are only one line.
by superswordfish 10y ago
This is nothing, I've seen some pretty substantial JS apps that are only one line.
- spinningarrow 10y agoCare to share any examples?
- deleted 10y ago[deleted]
- quantumtremor 10y agohttps://fb.me/react-15.2.0.min.js https://fb.me/react-15.2.0.min.js
- colejohnson66 10y agoWell, you're technically correct, but minified JS is kindof cheating, right? I mean, I've written multi megabyte C# programs that I could minify to just a single line, but it wouldn't be right.
- nathancahill 10y agoI think that's their point.
- adrusi 10y agoThis code neither does anything (it's a library) nor does it fit the criteria for "LOC" given in the article: minified code formatted into ≤82 characters per line.
- pablovidal85 10y agohttp://xem.github.io/miniCodeEditor http://xem.github.io/miniCodeEditor
- taneq 10y agoIt's true that there are impressive one-line JS apps. That doesn't mean that this is nothing.
- toomim 10y agoAh, I sense sarcasm.
- ben_jones 10y agoOn the one hand you're right, size can be of arbitrary value. Saying "No external libs!" and then using (presumably) several parts of the standard lib kinda cancels each other out. But it seems like a great language for making GUIs (possibly), and this seems an excellent demonstration of that, so it has plenty of merit. I do relate to the over use of "n in x LOC!" posts. Like we get it list comprehensions are cool.
- draegtun 10y agoNB. There's nothing stopping this Red code being just one line. All the newlines are for readability only :)