2,000 karma · joined Aug 9, 2012 (14y ago) · 391 submissions
comment 13y ago · link · parent
I'm not sure why having an empty account is something you care to filter on. If someone really wants to pretend to be a dev, forcing them to click "Create new repo" before they sign up isn't going to provide much of a barrier. You're already basically taking them at their word so I'd recommend just dropping the requirement.
comment 13y ago · link · parent
The app Upboat will be able to:
* Read your public information.
* Read your private email addresses.
* Update your public and private repositories (Commits, Issues, etc).
I'd like to register myself as a dev, but I'm not going to agree to those terms. No offense, but you need to do a lot more to justify why you want write access to my github account.comment 13y ago · link · parent
I just spent the better part of a week rewriting a traditional Wordpress plugin to be an AJAX backed AngularJS widget. I have never before seen a system work so hard to discourage you from doing the right thing.
* Need to make an ajax endpoint? Create a global function, call wp_hook to register it twice, and be sure to die() at the end of it. Oh, and you can't selectively register on HTTP verb, plus too bad if you wanted to use the param "action" for anything.
* Want to serve some JS? Great! wp_enqueue_script has you covered. Unless you're plugin is included after the header. Unless unless you pass the optional "place in footer" flag. Unless unless unless the theme doesn't call wp_foot() (which is depressingly common). Good luck!
* Need to serve something that isn't JS or CSS, like a static HTML template? Fine! Just pass the whole path to the file! Since we don't do any routing other than cleaning up permalinks, every file has its own URL! Oh, just be sure to use plugin_dir_url() to get the base path. But despite the name that returns the path to the current file not the plugin so you should probably call it once in your plugin initialization file and cache the result in a global constant or something.
* Looking to do some safe SQL queries? Fantastic! Here's $wpdb->prepare. Which, by the way, doesn't have a named argument syntax. So if you have any optional params or dynamic segments in your SQL then you're going to have to prepare a whole query for each permutation. Oh, and I know you're building your queries by hand, but be sure to use "SELECT * FROM {$wpdb->posts}" instead of "SELECT * FROM wp_posts" just in case the table prefix isn't set to the default.
And that's just off the top of my head. Seriously, even assuming you know the right way to do any of the above (which in an environment that is quite explicitly aimed at being friendly to non-developers is far from a given), actually doing it involves jumping through countless obscure hoops. The simple fact is that making an ajax.php file and starting it with require_once('../../../../wp-config.php') or doing string interpolation into raw SQL, though horrible from both security and portability standpoints, are not only easier to write but make for clearer and more understandable code.
comment 13y ago · link · parent
Multiply that by several thousand hosts and the friction involved in using, let alone contributing to a project goes up considerably. Having a world where every repo uses the same visual and interaction metaphors and supports the same features is a huge UX win, almost regardless of the quality of that interface.
We used to have something sort of federated for source management. Before Github basically won everyone had their own bugtracker and repo set up. It was not uncommon to spend an hour trying to figure out where they hid the pull URL, then installing whichever version control tool they were using, then fighting with whatever half functional import tool you needed to convert their repo to whatever version control your project had. Then spend another half hour creating yet another account and then fighting with whatever half functional plugin they had installed or trying to figure out the difference between "Critical" and "Severe" just to submit a bug.
comment 13y ago · link · parent
The things that make Github really valuable are by definition closed. They own a well-known URL and have a ton of content behind it. I know where to go to find projects, I have a consistent workflow for acquiring or modifying those projects, and I have a reliable method for commenting on and contributing back to those projects. Even if Github were completely open and simple to customize and deploy (which are very different things), a fork would have very little of the value we associate with the original.
Not an open/closed issue, but illustrative of the concept: Google+ is a noticeably better written piece of software than Facebook, but no one uses it because that's not where they can see their sister's baby pictures.
This is very different from desktop applications, such as Office. Assuming file interoparability, I can use an alternative that I like better to improve my workflow without losing much value.
So what we really need is to move away from focusing on project source and toward open data. We should be pushing for better and richer APIs for third-party access to large datasets.
comment 13y ago · link · parent
Besides, most of the money that cities get from tourists they get through sales tax or indirectly through property and income taxes on tourist-supported businesses. I would be very surprised if losing the tax revenue on the hotel stay is enough to convert tourism into a net loss for the city.
comment 13y ago · link · parent
Sorry, blacked out for a minute there.
comment 13y ago · link · parent
Everyone (well, every citizen between, say, 18 and 67, when Social Security kicks in) gets a guaranteed flat income from the government. Then raise income taxes accordingly such that the average middle class family more or less breaks even.
comment 13y ago · link · parent
comment 13y ago · link · parent
comment 13y ago · link · parent
What I'm saying is we need a better solution for Facebook and HN. There's some large subset of sites for which users will not tolerate a physical artifact or convoluted multi-step process. Within those constraints, and with the understanding that we'll never be able to do as well as 256-bit private keys or two-factor, I'm wondering if we can't still do significantly better than alphanumeric passwords.
comment 13y ago · link · parent
Every security article I see either tries to drastically expand the entropy of the user's key (password or otherwise) or expand to some sort of two-factor authentication. Obviously that's better, long term, but I get the feeling passwords are here to stay for the foreseeable future. I'd love to see an actually secure authentication solution that can be used by someone with nothing other than their memory. Is anyone doing any work on ways to make authentication more secure with a low key entropy?
comment 13y ago · link · parent
The article compares pollution credits to bribery and a shakedown, but I don't quite get the case. Tesla doesn't get them for free, it actually has to produce low emission vehicles. And no one is forcing Honda to buy them from Tesla specifically (or technically at all). Honda isn't prepared to produce low emission cars, so the carbon credits market means they don't have to, so long as they're willing to bear the external costs in some other way.
Pollution credits are a relatively lassiez faire mechanism for converting a specific type of external costs to internal ones, and they seem to function pretty well. Not a leading question, but I'm honestly curious. What is the conservative or libertarian argument against them, and what approach would conservatives or libertarians prefer we took to the problem of large externalities?
comment 13y ago · link · parent
I don't mean to be the "but what about my edge case" guy, but it really does seem like your target audience is going to be denser when you get into cities that don't have thoroughly saturated tech scenes already.
p.s. If there are any HN types in the ABQ/Santa Fe area, please reply and we can grab lunch sometime.
comment 13y ago · link · parent
comment 13y ago · link · parent
The point is that this is a problem web frameworks don't have to have in the first place. It is relatively easy to fix, if you know how, but it creates boilerplate code and adds potential for security holes for literally no benefit. The ability to heal a self-inflicted wound is a poor substitute substitute for not being injured in the first place.
comment 13y ago · link · parent
Switching systems for a major enterprise is hugely expensive. In addition to retooling and retraining, there's the cost of paying someone the often thousands of hours to import all the existing records. Plus six months (optimistically) of dealing with lost records, transcription errors, and learning curve errors from staff unfamiliar with the inevitable quirks of the new system. Not that this is good for any business, but in a hospital setting that can mean dead patients.
Remember that "I'm to entrenched to make major changes" is emphatically not an engineering problem. Neither, for that matter, is "I don't have the money or political power to get access to technology". They are real problems and need real solutions, but throwing more tech at them is not an effective strategy.
comment 13y ago · link · parent
It cuts both ways, too. CGI-style routing gives a URL to everything, whether you want to or not. Unless you explicitly disable it, visiting /blog/config/database_credentials.ini (or whatever) will happily serve that file to the client. Plus it allows any user to execute the code in any file in your system out of context. Admittedly this will probably either error out or do nothing, but can you guarantee that for every single code file in your whole tree?
comment 13y ago · link · parent
I always hear people say this, but I've used both a fair bit and `rails s` plus port forwarding is an order of magnitude easier than fighting with apache's vhost config.
comment 13y ago · link · parent
* The languages are very different, syntactically. Ruby's blocks and enumerators really don't have an analog in PHP, and they'll take some getting used to. There's also some pretty deep philosophical differences in what the two languages mean by "class". That said, they sit at about the same abstraction layer, so line by line the complexity and flow shouldn't be that big of a jump.
* Rails is more like, say, Zend Framework than raw PHP. It enforces an MVC layout on your code and does what looks at first like a lot of magic to figure out which template files correspond to which pages. When you're starting out the rails scaffold generators are your friend.
* Ruby's standard library has a lot less in it than PHPs, so no XML parser or SQL client out of the box. Gems, and bundler in particular, makes it much easier to add third party code, though. You'll spend a lot more time bikeshedding over which third-party library to use, but the competition generally leads to more pleasant APIs in the long run.
* Ruby convention is to have more files and less code per file. A lot of your template files will only end up being three or four lines long. It's honestly easier in the long run, but get an editor that supports that workflow (multiple tabs, fuzzy file open, find-in-project, etc).
* RoR is almost completely independent of Apache for configuration. You get to move all the logic that was in .htaccess into ruby code in your app somewhere, and you get much more freedom over defining what you want your URLs to look like. You'll need to familiarize yourself with a concept called reverse proxying to figure out how this works in production, though.
* Not strictly ruby, but the rails asset pipeline is magic. Once you get used to it you'll never want to do frontend coding without it.
comment 13y ago · link · parent