HNHacker News
TopNewBestAskShowJobs

einaregilsson

703 karma · joined December 6, 2010

submissionscomments
einaregilsson··on Ask HN: Why are Twitter bots tweeting my stuff?
That's probably a good idea, to just report them. The ones that have more than one tweet still seem very much like bots, but the ones that just have my tweets are just bizarre. They don't even follow people, so what's their purpose? I would have thought the purpose of bots on twitter was either to boost follower counts or retweet counts, but these seem to do neither. Unless they're just spamming people with private messages or something
einaregilsson··on I Just Gave Up $4000 Per Month to Keep My Freedom of Speech
What is the project? Is it the card game Shithead, or something else?
einaregilsson··on Ask HN: who started something in 2012 which is already profitable?
Thanks. I used to pretty paranoid about the source, running it through my own obfuscator that changed pretty much every identifier to a $nr, but that kept giving me problems, and in the end I figured there aren't really any secrets in the source, so no it's just minified with the disclaimer that you can't republish it as is, although you're free to use it for inspiration.
einaregilsson··on Ask HN: who started something in 2012 which is already profitable?
Yes, pretty much. If I look at analytics for Spades there are around 77% returning visitors, but I'm pretty sure they originally came through Google, since the sites aren't really advertised anywhere. They're linked from my own site, and I got one site that has card games rules to link to some of them, but that's it. They're not linked from any gaming sites or anything.
einaregilsson··on Ask HN: who started something in 2012 which is already profitable?
Thanks!

Funny thing is that I never play them myself after I've finished them. The interesting part for me is creating the computer player, and seeing if I can make him win more than the human players, I have some stats in Google Analytics that can show me that. Since the computer plays like I would play it's kind of like I'm playing against all the players :)

When I'm testing I usually let the computer just play against itself, add ?autoplay to any of the game urls and when you press Deal you'll see four computer players playing against each other...

einaregilsson··on Ask HN: who started something in 2012 which is already profitable?
Well that's weird. There are two AdSense skyscrapers, one on each side of the table. How wide is your screen?
einaregilsson··on Ask HN: who started something in 2012 which is already profitable?
Started by accident. First game I made was Idiot, and got the domain idiot-cardgame.com for it, since I had no plans to create more at that time. When I made Crazy Eights I couldn't really use idiot-cardgame.com for it, so I gave that its own domain. After that it was just a kind of pattern I guess. I also had some vague ideas that maybe I'd get more google juice out of having links from different domains to each other.

I have thought about changing it all to one domain, and setting up some 301 redirects, but I'm just afraid to mess up my google rankings. For the solitaire game I re-use a domain, e.g I have http://www.solitaire-cardgame.com for Klondike solitaire (or classic solitaire), and then I have http://www.solitaire-cardgame.com/freecell for Free Cell solitaire.

einaregilsson··on Ask HN: who started something in 2012 which is already profitable?
Yes, I'm kind of amazed at it myself. I rank fairly well for some of the most relevant keywords now, and that's where almost all the traffic comes from.

What I think I'm doing right:

* Simple to start. As soon as you enter the page you see the table, you just need to press Deal and you've started. No "enter your name", no choosing options before starting, no nag ads.

* Single page sites. The rules for the games are on the landing page, which means it has more content and is likely to be ranked higher by Google.

* Keep it simple. As a programmer I had the urge to create high scores, multiplayer, logins, track results etc, but at the end of the day most people just want to spend 10 minutes playing, and leaving out those things also means it's maintenance free, and frictionless to get started.

einaregilsson··on Ask HN: who started something in 2012 which is already profitable?
I created a few javascript card games, most of them in late 2011, but they really started earning this year. So far have made Spades, Hearts, Go Fish, Crazy Eights, Shithead and a couple of solitaires. Revenue has been steadily rising, and is a nice little side income now. http://www.spades-cardgame.com is one, the rest are linked from there.
einaregilsson··on Ask HN: Can I create an online verson of a trademarked card game? (UNO)
Well, guess that's not going to work then :/. Unless I move to some country that's not part of the convention...
einaregilsson··on Ask HN: Can I create an online verson of a trademarked card game? (UNO)
Well, I'm starting by just asking Mattel if it's OK. If they just say no I'll find some other game to do. But I'm hoping they'll say it's fine with some disclaimer or something, because I'd really like to create the game :/
einaregilsson··on Ask HN: Can I create an online verson of a trademarked card game? (UNO)
But is Copyright/Trademarks international? I live in Denmark, would that make any difference?
einaregilsson··on Ask HN: How do you promote your web apps?
For http://www.hearts-cardgame.com/ I wait until you are into your second game and then I slide down a little, uh, top banner (what are those things called?) which has the text

"Hi there! Looks like you're enjoying the game. That's great! We'd love it if you could help us out by sharing it with your friends:"

And then has the usual facebook/twitter/etc buttons. There is also a discreet "Share with your friends" link that makes the banner pop down, I like that more than having all those ugly buttons visible the whole time. I wait until you're into your second game because I figure by that point you must like the game, otherwise you'd have left, and then it's maybe more likely that you'll help me promote it.

All my online card games (3 of them) also have a "Also try our other games: X and Y" links, which drive a fair bit of traffic between them.

einaregilsson··on Ask HN: Have you been offered money for a disguised ad on your website?
The site is a simple tech blog which doesn't get much traffic at all. The particular page they wanted to use is about a card game I created, and ranks well for the phrase "idiot card game" but pretty much nothing else.

