madrobby | 13 years ago | on: Don’t use JavaScript for Retinafying
madrobby's comments
madrobby | 13 years ago | on: Browserver: a node.js HTTP server, in your browser
Keep on being awesome. :)
madrobby | 13 years ago | on: Flowchart: how to retinafy your website
madrobby | 13 years ago | on: Flowchart: how to retinafy your website
For stuff like photos, just supply a larger resolution JPEG that has lower quality. This will look great when smaller and when zoomed in, while keeping the file size in a range that is ok for mobile.
madrobby | 14 years ago | on: Best Practices Exist For A Reason
madrobby | 14 years ago | on: 5 Things They Told You Not To Use In JavaScript
madrobby | 14 years ago | on: 5 Things They Told You Not To Use In JavaScript
I think that once you start optimizing performance problems you need to 1) measure things anyway, and 2) fix on a case-by-case basis. (Don't optimize prematurely, etc.)
madrobby | 14 years ago | on: 5 Things They Told You Not To Use In JavaScript
madrobby | 14 years ago | on: Zepto goes semicolon-free
madrobby | 14 years ago | on: Zepto goes semicolon-free
I think for the library code itself we prefer using JavaScript because in lots of ways it allows very fine-tuned control, one (of many) examples for this is deliberately using == instead of ===.
madrobby | 14 years ago | on: Zepto goes semicolon-free
So yes, you could say my taste changed, but there's good a good reason behind it—the semicolons are optional, and Zepto is all about concise code.
madrobby | 14 years ago | on: Zepto goes semicolon-free
FWIW, it took about 10 minutes to remove the semicolons from the codebase, with a simple grep: /;$/
For the few places where a ; is actually needed you can run a regexp based search as well, the rest is easily identified by unit tests.
We've also spend some 50+ hours on writing new code, tests, a new build and automated tests system, a completely new documentation site and answering countless issues on GitHub.
madrobby | 14 years ago | on: Why I’d like a “license type” setting for GitHub projects
madrobby | 14 years ago | on: Why I’d like a “license type” setting for GitHub projects
This is just about a general filter, into "proprietary", "do whatever you want to", and "restrictive" open source licenses; for developers when they choose which projects on GitHub might be a good fit for their needs.
If you read the GPL it puts a lot of restrictions on what you can do as a developer. So do other licenses (for example licenses that allow you to use the source in open source projects but require some form of payment when used for commercial products).
madrobby | 14 years ago | on: Why I’d like a “license type” setting for GitHub projects
"Permissive": anything that is generally MIT/BSD/WTF/Apache 2.0
"Restrictive": anything that is GPL or requires you to pay for or share all sources
Given that the vast majority of software use only one of a handful of licenses, I think that's a non-issue (tho there may be edge cases, I agree with that). For stuff that is not categorized, people can just put in "other".
(Do you have a list of those classifications btw, that would be useful.)
In general, a setting like this would likely raise awareness of people sharing code that they should choose a license in the first place. Far too many useful pieces of code on GitHub don't come with a license or copyright statement at all.
madrobby | 14 years ago | on: Why I’d like a “license type” setting for GitHub projects
madrobby | 14 years ago | on: Why I’d like a “license type” setting for GitHub projects
madrobby | 14 years ago | on: Why I’d like a “license type” setting for GitHub projects
For complex situations, you can always choose "other". As stated in my article, this isn't a replacement for a project's LICENSE file.
madrobby | 14 years ago | on: Why I’d like a “license type” setting for GitHub projects
That's why the general type makes much more sense for a quick glimpse if some code is probably suitable license-wise for your project.
madrobby | 14 years ago | on: Time Zones
But you shouldn't make it the default go-to.