News for hackers. Stuff that matters.
Re:Show HN: Really fast webserver for kdb by bob1122 on Tuesday December 22, 2015 @02:45PM (#10779872)
Did you intentionally obfuscate your code?
Re:Show HN: Really fast webserver for kdb by geocar on Wednesday December 23, 2015 @12:11PM (#10784297)
You may find this difficult to believe, but this approach helps me find bugs and repetition.

I have noticed every page I scroll causes a comprehensive loss of around 90%, so in reading something that is 10 pagefuls long, I might only be able to produce a tiny part of the program.

Your milage may vary.

I find not scrolling, and just moving my eyes, I rapidly absorb the program, and I find most bugs just by reading the code. This practice is absolutely impossible for me if I have to scroll very far and made difficult by scrolling at all.

I do not know how to do this except to write horizontally.

Re:Show HN: Really fast webserver for kdb by phpnode on Tuesday December 22, 2015 @02:51PM (#10779930)
It's idiomatic style in the K community, e.g. here's a random source file from kdb itself - http://code.kx.com/wsvn/code/kx/kdb%2B/c/c/odbc.c

Some members of that community prefer this style because they find it more readable.

Re:Show HN: Really fast webserver for kdb by the-tomster on Tuesday December 22, 2015 @03:51PM (#10780322)
Some people like to have big monitors so that they can fit more code on their screen at once. Instead of getting a bigger screen why not shrink the code?

As a side project I implemented a small text editor in this style. I had a working text editor with the ability to load a file, insert and delete text, scroll around a large file, and save changes. It fit within about 100 lines of concise (but I wouldn't say obfuscated) C.

In the end I decided to reformat it and use my usual style before implementing more features. But it was a good experiment and I now understand the appeal of the ultra-condensed style you see in J, K, some Forth, and some Perl code.