I would have taken 200$ for an actual ad on that page, but pretending that I like something personally for money is not something I want to do.

einaregilsson··on Why are programmers afraid of not using semicolons in JavaScript?
It wasn't visible for me on that one comment. I don't know why, I thought it was too deply nested or something, but now I see it. Weird.
einaregilsson··on Why are programmers afraid of not using semicolons in JavaScript?
Well, at least we agree that 'return i++' is terrible practice (although it has nothing to do with semicolons) :)

But when you write Python code, do you then end every line with a ; ? To make it more readable for yourself?

einaregilsson··on Why are programmers afraid of not using semicolons in JavaScript?
@eropple: So you put semicolons after every line? Even after block statements {} ? Why not, if the goal is to be consistent?
einaregilsson··on Why are programmers afraid of not using semicolons in JavaScript?
Exactly! The semicolon prefix can be put even more simply: Prefix any line that starts with punctuation with a ;

There, you've just fixed all the cases that are likely to go wrong.

einaregilsson··on Why are programmers afraid of not using semicolons in JavaScript?
I don't think that's comparable. Maybe it would be if every new English sentence started on a new line ;)

The capital letter in English is a strong visual indicator that a new sentence is starting. In code I think the line break does that more than well enough, no need for the ;

einaregilsson··on Why are programmers afraid of not using semicolons in JavaScript?
There are two possibilities:

1. Prefix lines that start with punctuation, specifically [(-+/ with a ;. Then omit them everywhere else. Lines that start with punctuation are a tiny subset of all lines generally.

2. Postfix every line with a ;, "just in case"

I can't see how nr. 1 is harder. And in case 2 you don't actually put ; at the end of every line, you don't put them after {} blocks for example, so it's not like it's somehow easier to remember.

"Because we're used to doing it that way" is a reason I guess, but not a great one in my opinion.

einaregilsson··on Why are programmers afraid of not using semicolons in JavaScript?
Yes, you could just add a semicolon in front of lines that start with punctuation (tiny percentage of all lines) or you could just stick them at the end of every single line...
einaregilsson··on Why are programmers afraid of not using semicolons in JavaScript?
return i++ is not ambigous. It will return the current value of i, e.g. if i was 2 it will return 2, not 3. But that's just how the post increment operator works (in every language that I know of), that has nothing to do with semicolon insertion.
einaregilsson··on Why are programmers afraid of not using semicolons in JavaScript?
Yes, the two cases where I actually think I could run into that are that and var x = i (function() {...})()

where it wil think i( is a function call.

einaregilsson··on Why are programmers afraid of not using semicolons in JavaScript?
Well, I think it's more readable without semicolons. Less linenoise. And after reading about exactly how it works I'd rather omit them where I can. The cases where it behaves differently than expected are almost all cases where I think "I would never do that anyway"
einaregilsson··on Why are programmers afraid of not using semicolons in JavaScript?
Ahem, maybe not as clear as I thought, since I found a few other edge cases I didn't know of in this excellent article:

Best article I've read on the subject: http://inimino.org/~inimino/blog/javascript_semicolons

einaregilsson··on Why are programmers afraid of not using semicolons in JavaScript?
But isn't that part of learning any language? There are plenty of weird edge cases in other languages but we get used to them. Basically this boils down to:

"When you have a single statement, that stretches out over more than one line, but those lines are legal statements on their own, then it won't work like you want it to"

I would guess that the number of statements that stretch out over many lines are a very small part of the overall number of statements for most code.

But it just seems like most developers think that javascript might insert semicolons all over the place. Which it won't, the rules are clear once you learn them.

einaregilsson··on Ask HN: What has been your most profitable side/weekend project to date?
Basically just posted about them on Facebook. Two of them also have links on the Wikipedia article for that game. And they all link to each other.

The biggest referer is Facebook, with Google coming in second. Ive also created all of them as Chrome Apps in the Chrome Web Store so people can "install" them there. (basically just a big bookmark on your New Tab page in Chrome)

einaregilsson··on Ask HN: What has been your most profitable side/weekend project to date?
My current hobby is writing simple cardgames in javascript. Currently I have Hearts - http://www.hearts-cardgame.com , Idiot/Shithead http://www.shithead-cardgame.com and Crazy Eights http://crazyeights-cardgame.com .

Am getting my first payout from Google Adsense this month, about 120 $. Which isn't much, but they're pure client side games, require no maintenance or anything so I'll just keep getting a small check every month :)

einaregilsson··on Ask HN: Do you automate most of your routine tasks?
I try to automate as much as I can. I also use these little programs/scripts as opportunities to learn something new. Examples:

1. We had a support portal at work which I had to check regularly during the day. I wrote a small program that monitors the relevant page and pops up a taskbar notification when something new arrives. Used the opportunity to learn about taskbar notifications and a little WPF.

2. I sometimes get database backups from customers and have to restore them on my machine, which means opening SQL Management studio, clicking and right clicking a bunch of things. Then I need to add myself as user, change a couple of settings before I can use the database for anything. I wrote a small utility so I can right click on any .bak file in explorer, choose Restore database and update the relevant tables so the database is ready to use right away with the connection string on the clipboard. Also used it as an opportunity to learn about windows 7 taskbar progress bars.

Basically I like doing small projects, but I never finish them unless they really do something. So, automating stuff I do makes much more sense than learning by following a tutorial that builds something useless.

← PreviousPage 2 of 2