|
|
|
|
|
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%. |
|
https://github.com/melling/ErgonomicNotes/blob/master/progra...