Hacker Newsnew | past | comments | ask | show | jobs | submit | elzi's commentslogin

One thing micro does very well is scrolling like GUI editors. It doesn't move the cursor with the scroll, and it will 'snap' back to where the cursor was if you begin to type. Always hated how other terminal based editors move the active cursors down/up on scroll.


I know there's much bigger things in this release to be excited about, but I'm so happy they're allowing trailing commas in function args/params.


Curious why?

I get the usefulness for arrays and object declarations. Particular to have cleaner diffs. But why for function calls?


Prettifying long function signatures and calls. You can spread them across multiple lines with the same trailing comma syntax you might use with a multiline array or object literal.


> Particular to have cleaner diffs. But why for function calls?

Exactly the same reason :)


I suppose but that's usually an indication that an object would be more apt. If you have enough parameters that it needs to be wrapped, they're probably hard to track too.


Well no, since you can use object destructuring.

const fn = ( { arg1 = '', arg2 = [], arg3 = true } = {} ) => { }


But isn't this already valid with trailing commas?


One small benefit is that it's now easier to generate code.


I like it for `compose()` function calls. Changing the parameters and order is fairly common, so the trailing comma becomes convenient for moving and adding parameters.


Any example repos of this? This sounds fantastic.


Damn, this does look great. A lot of what it does can be solved by using `withRouter` from react-router, but I really like how they use `<Fragment />`


Aaaaaaaand revoked.


It's crazy to think I probably exercise way, way more restraint on clicking that kind of junk than most, and even I can recall a time in the past year I just couldn't help myself. They're so psychologically predatory.


That's the nature of a rant, no? It's not a persuasive argument, or an essay. It's the frustration felt in a moment lived.


Yes, the essay is a terrible format for capturing life moments. Poems are a forgotten tool from our past that I think work way better. The sentence-paragraph structure is a slave to the period. It leaves no space for attention. Very information heavy. Poems, on the other hand, are like long tracking shots. They are naturally infinite. You can create a moment and stay with it. Note taking, list making, messaging are effective for similar reasons.


  Poems are a forgotten tool from our past that
  I think work way better.
Good point. So here's a haiku which might be applicable to the post in question.

  The Master laments,
  When those who produce oysters,
  Declare "find the pearls."


I didnt see anything for the stat I was most curious about - Quality of Question.


i'm comfortable using ffmpeg, i just wish people would share their secret formulas that can:

    - take a video of varying format (mov, mp4, webm, mkv)
    - give it the desired output resolution
    - give it the desired output quality preset (simple will do - hi, med, low)
    - output resulting file(s)
    - do it fast
i have a giant shell script of ffmpeg commands i've used in the past, but i have to stop myself from getting sucked in to trying to understand the whole process and losing a whole day at work


I spent a bit of time trying to understand ffmpeg last year (seems like you need to re-learn the codecs and best practices every few years!) and wrote some notes down on a blog post. Hope it helps someone other than me!

https://mjanja.ch/2016/07/video-encoding-for-the-web-in-2016...


Any catch if it does away with needing the `-webkit-` prefix for CSS yet?


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: