Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
substack
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
5 ms
·
61.
▲
by
substack
14y ago
This kind of static analysis is really easy to do with falafel: https://gist.github.com/substack/4735826 Program: var falafel = require('falafel'); var fs = require('fs'); var src = fs.readFileSync(__dirname + '/src.js', 'ut
62.
▲
by
substack
14y ago
Click on any of these demos: http://voxeljs.com/#gallery
63.
▲
by
substack
14y ago
And another new voxeljs module for portals: https://github.com/substack/voxel-portal http://substack.net/projects/voxel-portal/
64.
▲
by
substack
14y ago
What a crazy coincidence, I just factored out my company's payment widget code into a reusable module a few days ago: https://github.com/substack/pricing-widget Basic example: http://substack.net/projects/pricing-widget/basic/ Fancy exa
65.
▲
by
substack
14y ago
The service registry I wrote ( http://github.com/substack/seaport ) is fundamentally version-aware to avoid this problem. You register services with a semver such as `web@1.2.3` and then clients or other services query for registered servic
66.
▲
by
substack
14y ago
and it DOES work with everything ... so long as you wrap all the files in the particular variant of define() function that works with requirejs (but not with other competing AMD function signatures). And then you might want to us
67.
▲
by
substack
14y ago
No. If anything, it will probably just get even more fragmented before the situation gets better. As we understand the features and architectures of package management systems better it becomes even easier to write package managers. This is
68.
▲
by
substack
14y ago
Actually that code snippet that computes a summation can be done without any loop or recursion at all: function sum (m, n) { return m * (m + 1) / 2 - n * (n - 1) / 2 } I only know this because I remember from math compe
69.
▲
by
substack
14y ago
I've complained about this before too, but if you click the "i" with a circle around it in the bar that says "this pull request can be automatically merged" you get a nice box with all the git commands to do a local fetch and merge. I think
70.
▲
by
substack
14y ago
If you want to play with this new version but also have code running on older versions that hasn't been completely ported yet, I recommend using nave to manage your node versions. After you `npm install -g nave` you can just `nave install 0
71.
▲
by
substack
14y ago
The verify phase was just defining an inline function but not running it. However, I just noticed that a program with carefully placed braces could jump out of the function box and actually run. I replaced the checker with just Function(src
72.
▲
by
substack
14y ago
Nice to see people using some of my libs to do nifty stuff but I must caution against depending on `latest` since this could cause your application to break in the future if I push breaking changes: https://github.com/ptrsghr/joint/blob/ma
73.
▲
by
substack
14y ago
Sorry about that. We booted up a ton more free servers but the queues are still rather large. On days when we're not getting a traffic spike you can usually use the service right away.
74.
▲
by
substack
14y ago
This is a nifty feature and npm can do something very similar: npm install git://github.com/substack/node-optimist.git
75.
▲
by
substack
14y ago
Check out tap, it has a very simple api that works well for testing asynchronous code: https://github.com/isaacs/node-tap Here's a tap example that sets up a server and client for dnode: https://github.com/substack/dnode/blob/master/test
76.
▲
Multi-server continuous deployment with fleet
(substack.net)
7 points
by
substack
14y ago
|
0 comments
77.
▲
by
substack
15y ago
For which there is a massive amount of selection bias going on. I would want to see actual figures and a proper linear regression model before jumping to any conclusions here.
78.
▲
by
substack
15y ago
Part of my point was that "self-selecting out the gene pool" does nothing to dispel harmful beliefs. That is a culture and education problem.
79.
▲
by
substack
15y ago
> And, for the record, I'm all in for homeopathy and faith > cures - they may help remove some undesirable genetic > traits from the gene pool. OTOH, the populations presenting > such traits can evolve to
80.
▲
by
substack
15y ago
That seems like a massively inefficient way of doing things. Tests are very inexpensive since they can run without human intervention. Code review requires another human to sift through changes. If the automated tests pick something up firs
81.
▲
Colorful javascript object diffs with difflet
(substack.net)
15 points
by
substack
15y ago
|
1 comments
82.
▲
by
substack
15y ago
I mean why does `module` pull down resources? Shouldn't that be import's job?
83.
▲
by
substack
15y ago
Thanks for this. I'm glad that using a single export function will at least be possible. I'm still pessimistic about the amount of syntax being introduced here. In particular, I still really dislike the special import "local renaming" synta
84.
▲
by
substack
15y ago
I really dislike what they're doing with modules because it's such a step back from the commonjs-inspired require() that node uses. In node, require() just returns a value. That value is usually an object but often it's just a function. Why
85.
▲
Semver your services with seaport
(substack.net)
2 points
by
substack
15y ago
|
0 comments
86.
▲
by
substack
15y ago
> JavaScript has very little support for any of those nice things: it doesn't even have namespaces, for chrissakes. Why would I want to repeat these same mistakes over and over again in a new language? Javascript doesn't have this (by i
87.
▲
by
substack
15y ago
At the civic level, check out some of the projects that the Code for America folks are up to: http://codeforamerica.org/projects/
88.
▲
by
substack
15y ago
As a hacker/founder who has also taken up the art/design role, I disagree and think that developers who can draw reasonably well should try designing the art assets for their startups. When you design your own art assets, you can iterate on
89.
▲
by
substack
15y ago
Thanks for posting this! I just updating my own silly shuffle module ( https://github.com/substack/node-deck ) to work using the last in-place algorithm for uniform shuffling and I saw a huge speedup.
90.
▲
by
substack
15y ago
> "normals" have absolutely zero clue about what it is I was surprised to hear my relatively non-technical father ask me back in December if SOPA was as bad as he had heard. Discussion of this legislation seems to be making it out into
More ›