HNHacker News
TopNewBestAskShowJobs

mofle

1,227 karma · joined May 22, 2011

[ my public key: https://keybase.io/sindresorhus; my proof: https://keybase.io/sindresorhus/sigs/f2efA_W7FvEyw55qXGSw6k9Oj3heHIAmU0gwhaGhW9I ]
submissionscomments
mofle··on Multiline strings in JavaScript
Because a compile step is annoying when it's not strictly needed. In the browser you usually have some kind of build system for concatenation and minifying anyways.
mofle··on Multiline strings in JavaScript
In Node.js you don't want a compile step. In the browser however that would probably be a better solution indeed.
mofle··on Multiline strings in JavaScript
The next version of JavaScript does too: http://www.2ality.com/2011/09/quasi-literals.html
mofle··on Multiline strings in JavaScript
Yeah, pretty much, but in Node we wrap repetitive things in modules, as they're super cheap. Your snippet is also missing some things like indentation stripping, error handling and browser support.
mofle··on Multiline strings in JavaScript
The following browsers return comments:

- Latest Chrome

- Firefox >=17

- Safari >=4

- Opera >=9

- Internet Explorer >=6

From: https://github.com/sindresorhus/multiline#compatibility

mofle··on Multiline strings in JavaScript
You can use the `/*@preserve` directive.

See: https://github.com/sindresorhus/multiline#minification

mofle··on Multiline strings in JavaScript
It's mainly intended for use in Node.js, but I've documented how to use it with a minifier for the front-end: https://github.com/sindresorhus/multiline#minification
mofle··on Web Starter Kit
You can read more about the device sync solution BrowserSync here: http://browsersync.io/

As for keeping devices awake, that was actually recently discussed at specifiction: http://discourse.specifiction.org/t/allow-developers-to-cont...

mofle··on Web Starter Kit
If it's just cleaning up CSS you're after, I would use UnCSS. Checkout grunt-uncss task or gulp-uncss to hook it up to your build process. We don't currently document using the tooling independent of the kit, but you should be able to pluck the package.json and gulpfile.js and edit per your needs. We'll try to get this documented.
mofle··on Scribd and Quora considered harmful
There's a Chrome extension [0] and userscript [1] that removes the login wall and nagging.

[0]: https://github.com/sindresorhus/quora-unblocker

[1]: https://github.com/sindresorhus/quora-unblocker-userscript

mofle··on Trash: safer alternative to rm (cross-platform)
Added a tip about that: https://github.com/sindresorhus/trash/blob/master/readme.md#...
mofle··on Trash: safer alternative to rm (cross-platform)
> you can do almost the same thing by using `mv` and predefined directory.

Not really. The mv command isn't cross-platform and moving to trash is not just about moving the file to a "trash" directory. On all OSes you'll run into file conflicts. The user won't easily be able to restore the file. It won't work on an external drive. The trash directory location varies between Windows versions. For Linux there's a whole spec you need to follow. On OS X you'll loose the Put back feature.

mofle··on Gulp, Grunt, Whatever
It already has plugins (150+) for the most common tasks: http://gratimax.github.io/search-gulp-plugins/
mofle··on Tell HN: Add ?share=1 to Quora URLs to display content without login
I wrote a Chrome [1] extension and UserScript [2] which does this automagically:

[1]: https://github.com/sindresorhus/quora-unblocker [2]: https://github.com/sindresorhus/quora-unblocker-userscript

mofle··on Building HTML5 Apps with Yeoman and Backbone
This isn't at all constructive and you're severely misinformed.

This is Yeoman: https://github.com/yeoman/

mofle··on Show HN: Tweetspiration – let Twitter brainstorm ideas for you
There's a lot of duplicate tweets and retweets of the original. Filter out the duplicates.
mofle··on An adaptive prompt for Bash and Zsh
Latest - 5.0.2
mofle··on An adaptive prompt for Bash and Zsh
Some time back I created my own ZSH prompt as I wanted something fast and minimal, where most others were too feature rich. It's also a good base if you want to create your own. https://github.com/sindresorhus/pure
mofle··on A plea for better open source etiquette
Have you considered making it clear that it's not maintained anymore? Add [not maintained] to the repo description or something.
mofle··on An Open Source Author's Lament
Issues 1.0 had voting, but it was removed in Issues 2.0
mofle··on Focus: an editor theme for focussing on content
I agree. I'm already planning a Sublime plugin for this.
mofle··on Focus: an editor theme for focussing on content
Author here. I've never used LaTeX before. It was just suggested to me that it worked fine. If you open an issue about it with some specifics on what's not working, I'll make sure to look into it.
mofle··on Hacking Github with Webkit
I got a t-shirt some time back for reporting a serious XSS vulnerability.
mofle··on I'd like to use the web my way, thank you very much Quora
I also created a Userscript for non-Chrome users: https://github.com/sindresorhus/quora-unblocker-userscript
mofle··on I'd like to use the web my way, thank you very much Quora
I just created a Chrome extension that removes the Quora login requirement: https://github.com/sindresorhus/quora-unblocker
mofle··on Helping you select a JS MV* framework
I used to feel like that too, but Backbone is really lightweight and unopinionated. Check out this step-by-step guide on how to convert a jQuery app to Backbone: https://github.com/kjbekkelund/writings/blob/master/publishe...
mofle··on Helping you select a JS MV* framework
Sure of course. Feel free to!

Be sure to add it to our wiki when it's done: https://github.com/addyosmani/todomvc/wiki/Other-implementat...

mofle··on Helping you select a JS MV* framework
That's in the works. Nice to see someone else wants that too :)
mofle··on Helping you select a JS MV* framework
Maintainer here. We are fully aware that todo apps are not enough to get a deep insight into frameworks. Think of it more as getting a little taste of each framework which will help you narrow down the choices. We're planning more fully featured apps in the future with the most popular frameworks. Stay tuned.
mofle··on Licensing of Titanium chaotic and unclear
I have the exact same experience. I've also reported more than 30 valid bugs, none have been fixed... You wouldn't believe how buggy it is, and the docs are just as bad.

Stay away - go native or phonegap

← PreviousPage 4 of 6Next →