Live data from Hacker News

500 Lines or Less

github.com

21–30 of 70 posts

Re: 500 Lines or Less

#21

Is there a compiled version somewhere? I don't think I will be able to build this on my phone.

I was able to build the PDF on Fedora 23 [1]. Ended up with no front page but the content is there. Not sure if it's supposed to be like that or not.

I also attempted to build the ePub and HTML versions but that didn't work. Commented about this on issue #134 [2].

[1]: https://github.com/aosabook/500lines/files/288427/500L_pdf.z...

[2]: https://github.com/aosabook/500lines/issues/134

Re: 500 Lines or Less

#22
post #13

500 lines of what? 500 lines of APL / J / Q is enormous; 500 lines of Haskell / Scala / Ruby is quite a mouthful, 500 lines of Java or C is rather moderate, and 500 lines of assembly is precious little. Also, since a line of code can contain zero or more statements, something like cyclomatic complexity, or just statement count, could give a better measure. (Edited: fought autocorrect.)

What on earth do you think this is? It's not a research hypothesis. Nothing is being measured. It's a clever way to get people to show that ideas many people think are beyond their understanding can be illustrated in just a few lines of code.

'Cyclomatic Complexity of N or Less' would work against that goal as it says nothing about length and is hard to explain.

What a mindless criticism of a worthwhile project.

Re: 500 Lines or Less

#23
post #13

500 lines of what? 500 lines of APL / J / Q is enormous; 500 lines of Haskell / Scala / Ruby is quite a mouthful, 500 lines of Java or C is rather moderate, and 500 lines of assembly is precious little. Also, since a line of code can contain zero or more statements, something like cyclomatic complexity, or just statement count, could give a better measure. (Edited: fought autocorrect.)

What on earth do you think this is? It's not a research hypothesis. Nothing is being measured. It's a clever way to get people to show that ideas many people think are beyond their understanding can be illustrated in just a few lines of code. 'Cyclomatic Complexity of N or Less' would work against that goal as it says nothing about length and is hard to explain. What a mindless criticism of a worthwhile project.

I'm actually all for books like this.

Re: 500 Lines or Less

#24
post #17

Hi, I'm the editor of 500Lines. Thanks for posting this! A few notes: - Code golf was strictly discouraged throughout the review process. When authors were faced with implementing functionality poorly to fit more in, we generally cut scope instead. - 500 lines was selected as a limiting criteria because it is easy to specify and understand. You will see that the chapters written e.g. with Clojure do "more" (for some…

Will this ever be able as a git book?

Re: 500 Lines or Less

#28

Earlier quoted context omitted.

I couldn't build it on my laptop. I'd have to install 3.5Gb of Tex dependencies to do it so I'll pass.

Me, either. Tried on OSX. Thought I'd get away with installing ~ 0.5 Gb when I read up about everything, but still run into problems. This is a book people. I shouldn't really need to compile it; even if I absolutely must , it should be at least possible, if not fairly straightforward. Disappointing.

I was able to build on OS X with Fink's texlive. Output seems to be the same as the PDF already posted here (in a Dropbox link).

No joy on epub, mobi, or html.

Re: 500 Lines or Less

#29
post #17

Hi, I'm the editor of 500Lines. Thanks for posting this! A few notes: - Code golf was strictly discouraged throughout the review process. When authors were faced with implementing functionality poorly to fit more in, we generally cut scope instead. - 500 lines was selected as a limiting criteria because it is easy to specify and understand. You will see that the chapters written e.g. with Clojure do "more" (for some…

This book(and indeed the rest)is neat! Great work, looking forward to the finished copy.

Re: 500 Lines or Less

#30

> canonical problem in software engineering in at most 500 source lines of code I'll reserve judgement of the book for when its in a form I can easily read, but this seems to come up on the wrong side of the "less isn't always more" line. I can implement a lot of logic in 500 lines of code, but I won't be able to go back a month later and understand any of it, at least not without rebuilding the logic from scratch. A…

You probably misread the intent of the book editors and writers. As @debo_ wrote above: "Code golf was strictly discouraged throughout the review process. When authors were faced with implementing functionality poorly to fit more in, we generally cut scope instead."
Post reply on HN