4,107 karma · joined Feb 17, 2010 (16y ago) · 1,490 submissions
https://coderescue.com
comment 15y ago · link · parent
There's this great <noscript> tag that sites can use to monetize me. They won't be able to track me as well, no, but I don't think a web site should ever have the RIGHT to track someone. No simple web page should EVER need scripting to work, nor should it EVER rely on Flash (which isn't even available if I'm surfing from an iPad/iPhone!). Anyone who doesn't test a web page with scripting disabled to make sure it renders in a reasonable manner shouldn't be doing web development. And don't get me started on idiots whose pages redirect a browser with scripting disabled to a dead-end page that tells me scripting is disabled (duh!) and then doesn't give me a way to get back to the original page.
Blocking ads is stealing bandwidth because you are intentionally are blocking the (typically only) means of income of a site for aesthetic (or philosophical) reasons. You're presenting to the site as if you're a normal user, but then surgically removing the ads from each page.
Blocking scripting may have the occasional side effect of limiting income on badly implemented sites, but I take no responsibility for hurting sites that are poorly designed. Any blame there should be on whoever decided to go with a Flash-based ad solution, which won't monetize everywhere no matter what.
If a site requires that I install software on my computer to use it, then (as you say) I won't use it. If it requires me to enter an email address to use it (and I don't trust it), then I similarly won't use it. If it requires me to enable scripting and I don't trust it, then I won't use it.
But I'm not going to enable scripting globally and risk ending up with an infected computer on the off chance that, on my first visit to a new site, I might prevent them from making a small amount of income because their web developers were incompetent.
comment 15y ago · link · parent
>Some extra information:
>Before I started the assessment, I asked for the mark scheme to make sure my project hit the criteria for a passing grade. We weren’t asked to build in powerpoint, but most opted to do so for lack of a better option. I asked if it would be a good idea to build an iPhone app for the assessment and the teacher of my class said “Sure if you can, give it a shot”. I maintained close contact with the teacher, regularly demoed the project and all was well. I have no idea when the teacher became aware that the project would fail but at no point was a concern raised with me until final marking.
>I didn’t build a complex project ‘just to be different’, I instead thought “Well here’s an opportunity to learn to do something I didn’t know how to do before”. Id been developing web things for a while but hadn’t dipped into native code up until that point. Again, the thought crossed my mind “If I can learn this in a week, surely they can at least have some basic understanding of it after 2 months”
>I was commenting while writing the code where I thought it necessary however, I had to go back and comment on libraries I used, on top of the comments that already existed, in basic terms
To me this sounds like the teacher screwed up.
comment 15y ago · link · parent
With something that blocks scripting, you don't need to worry about a site infecting your browser/computer. If the site is covered with ads, then close the window, and it's gone. Then downvote it on HN or Reddit or where ever you found it.
comment 15y ago · link · parent
Craigslist is great, and I might consider a subscription to Salon.com if it were inexpensive enough, but I think you're overestimating humanity's willingness to part with cash. All you have to do is look at just about ANY paid app on an iPhone or (especially) Android, and you'll find people complaining that it should be free.
Just a few years ago, buying a small game for your computer would cost from $7-$20. Now people complain if a game costs $1, even if the game contains dozens of hours of entertainment value. It's not like it costs less to make a polished game now than it did a few years ago.
And if a game is fun enough and has enough replay value, I can actually make more than the $0.70 I make from a $1 sale by showing the users ads (considering I get 200x as many downloads of a free version). Other models do exist -- in-app payments for buying "coins" to play a game more, for example -- but some of those end up feeling more evil than the advertising you're decrying.
What you'd need to fight is the sense of entitlement that people have around web content, which is what game developers have to fight on Android. I mean, just look at the comments on this very article! We're talking HN readers who feel entitled to get everything for free. People who have no connection with web site creation or running a business will typically have even less of a personal connection to the companies that they're hurting when disabling ads.
Micropayments for news sites could happen if you got the right sites to buy in, but it's been tried again and again, so I suspect that it's the lack of customers rather than the lack of site support that's the problem. If you got the New York Times, Salon.com, and a half dozen other high-profile sites to join a micropayment network, so I could sign up ONCE and go to a lot of different news sites ad free, I'd like that as a customer. But I suspect that you'd see the same ratio of 200x as many people sticking with the "free" ad-supported sites.
But then again, it would be a hard sell for the New York Times, at least: They want $35/month for a full digital subscription. That's off by at least a factor of ten from what I'd be willing to pay, possibly more. I think I'd be willing to pay $8/month to a micropayment network that included unlimited access to at least a dozen or so sites ad-free, but the NYT is demanding a much higher payment for unlimited access, so it's hard to believe they'd take a much lower amount.
Finally, I wouldn't want the micropayments service to charge me every time I looked at a site. I don't want to think about using the web; I want to browse freely, without worrying that I'm spending money every time I click a link. So those micropayments would need to come out of a monthly flat rate, to be divvied up among the various sites I'd actually visited.
comment 15y ago · link · parent
I agree with the article. If you don't like a site, don't go there. Don't steal their bandwidth and try to justify it.
comment 15y ago · link · parent
If I'm selling something used on Craigslist, that's advertising. If I'm looking for a product to fill a need, and I don't know what to buy, the paid links on Google have more than once led me to the perfect product. Every single thing on Amazon's site (fill in ANY e-commerce site online here -- even most of Craigslist, with things like apartments for rent), right down to the product page, is, fundamentally, advertising.
You'd pretty much have to restrict the web to a highly edited version of Wikipedia if you were going to outlaw advertising. And if you succeeded in banning all advertising you'd just prevent new entries into any market, or the creations of new markets, because everyone would tend to buy the products at the stores they knew about already.
What's evil is not educating people in logical thinking, and in not inoculating them at a young age against the kinds of psychological tricks you're talking about.
comment 15y ago · link · parent
Piracy is zero-cost (other than the "lost customer" argument) to the record label. Bandwidth is something SOMEONE pays for. If you're stealing my bandwidth, either by deep-linking a photo to put into a news article or by reading my site while blocking the monetization I've put on it, that's real money you're costing me, not some theoretical "you would have bought it if you didn't pirate it" argument of loss.
And there's no micropayment system that would allow a small blog to charge you the 1/100 of a cent that an ad might earn, so really there's no alternative unless you're a big enough company with a compelling enough product that you can charge a non-trivial subscription fee.
comment 15y ago · link · parent
Especially since you're pretty much spot-on correct. Maybe that's why the downvotes? People don't like to have their world view challenged.
comment 15y ago · link · parent
To me anyway it was an obvious thing to try, though I haven't tried it out to see if they "stole" all of my ideas, or only the basic "connect with your neighbors" part. :)
comment 15y ago · link · parent
One problem is occasionally buggy devices or firmware. I have one crash where a WebView is dying trying to display an ad, and while the ad is possibly conflicting with the WebView, I'm not sure how to FIX that, since the ad being provided isn't under my control (aside from choosing another ad provider).
And don't get me started on Samsung and the SoundPool class. It will just lock up your Samsung device to USE a SoundPool on it in a game. But only intermittently. Sigh.
When the problem is they don't like ads -- well, it's a free game, and there aren't words I'm willing to use on HN that are sufficient to describe what I think of those...individuals.
comment 15y ago · link · parent
In my game, there's also a "feedback" button. I say early in the app description to please contact me if you have any problems. I answer any questions that come in, and am polite even to the insulting emails. Well, at least mostly polite. ;) And I typically answer them in hours, at most.
And yet I still get 1-star "complaint" posts that hurt my ratings, from people who have never contacted me. Frequently they just say that they hate the ads, which are only shown between levels, and therefore don't interfere with game-play. I guess I should work for free?
I don't think it helps to justify their behavior; if they make the least attempt and give up, that's one thing, but if they don't even try when dealing with an indie app developer who's obviously not some faceless company, that's just lazy (and in many cases selfish -- they can pay to turn off ads, after all, and the games don't write themselves). It's the EASY thing for them to do, and they're being jerks.
Or if, as you say, they've been hurt before, they're taking out hurt from Faceless Corporation on me, which is pretty much indistinguishable from being a jerk from my point of view.
comment 15y ago · link · parent
Umm...Siri is cool, but that's not the advantage over Android. Android has had awesome voice recognition built in for ... over a year now? Not sure exactly how long, but my wife's dirt cheap ($150 with no contract) phone does voice recognition really well. I haven't had to type in a search query (with a 3G or WiFi connection active) since I got my new Android phone, either.
In addition to the basic Google search, it will send you to Google Navigation, send SMS messages to a friend in your contacts, and other things (I don't have the list in front of me). Siri adds to it by having a bit more context ("when I get home", for instance). It's cool, but it's not the voice recognition that's new. Except on the iPhone.
The big significance to Google is that it cuts them out of the iPhone search. But there are more Android phones than iPhones already, and the Android is growing faster, so that's becoming less relevant as well.
comment 15y ago · link · parent
I'm sorry, but what you're talking about sounds like it doesn't qualify as "programming" as much as web design and code plumbing. Note that in large part I'm talking semantics, here, in that my definition (and I suspect Joel's as well) differs from the way you're using the word).
I understand that you're likely paid well to do it -- as are plumbers. And it's a respectable job. I'm not trying to knock what you're doing.
But by your own admission your own code less than ideal. And Joel is talking about what a good programmer would need to be able to do, and if you want to start someone off on the path to becoming a good programmer, it's not a bad suggestion.
If you just want someone who can copy and paste code off of Github and doesn't really understand it, well, then you don't want a "good programmer" -- and frankly anyone worth their paycheck in IT probably already knows how to do that.
comment 15y ago · link · parent
The school in question is mostly low-income kids looking for a vocational experience, so we expected a bunch of kids who would be out of their depth if thrown in without a garbage collector. But then the teacher mentioned that none of the kids had a hard time learning C or C++, pointers included.
So the group of game developers who had come to advice pretty much all agreed that learning C/C++ first was actually the best thing that could happen to those kids. Show them C first to teach them what the machine is REALLY doing (with only a minimal abstraction layer), give them OOP with C++, and THEN transition them to a scripting language and higher level environment so they can produce something interesting before the class is over.
comment 15y ago · link · parent
This is only true if you're a C-corp. I know on HN most folks are creating a C-corp because it's easier to invest in, but if you're doing a small business, a partnership, S-corp, or LLC filing as an S-corp are likely the best options for you.
In all three of the latter cases, taking money out only causes you to be taxed once.
comment 15y ago · link · parent
A "successful" small business owner could take in $2-3M in receipts and still only clear $150k a year after expenses. Or less. Some businesses don't have much of a margin. And most don't have more than a few hundred k a year of receipts.
That's what I find crazy about all of the "you'll hurt small business!" anti-tax rhetoric. If it's only targeting more than $380k in PROFIT (for a sole proprietorship, or that much per owner for a partnership/jointly owned business), then raising the MARGINAL tax to 50% or higher would only encourage the business owner(s) to spend the money on expanding their business instead of buying a second yacht.
comment 15y ago · link · parent
I use nearly 20 programs on a regular basis, and another 20 I use occasionally and would like the be able to find without digging through the Program Files menu, and I don't want to clutter the task bar with all of them. The way I have it set up in six folders on the top of the Start Menu (NOT inside "Programs", but above Programs), I can pull any of them up with a Ctrl-Esc and few hits of the arrow keys.
The text search feature works great when you can remember the name of the app you're looking for. My brain doesn't always work that way, though. Since I have the various apps sorted by category, I don't have to look through more than about 6 at a time to find the one I need.
I'm actually using a "Classic Windows Start Menu" app that replaces the new Windows 7 Start Menu with one that behaves the way I've come to depend on.
Until I found the Classic Start Menu app, I was getting stuck on the search line a lot, trying to remember what some tool was called. No fun.
comment 15y ago · link · parent
My wife has been using voice input on her low-end Android device ($150 with no contract) for months now, and she uses it pretty much every time she needs to navigate somewhere -- it's that good. I've also seen her use it for search -- general search and "Mexican restaurants near me" map search. It's fast, and it's pretty good at understanding what you're saying.
It's a cool feature, but the most compelling use cases are search related -- and Android has those nailed.
comment 15y ago · link · parent
Sigh. Luckily you can hit ESC to stop it from forwarding you, but then if you want to read the second page, be quick on the draw with ESC again or it will send you back to the mobile site again.
Incompetent developers.
comment 15y ago · link · parent
What I wanted:
* Easy interface to a key/value store. * Reliability. Once something is stored in the database, I want a reasonably high level of guarantee that it won't be forgotten. * Trivial replication so if I server goes down and takes the database with it, I can restore it quickly and have a backup server in the mean time. * High speed on minimal hardware, so I wouldn't NEED to scale under likely usage scenarios. * Easy path to scaling if it should become necessary.
Every SQL database I know takes nontrivial effort to shard. CouchDB has built-in master-master replication that takes two seconds to set up.
SQL imposes performance penalties that I simply don't need, and so NoSQL is going to be faster on the same hardware, and require less scaling.
CouchDB makes things so simple and low-maintenance that I don't need to hire people who understand it, because I can keep it maintained in my free time. I haven't needed to do anything with it after I spent a couple days to deploy it, and it's happily replicating to a second CouchDB instance that I can fall back on if needed.
And if I get to the point where I need to scale, well, it will work fine to create more CouchDB instances (my data is read FAR more often than it's written, so simple replication should be workable).
Even with MySQL, I feel like I would NEED an expert to be sure to achieve all of my goals above -- not because I couldn't, but because it would waste too much of my time. With CouchDB I got something that Just Worked in exactly the way I needed it to.
comment 15y ago · link · parent
You're losing history that way: If the merge doesn't actually work, then you've got a screwed up file and no way to roll it back.
It's one of the great strengths of git that you can commit files even if someone else has changed them. It's a bad idea to merge when you have anything significant checked out (I'll leave temporary debugging changes checked out, or very small changes, but that's it). Heck, it's a good idea to check in every few hours, to track changes your making.
comment 15y ago · link · parent
So except for things you should EXPECT to change (like the state of a database you're querying) between calls, the "world" you (as a programmer) should care about stays perfectly consistent.
Unless I'm not understanding what you're asking -- is there some situation that I haven't encountered where the state of something that isn't a local variable matters?
comment 15y ago · link · parent
I've been using LuaJIT embedded in Nginx (LuaNginxModule). Lua supports coroutines, so a function can just yield. Here's a brief example:
-- Query a database using an http backend.
-- Yields and handles other requests until the reply is complete.
local record = util.getUserRecord(userId)
-- Send some text to the client. Yields control while
-- the actual transfer is in progress.
ngx.print( "Result=" )
-- Send the result, encoded as JSON, to the client
-- Again, this call doesn't block the server.
ngx.print( cjson.encode(result) )
With code like the above I can easily handle into the thousands of concurrent connections per second on the lowest end Linode VPS node available, with barely any load on the box -- and I'm told it should be able to handle 40k+ connections per second, if I were to do any tuning. Oh, and I have only 512Mb of RAM, which it doesn't even get close to under load. And the longest request took less than 500ms at high load.I've been using OpenResty [1] which has the Lua module and a bunch of others all configured together. Works great, and I can't complain about the performance.
Someday I'm sure I'll hand the maintenance of this off, and then I might regret not using one of the "popular" frameworks. But the code is SO straightforward using this stack -- and what I'm using it for is so simple -- I think not.
comment 15y ago · link · parent
I would say that ends the "obvious" reasons, in my opinion, though. At last count, Google was signing up 550,000 new phones per DAY, and I'm pretty sure the installed base for Android devices is now larger than that of iOS devices.
And frankly, Android is a better platform hands down for releasing a new product that's at all experimental. Have a bug? Release a new version. NOW. A new feature to try out? Release it. And then release another build to fix that new feature.
It takes at most an hour for a new build to go live on the Market, and all of that is propagation delay. Updates on iOS take a week to go live, and that's if Apple likes you. And you haven't accidentally used pinch zoom in a way that they consider to be proprietary.
People I know who have released on iOS and Android tell me they often are 4-5 builds ahead on Android, and that they hate their iOS version because it has so many bugs that Apple hasn't approved the fixes for yet. I'm frankly surprised that a start-up would release first on iOS, given the standard "release early and often" philosophy around here.
Whatever. Good luck. If I see an announcement for the Android version, I may give it a try. I'm a bootstrapped indie developer myself, so I can sympathize with your position. But my game has been polished under the Android fan base as a first release, and only in the next month will get a full release on iOS.
comment 15y ago · link · parent
They certainly DON'T enforce the policy very often. Of course they'd need an army to enforce ALL of their policies. I doubt there are many apps on the market that adhere religiously to all the policies, and most have lots of obvious violations.