Comment

Comment by blakewatson

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%.

parent blakewatson 8 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton