HNHacker News
TopNewBestAskShowJobs

octref

585 karma · joined May 5, 2013

nomadic

http://blog.matsu.io/about

submissionscomments
octref··on Snek: An experimental system for writing generative art systems
The author also wrote On Generative Algorithms[0] which is a very inspiring overview for many types of generative art.

[0]: http://inconvergent.net/generative/

octref··on Pinterest Raises $150M at 2015 Share Price
They are also people who actively hate "social networking" and just want to collect some visual inspirations without being fed with a bunch of advertisements. Thank you.
octref··on Get started making music
Yep, not using hottest framework, not a SPA, not a PWA. Just something that loads fast and works great. Good job.
octref··on TypeScript 2.3
I'll write a blog post about a recommended setup soon. Indeed there are some configuration required for getting all the features working, and they aren't really well-documented now.
octref··on TypeScript 2.3
Author of vetur[0] here, glad to see it getting featured :-)

Started this plugin last October to provide better editor support for Vue single file component, now vetur has support for embedded IntelliSense / error-checking / syntax-highlighting / emmet / snippet / linting / formatting. By embedded support I mean each feature is available for at least html/css/js, some features are also available for scss/less/ts/etc.

@sandersn from TS team has been really helpful in helping me integrating TS's Language Server to powers the advanced IntelliSense in vetur. As vue / vuex / vue-router now comes with type definitions, you get awesome auto completion such as [1] and [2].

Now that IntelliSense in js/ts sections is almost complete, vetur's next step is to use TS's Language Server to extract info from Vue SFC's script part to power IntelliSense in templates, such as prompting a list of `props` for `v-if`, and prompting a list of `methods` for `@click`.

Give it a try and let me know any bugs or features you want to see!

[0]: https://github.com/octref/vetur [1]: https://twitter.com/octref/status/854812632142024705 [2]: https://twitter.com/octref/status/857350977581723648

octref··on Ask HN: Which non-technology book has influenced you the most and why?
The Alchemist.
octref··on Text Editor Performance Comparison
Would you say it's fair to compare the memory usage / loading time of a huge TS file in VSCode vs in vanilla Vim, when one loads Language Services and provide advanced language features while the other just does Syntax Highlighting?

Or comparing Vim against Sublime for loading large files, when Sublime needs to draw the very fine and useful minimap but Vim doesn't?

In addition, most of these perf tests are extreme cases, whereas some editors are optimizing for more common use cases.

octref··on Text Editor Performance Comparison
What's the point of perf comparison for editors totally not comparable feature-wise?
octref··on Go 2016 Survey Results
Just want to point out this is a terrific display of data. Easy to read, grasp and scan through. Much better than some so-called data visualizations that confuse rather than present and clarify.
octref··on Optimizations in Syntax Highlighting
Sorry but I'm not familiar with Rust -- is it possible to run your lib in all platforms in a Node environment?

And, do you have an issue for the regex port? Would love to see the benchmark.

octref··on Visual Studio Code 1.8
vue-class-component[0] seems to be adopted by vuejs org, and I'm planning to use it in my next project.

[0]: https://github.com/vuejs/vue-class-component

EDIT: Just saw this on twitter: https://vuejs.org/v2/guide/typescript.html

octref··on Visual Studio Code 1.8
On the other hand, you can toggle it off by View -> Hide Status Bar.
octref··on Atom 1.12 released
Give this a try: https://marketplace.visualstudio.com/items?itemName=felixfbe...
octref··on Hyper.sh – Effortless Docker Hosting
Confusingly, zeit also has a terminal named hyper[0], despite not having the .sh TLD.

https://hyper.is

octref··on Visual Studio Code 1.7.1
If you are interested in getting the latest features, try VSCode Insider version[0].

[0]: https://code.visualstudio.com/insiders

octref··on Getting Started with Webpack 2
Can you please add some documentation for sourcemap and debugging to the doc?

WP 1's sourcemap doc is confusing as hell and WP 2's doc just copied that over. I imagine debugging un-transpiled code with sourcemap is one of the most common use-cases.

And I'm not alone if you look at the disqus of WP's doc[0] and a blog by @bebraw[1], one of the guys running webpack.js.org.

I even opened an issue[2], I hope it can make into your MVP.

