HNHacker News
TopNewBestAskShowJobs

anon_d

256 karma · joined June 28, 2010

submissionscomments
anon_d··on Programming Languages Suck at UX
alt-codes for unicode characters

Just use rfc1345 digraphs. In vim, do :set dg to enable, then just type <(backspace)=. Easy. Emacs also supports this.

anon_d··on John McCarthy Has Died
((will-be (dearly missed)) he)

FTFY

anon_d··on Finally, a Markdown editor for Windows
notepad
anon_d··on David Pogue: Dropbox Will Simplify Your Life
All these systems are doing it wrong. I don't want online backups, I want an infinite, encrypted, online filesystem. I should be able to mount it and treat it like any other hard disk. The local disk should just be used as a huge cache. I can't find a service that does this. Why the hell not?
anon_d··on Size is the best predictor of code quality
No no no. My logic is this: Take tight, readable code with short names a replace them with long names, and you'll have worse code. The converse isn't true because complex (bad) codes are more readable with long variable names.

Complexity -> Code Size Code Size -> Long Variable names (win for big codes) Complexity is bad

Therefore long variable names are a symptom of a problem, but not the problem themselves. Long variable names aren't bad, but they are still a good predictor of badness. Since size metrics are meant to predict badness, long identifiers should increase size metrics.

anon_d··on Size is the best predictor of code quality
This metric relies on the assumption that people are trying to produce readable code. IMHO long variable names are much more helpful in complex codes than simple ones.
anon_d··on Size is the best predictor of code quality
I never understood the gzip one. Repetitive boilerplate is bad; why hide it?
anon_d··on Size is the best predictor of code quality
I actually think raw byte-count is a pretty good metric. Documentation size and variable name length are also symptoms of complexity. Specifically I think wc -c $(find -type f) (how many total bytes) and find -type f | wc -c (how many files and directories) make good metrics. Obviously you need to filter out data files and such.

This has some problems (e.g. spaces vs. tabs, utf8, etc.), but all of these size metrics will be pretty loose.

anon_d··on Why ML/OCaml are good for writing compilers
I've written several (toy) compilers in both Lisp and Standard ML. I completely agree with the statement. Mostly, algebraic data types are a huge win for representing expression trees.
anon_d··on Joel Spolsky Launches Trello - Organize Anything Together
Too complicated; just use etherpad.
anon_d··on WebODF - Render office documents in a browser
shudder
anon_d··on Functional Programming Doesn't Work (and what to do about it)
s/use/using/. I hate not being able to edit my comments.
anon_d··on Functional Programming Doesn't Work (and what to do about it)
Could people please stop use "Functional Programming" as a synonym for "Pure Functional Programming"? The author uses them interchangeably even though his arguments do not apply to the impure style.
anon_d··on Plan9 has been forked: 9front
rc solves problems with sh by replacing annoying/problematic features. bash adds the same features, but keeps all the problems with sh. Read the "Design Principles" section for specific examples.
anon_d··on Functional languages will rule (but not this year)
Looking at Alice ML which has significantly more features than ...

FTFY

My favorite thing about SML is that it only has known-good features.

anon_d··on Yet another AWK competitor - C++
[...] 1 sec [...]. Good enough for command line tool [...]

lol

anon_d··on First draft of R7RS (Scheme) small language available
The case-folding behavior of the reader can now be explicitly controlled.

Meh.

Module System

Is there a discussion of this somewhere? Why this style of module system?

anon_d··on First draft of R7RS (Scheme) small language available
Once you add exceptions, that goes away.

Not really. Exceptions are easy to build on top of continuations, which are already part of R5RS.

anon_d··on C Craft: C is the desert island language.
It's silly to expect to be able to understand text in a foreign language. If you want to read APL, learn APL; It's a great language.
anon_d··on C Craft: C is the desert island language.
Not strictly true, it is quite possible to statically resolve many uses of function pointers.
anon_d··on C Craft: C is the desert island language.
GObject and glib in general aren't an improvement over anything, and both are largely shunned by the c-using community.
anon_d··on Why LaTeX is Superior to Office
Everyone here is assuming that Word is easier to learn than LaTeX, but, IMHO, people are misinterpreting familiarity with intuitiveness. Word has a very steep learning curve that people don't see because everyone they know has already learned it. I've mostly managed to avoid using word processors for nearly a decade. I've recently tried to do some things using Word, and I found it to be incredibly difficult and frustrating. I've seen people with no experience using computers have similar experiences.
anon_d··on Will Rubinius be an acceptable Lisp?
None of the Lisp OO systems make objects feel second-class.
anon_d··on Will Rubinius be an acceptable Lisp?

    - Take a simple Lisp language.
    - Remove macros, s-expression.
    - Add a bunch of shit that could be trivially added if you still had macros.
anon_d··on Don't waste your time by cd-ing in the terminal
Annoying special cases:

    $ cd /
    $ nm=/foo
    $ ls | grep nm
    $ cd nm
    $ pwd
    /foo
    $ cd ~
    $ ls | grep nm
    nm
    $ cd nm
    $ pwd
    ~/nm
    $ echo FFFFFUUUUUUUUU
Inflexible:

    $ cd nm/jan/img
    cd: No such director nm/jan/img
    $ echo SHIT
    SHIT
    $ cd $nm/jan/img
Worse, It's nonstandard and only saves you one chracter.
anon_d··on Don't waste your time by cd-ing in the terminal
Why not just:

    echo "export nm=`pwd`/blog"' >> ~/.profile
    . ~/.profile
    cd $nm
There's no need for magic when you know how to shell.
anon_d··on Ask HN: Use Vim? What Feature "sold"you?
I use Vi because it decreases the learning curve for new languages. No new IDE; no new set of emacs key-chords and mode-tricks. I can edit very efficiently in Vi, and all of my editing tricks/habbits apply to all languages.

Technically I use Vim, but a lot of Vim features violate my "no language specific features" rule. So I usually restrict myself to Vi features.

anon_d··on One with Vim
After I swiched to vi, I stopped feeling the need to work with multiple files; Just pop in and out of the shell.
anon_d··on One with Vim
Visual Studio which has good 'discoverability'.

Not my experience at all. It's a sea of confusion and pain.

anon_d··on Common Lisp is not secretly Scheme with bad syntax
Racket is not a scheme.
← PreviousPage 4 of 5Next →