94 karma · joined Nov 19, 2013 (13y ago) · 34 submissions
comment 8y ago · link · parent
[1] https://en.wikipedia.org/wiki/Head-related_transfer_function
comment 8y ago · link · parent
[1]: https://github.com/sambaiz/puppeteer-lambda-starter-kit
comment 9y ago · link · parent
comment 9y ago · link · parent
Incidentally, I didn't know to do gamma correction until I came across [3], which explained why the output from my raytracers always looked a little off ;)
[0] http://stackoverflow.com/questions/10843321/should-webgl-sha...
[1] https://www.khronos.org/webgl/public-mailing-list/archives/1...
[2] https://www.shadertoy.com/view/Xdl3WM
[3] http://blog.johnnovak.net/2016/09/21/what-every-coder-should...
comment 9y ago · link · parent
There's one thing I'm curious about - does anyone know why he's taking the square root of the color to produce the final pixel color?
comment 10y ago · link · parent
On the bright side, something of an industry has been built up around preparing people for tech company interviews (similar to the SAT prep industry). Check out Gayle McDowell's Cracking the Coding Interview[0], CodeKata[1], or Interview Cake[2].
[0] https://www.amazon.com/Cracking-Coding-Interview-Programming...
comment 11y ago · link · parent
Lovingly (and satirically) created by your friends at test double. Designed by Derek Briggs.
It's not meant to be serious, although I'm not sure what the point is.Edit: It seems to be (perhaps unintentionally) clickbait for programmers. We can't seem to resist visiting a website that claims to rate our code quality.
comment 11y ago · link · parent
comment 11y ago · link · parent
Another simple example would be image macros. They often follow a very strict pattern; the new information the user wishes to convey is where the pattern is broken.
In the same way, stories often follow a number of tropes. These tropes help to establish some basic information about the story, but what really makes it interesting is when the story breaks from the pattern and does something new.
comment 12y ago · link · parent
template <class T>
void foo(T arr)
{
for (auto it = arr.begin(); it != arr.end(); ++it)
{
std::cout << *it << std::endl;
}
}
You could pass a `std::map<int>` to `foo`, or a `std::list<string>`, or a `std::vector<char>`. You could even create your own classes and give them to `foo`, as long as they implement the `begin`/`end` protocol.It's certainly more verbose than necessary, but it can be convenient.
comment 12y ago · link · parent
Also, even though Markdown tends to be fairly easy to write, there are many edge cases where you can't really be sure what the result is unless you try it.