Readit News logoReadit News
Donito commented on Ask HN: How/where should I host my personal site?    · Posted by u/dajomu
Donito · 12 years ago
Heroku's free plan is a good option, but it does require some knowledge of git/one of their supported framework. Good learning regardless.
Donito commented on Ask HN: Interview Questions for Front End Developers    · Posted by u/gcz92
Donito · 12 years ago
Create an infinite scrolling effect for an image gallery. This will test out the following:

* Ajax * Event handling (scroll) * Basic arithmetic (e.g. when to trigger a new request based on % page scrolled) * Template/DOM insertion * Thinking about edge cases (e.g. what happens when the page is resized, or the ajax request has no more elements to return)

Donito commented on Javascript Constructors and Prototypes   tobyho.com/2010/11/22/jav... · Posted by u/nccong
pests · 12 years ago
Did you see the article he linked about why he doesn't use them?

http://mislav.uniqpath.com/2010/05/semicolons/

Not reading an article because of that would be like not reading other code because it uses 2 spaces for tabs instead of 4. Makes no difference to the language, only to you.

Donito · 12 years ago
Terrible article in my opinion teaching some really bad habits that will cause hard to find bugs over time. Truth is, omitting semi-colons is probably fine at smaller scale, but for larger javascript code base with multiple maintainers, it's definitely a better practice in my opinion. Oh well, no point in me saying what has already been said :)
Donito commented on ChessBoardJS   chessboardjs.com/?utm_sou... · Posted by u/ca98am79
ybaumes · 12 years ago
It seems to me it is not a "real" AI. I began a game, and after complete development on my side (about 5-6 moves), the opponent AI did only developed pawns, which shows off its limits.

I am not a javascript expert. but given the size of the code, I doubt there is a great IA underluying. Actually I've browsed the mignified code in order to find the AI implementation. The only clue I spot was a call to the Random() function. I won't state it for sure, because I wasn't able to understand the whole code. But I highly guessed it is the basis of the AI implementation. :-)

Donito · 12 years ago
Play a full game and you'll be surprised, the AI is actually surprisingly good and gets better as the game progresses, especially given the size of the code.
Donito commented on Why is there no (ad-free) YouTube Premium?    · Posted by u/peteforde
Donito · 12 years ago
There's hidden cost associated with offering a paid membership for "privileged" users, in that it affects the overall perception of the product. Many non-paying users would feel negatively about it, and start looking for alternatives. As a result, the membership fee has to cover (1 + lost users) advertisement revenue.

Deleted Comment

Donito commented on Ask HN: What's a good way for an engineer to learn design    · Posted by u/dhruvkaran
Donito · 12 years ago
Some good ideas in this blog post: http://karenx.com/blog/how-to-become-a-designer-without-goin... (I'm not the author of the post)
Donito commented on Ask HN: What board game do you like?    · Posted by u/eimieimi
Donito · 12 years ago
I stick to the basics: Chess.
Donito commented on Ask HN: Accepting Bitcoin for freelance work    · Posted by u/wylie
wylie · 12 years ago
I would consider offering a discount of sorts when paying via bitcoin, or setting a fixed conversion rate (right now something like $120 per BTC has been fairly stable).

But I agree, there's nothing to prevent me from accepting the money via normal means, and simply buying my own bitcoins.

Donito · 12 years ago
120$/BTC hasn't been fairly stable. Just a few days ago it was at 70.
Donito commented on Ask HN: Pilot jobs in San Fran?    · Posted by u/JHof
Donito · 12 years ago
Would you be interested in trading services? I can teach you how to code, in exchange for flight instruction. I'm in SF.

u/Donito

KarmaCake day60November 29, 2011View Original