Hacker News new | ask | show | jobs
by blakewatson 2783 days ago
My struggle is typing. I use an onscreen keyboard (https://www.blakewatson.com/journal/writing-and-coding-with-...), which I have heavily customized for web development.

I would appreciate terseness. For example, I love how in JS, I can do this:

``` var cat = whichCat(); var catPosts = posts.filter(post => post.cat === cat); ```

Whereas in PHP, I have to do this:

``` $cat = whichCat(); $catPosts = array_filter($posts, function($post) use ($cat) { return $post->cat === $cat; }); ```

So much extra typing.

DISCLAIMER: didn’t test this code so chance of typo is 99%.

3 comments

Have you had any luck with programming by voice?

https://github.com/melling/ErgonomicNotes/blob/master/progra...

Out of curiosity, how long did it take you to type this comment?
It didn’t capture my line breaks but hopefully you get it.