Re:Ask HN: How should a programming language accommodate dis...
by melling on Friday November 09, 2018 @11:46AM
(#18415758)
Have you had any luck with programming by voice?
https://github.com/melling/ErgonomicNotes/blob/master/progra...
Re:Ask HN: How should a programming language accommodate dis...
by amhokies on Friday November 09, 2018 @11:27AM
(#18415585)
Out of curiosity, how long did it take you to type this comment?
Re:Ask HN: How should a programming language accommodate dis...
by blakewatson on Friday November 09, 2018 @11:15AM
(#18415493)
It didn’t capture my line breaks but hopefully you get it.
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%.