[0]: http://survivejs.com/webpack/developing-with-webpack/enablin...

[1]: https://webpack.github.io/docs/configuration.html

[2]: https://github.com/webpack/webpack.js.org/issues/273

octref··on A curated list of open source applications built with Node.js
I'm baffled. A random list that links to a few most-starred node app got 50+ upvotes in 2 hours on HN and is currently No.1. First commit 3 days ago. I fail to see how it's awesome.

Anyone enlighten me?

octref··on Ask HN: What are the best personal project websites you've seen?
http://jon.gold/
octref··on Server APIs Project
What editor is everyone using for Swift?

Last time I played with Swift I stopped after XCode crashed 2 times in an hour for me. It is also very slow. But none other editors seem to support auto completion which is a deal-breaker for me. Without it it's hard to consume all the APIs.

I hope Apple can follow Rust's path by making a language server[0] for Swift, if Apple is serious about providing cross-platform support for it. This will enable better support in editors such as find definition, refactor and auto completion.

[0]: https://internals.rust-lang.org/t/introducing-rust-language-...

octref··on NPM v4.0.0
Yeah I wouldn't use it in production until it becomes more stable. However the team behind it seems to iterate really fast. Look at the issues fixed between public release and 0.16[0], which is only 7 days.

[0]: https://github.com/yarnpkg/yarn/releases/tag/v0.16.0

octref··on NPM v4.0.0
After using yarn for a week, I can't imagine going back to npm.

I use npm 90% for install, and yarn does this so much better.

Installs are 3-4 times faster. Output is minimal and readable (compared to npm's wall of text that I never read). Packages are cached so I can work with slow connections in coffee shops.

Sorry to be blunt, but I feel none of the release features gonna help my daily usage of npm. How about actually fixing the tab completion, which has been slow and broken forever?

octref··on Why we chose Vue.js
No, it is solid for production and a lot of large Chinese companies like Alibaba, Baidu, Xiaomi, DJI use it.
octref··on Why we chose Vue.js
To me Vue is a great tool for side projects. In React I found myself struggling to figure out what libs to use and keep myself up to date with them. I also hated configuring webpack. With Vue, I have officially supported libraries like vuex and vue-router which work great with Vue out of the box. vue-cli also allows me to scaffold projects with these libraries very easily.

But the thing I like most about Vue is it allows me, who identifies as a front-end dev or design-coding hybrid, to quickly iterate and build prototypes. Look at the single file component:

  <template>
    <div id="list">
      <li></li>
      <li></li>
    </div>
  </template>
  <script>
    export default {
      // Define your component
    }
  </script>
  <style scoped>
    #list { list-style: none }
  </style>
I can quickly edit the template to alter my component's DOM structure, style it with scoped css, and change its dynamic behavior in the script tag. Like the suite of Jade/Coffee/Stylus? Adding a lang attribute to each tag and you are good to go. Awesome stuff.
octref··on Atom 1.11
Take a look at Python extension for VSCode[0]. Excerpt from feature section:

Scientific tools (Jupyter/IPython)

- Executing blocks of code (cells) in a Jupyter Kernel

- Managing kernels (restarting, stopping, interrupting and selecting different kernels)

- Viewing interactive graphs, HTML, SVG, laText output from Jupyter from within Visual Studio Code

[0]: https://github.com/DonJayamanne/pythonVSCode

octref··on HTML Kong
Any idea how to do it?
octref··on Vue 2.0 is here
That's really nice, but I didn't find any examples of TS + Vue in all three repos though. Guess I'll play around with it in the weekend.
octref··on Vue 2.0 is here
I hope it has first-class TypeScript support. Having worked in large TS codebase I can't imagine going back to a JS codebase of the same size.

Angular has TS and React has Flow, but most of Vue projects seem to use neither. This is fine for small side-projects, but I'm wondering if anyone could share experience building large Vue apps without types.

octref··on Vue 2.0 is here
It's written in Flow, not TS.
octref··on Sublime Text 3 Build 3124
We are working on it. [0]

[0]: https://github.com/Microsoft/vscode/issues/12163

octref··on Pinboard Turns Seven
I'm glad there are people who don't care anything you mentioned while offering something users enjoy using.
← PreviousPage 2 of 5Next →