aymericbeaumet

Joined 12 years ago

Karma
156
Submissions
15
Member since
Aug 19
Blog: https://aymericbeaumet.com Twitter: https://twitter.com/aymericbeaumet LinkedIn: https://www.linkedin.com/in/aymericbeaumet GitHub: https://github.com/aymericbeaumet

[ my public key: https://keybase.io/aymericbeaumet; my proof: https://keybase.io/aymericbeaumet/sigs/qHNQpiHOSeUkRMAEpuu6vjH973H4DRVDuDrvWC9Vrms ]

View on Hacker News

Recent submissions

Comment · 5 years ago
OP here, thanks for the amazing comments. Some nice projects to look into!

As much as I love z, I'm also a fan of fzf, both are really complementary. I'm using this little piece of code (not from me, but cannot find the original source) to fallback to fuzzy search when z fails to find a result or when no args are given:

  unalias z &> /dev/null
  z() {
    [ $# -gt 0 ] && _z "$*" && return
    cd "$(_z -l 2>&1 | fzf --nth 2.. +s --tac --query "${*##-* }" | sed 's/^[0-9,.]* *//')" || exit 1
  }
I also use this approach in a few other places in my workflow (git checkout, vim, etc). Expect a blog post covering this in the near future.
Comment · 12 years ago
A one could indeed export its requires. However, my idea was was to stay close to the require caching system existing in Node.

As a personal taste, I by far prefer to configure my application in a JavaScript file rather than a JSON file. And I consider dependencies as a part of the configuration process. It agrees with the Duo philosophy which aims to simplify the building process from A to Z.

Comment · 12 years ago
Comment · 12 years ago
There are always ways. But I find Grunt much more handy to do it.
Comment · 12 years ago
Comment · 12 years ago
I remember some discussions on Gulp's issues tracker where maintainers were reticent about integrating sequential tasks execution.

But that's great if you are going to do it. This may make me come around and give a second chance to Gulp.

Comment · 12 years ago
I didn't know about it! Thanks
Comment · 12 years ago
Even though they are clearly related, Gulp and Grunt are fulfilling different purposes. You should carefully examined your needs before choosing one over another.

I recently switched to Gulp for several projects, and I'm thinking of switching back to Grunt.

Gulp lacks of some important features. For instance, it does not allow to sequentially execute tasks: everything is done in parallel. This could for sure be emulated by using async, but the overhead is not worth it.

On the other side, Grunt does support sequential and parallel tasks execution, but is more verbose and does a lot of file writing on the disk (though it is relatively moderate).

One concrete example for sequential tasks execution (easily done with Grunt):

- Watch JavaScript files, when a modifications is detected:

  - lint files -> [JSHint, JSCS]

  - if success: launch tests -> [Karma, Mocha]

  - if success: notify
- If any failure occurs: notify and abort the sequence

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton