HNHacker News
TopNewBestAskShowJobs

avolcano

3,882 karma · joined March 12, 2011

I write JavaScript and Python and other languages sometimes.

website: thomasboyt.com

submissionscomments
avolcano··on GoConvey: Go testing in the browser
Wow, this is beautiful. Makes me want to develop something in Go ;)
avolcano··on $4.1m goes missing as Chinese bitcoin trading platform GBL vanishes
This is why I always find skyrocketing conversion rates of Bitcoin so funny: it's certainly not impossible to get money out as a traditional currency, but it's damn sure fraught with peril.
avolcano··on Isomorphic JavaScript: The Future of Web Apps
My main concern - how does application state get handed off to the client-side code after the initial render? Sure, it's nice to have some pre-rendered templates, but at some point it needs to "transition" cleanly to the client.
avolcano··on Jekyll Data Files
Not sure why OP linked to the Github file instead of the file on the site (w/ syntax highlighting, etc.): http://jekyllrb.com/docs/datafiles/

It's also worth noting that you could already do this in _config.yml, this just lets you split that up.

avolcano··on Steam Controller
The key to this is the haptic feedback technology that makes it more than two weird touch surfaces. Sounds awesome.
avolcano··on Google in 1998
Authentic markup full of <font> and <b> tags, too!
avolcano··on Why you should join a big company first
Yeah, I was a bit confused by what the author meant.

I can see it not being a good idea to start your own startup super early for the reasons the author lists. I don't think there's anything wrong with joining a growing startup early on, though.

avolcano··on Android is for startups
> But if you build an app on Android that’s on par with the design quality you’re used to on iOS, your users will love you. The press will love you. Gizmodo will feature your app just so they’ll have a nice header image for their “Android Apps of the Week” post.

That's nice, but will it translate into sales? Probably not, given the horror stories of Android piracy that seem to come out every few weeks (particularly in the gaming market).

Of course, many startups profit in hype instead of dollars, so maybe that's irrelevant.

avolcano··on Yapp.js: Build large client-side applications in a structured way
Ironically, there's a company called Yapp (https://www.yapp.us/) that's one of the biggest users of Ember.js that I know of. Was super confused when I saw the title...
avolcano··on Plotagon – Make a movie by just writing a story
Xtranormal was absolutely hilarious, hoping this reaches the same heights of unintentional comedy.
avolcano··on Require.js is a Terrible Idea
This is depressingly ill-informed.

Require.js has an optimizer that does exactly what the author suggests: http://requirejs.org/docs/optimization.html

The point is to build your application using AMD, using individual assets in development, and then run the optimizer - which concats and adds a loader - for production.

Alternatively, you can even go a step simpler and always use concatenated files, along with a minimal loader like Almond.js[1]. If you do this, you'll probably want to use something that adds source maps for your concatenated file (for easier debugging), but that's easy - you can use grunt-concat-sourcemap[2] or a similar plugin for whatever build system you like.

[1]: https://github.com/jrburke/almond

[2]: https://github.com/kozy4324/grunt-concat-sourcemap

avolcano··on New York Times Web Site Returns After Hours Offline
During the last major (multi-day) S3 outage, a few sites did similar things. I remember reading articles from Giant Bomb (http://giantbomb.com) via Google Docs posted on Twitter by the writers. Obviously, video games aren't quite as important to most people as world news is, but it's still interesting to see the different contingency plans news outlets have.
avolcano··on Ember.js 1.0 RC7 Released
"these guys" === people who use Ember, see that there's a new release on the front page of Hacker News, and upvote it :)
avolcano··on The Future of Programming in Node.js
Some thought has definitely been put into this problem:

https://gist.github.com/domenic/4748675

https://gist.github.com/wycats/51c96e3adcdb3a68cbc3#importin...

(both of those are slightly out of date, syntax-wise, but are still conceptually current, IIRC)

avolcano··on The Future of Programming in Node.js
Fair points, though I quite like the concept of a "variable containing a library" (or module).

Personally, with JavaScript being the first language I seriously learned, it's intuitive for me to reason about. JavaScript is built around closures, and you're simply importing a closure that returns (exports) its public interface.

In fact, the main issue I have with ES6 modules is that they differentiate a "module object" from its default exports, which can be tricky to reason about (basically, what I wanted from ES6 modules was just syntactic sugar over CommonJS, whereas what we have is more powerful but more complex).

avolcano··on The Future of Programming in Node.js
> There will be no changes to the module system. None. It's finished. It's been finished for over a year. Any proposed changes must come with a clear reproducible bug that cannot be worked around or addressed with documentation.

This seems short-sighted, with ES6 modules now being used in production (through transpilers) and slowly making its way into SpiderMonkey and, more importantly, V8.

avolcano··on New Sublime Package Control Site
Really impressed by the progress bar built into the site - I don't know any sites besides YouTube that are doing that!

For anyone else wondering, it looks like the app is powered by Backbone, D3, and Handlebars on the front-end.

avolcano··on Amber Alert: Californians confused, angry and startled
The idea of getting more eyes on Amber Alerts is a fundamentally good one, I think we can all agree on that.

I think a far superior option to these kinds of active, "HEY LOOK AT ME" alerts would be something that could fit in passively but draw just as much viewership, and not just on phones.

Imagine if, when an Amber Alert was out in your area, the alert showed up in your Twitter and Facebook feeds, your phone's lock screen, and maybe even above your email inbox. Sure, some people would probably mentally (or actually) filter these out just like they filter out ads, but it's preferable to everyone getting annoyed by the alerts and turning them off entirely.

avolcano··on Some AngularJS pitfalls
> Almost all the sites I'll develop take advantage of progressively enhanced components or at minimum, widgets that are bootstrapped server side. Angular wants you to load everything via AJAX - that can get heavy very quickly.

I'm surprised that I haven't seen a library for any JavaScript framework that elegantly handles loading JSON returned within a server-side template. It seems like the best of both worlds - use your server-side template, but then also get the data as JSON so that you don't have to do a second request to populate your Angular $scope with data.

The easy way to implement this would be a library that automatically added <script> tags containing the JSON that you could then reference from your Angular template. It could even wrap the JSON in an Angular module of some sort to keep your global namespace from being polluted.

avolcano··on Some AngularJS pitfalls
> Another option is to completely hide elements, or even your whole application, until Angular is ready. Angular provides ng-cloak to this end.

My issue with this is that it doesn't solve the problem of binding to asynchronously-loaded resources. You have to manually implement your own ng-cloak logic, or use ng-bind, to not have {{mustaches}} waiting for data to be loaded.

Compare to Ember, where {{mustache'd}} data-bound bits aren't rendered until their bound variable is defined.

(the, other fix, of course, is to do something like `<span ng-hide="foo != undefined">{{foo}}</span>`, but that doesn't scale particularly well)

avolcano··on Comments in JSON
Ah, thanks for the correction :)
avolcano··on Comments in JSON
Trusting the community to do the right thing is better than handicapping your users.

Regardless, of course, people add metadata to JSON already - there's zero reason you can't "_type": "int". It's a completely arbitrary reason.

avolcano··on Comments in JSON
Can we all just agree, as a community, to add comment support to our JSON parsers? Hell, I'd do a PR on V8 if I knew C++.

It's ridiculous that I can't document notes on dependencies in my NPM package.json, or add a little reminder to my Sublime Text configuration as to why I set some value, because we're using JSON parsers that can't handle the concept of ignoring a line with a couple slashes prefixing it.

IMO - either we add comments to JSON, or we stop using it for hand-edited configuration.

avolcano··on Vintageous: Vim emulation for Sublime Text 3
I'd love to know this too, but the author doesn't seem interested in explaining it: https://github.com/guillermooo/Vintageous/issues/267

I installed it, and it works exactly the same, as far as I can tell.

avolcano··on Show HN: Minisync gives your web app its own relational backend-as-a-service
Ember - or Backbone, for that matter - would be a bit trickier to write a plugin for. Neither really handles hierarchal data structures in an elegant way - both have a model layer that assumes a "flat" structure, similar to server-side models.

With Angular, on the other hand, you can just pop the full object from retrieved from the server into your $scope, change it like you would any other object, and then sync it back with a function that will create a diffset between the original object and the current state.

avolcano··on Show HN: Bitcast.io – A marketplace for web development tutorials
Massive feature missing: last updated date.

I would NEVER buy a screencast, tutorial, or anything on web development without knowing EXACTLY when it was last updated. For example, the paid Ember screencasts claim to go over the Ember router - how do I know whether it was the old beta router, the RC1 router, or the RC6 "Promise-ified" router?

avolcano··on Tagging in Rails 4 using PostgreSQL arrays
Why?
avolcano··on Calca - Humane Symbolic Calculator for OS X and iOS
Would really like to see a comparison between this and Soulver (http://www.acqualia.com/soulver/). Most obvious differences are the lack of a two-column view and support for Markdown, as well as support for function definitions, which I'm pretty sure Soulver lacks.
avolcano··on Valve releasing Dota2 for Linux
Glad to hear it! :)
avolcano··on Valve releasing Dota2 for Linux
And yet, no news on the OSX front, even though the Source Engine has worked on Mac even longer than it has on Linux. Really was hoping they'd have at least a Mac beta by the time they started the rolling launch of the Windows version :(
← PreviousPage 7 of 14Next →