1,407 karma · joined Jun 14, 2010 (16y ago) · 438 submissions
comment 15y ago · link · parent
I think his overall strategy is similar to a point that I intended to make - that there are large sets of states that are effectively equivalent, and treating them as such reduces the complexity of the problem. Not that dissimilar from alpha-beta pruning or branch-and-bound.
comment 15y ago · link · parent
Let's say the player has a row that's almost full - say, one spot left to fill all the way on the right. That means the AI needs to not give the player any block that would let him fill it (I,J,L,S,T) - so the player can force the AI to just give him O and Z blocks. If the hole isn't against the wall, the AI can only give O blocks. There are only a few, if any board states where the player cannot create a line using only O and Z blocks - the player just needs to make sure he doesn't loosen the restriction on the AI (such as by covering the hole).
If the hole is 2-wide, depending on the hole's depth, the AI may only be able to give T blocks, if even that, and for most board states, you'll probably find that T blocks can be used to make a line without loosening the restrictions on the AI.
comment 15y ago · link · parent
comment 15y ago · link · parent
s/Javascript/Brainfuck
It's not all bad, but even overlooking Standards and DOM issues, the language itself has some not insignificant, bug causing issues, as brought up in some other comments. Compiling into a strict subset of an interpreted language shouldn't be considered a sufficient alternative to a real VM, or a language without those flaws.
comment 15y ago · link · parent
"25"+5 = 255
("25"+5)/5 = 51comment 15y ago · link · parent
With Data URIs, they can convert to Base64 ahead of time, and then just concatenate them into a JSON request as needed. This potentially saves them an HTTP request per page load because it means the CSS can be static. The decoding overhead is on the client, which in most cases should offer better user perceived performance than an extra HTTP request for a dynamically generated stylesheet, so it's just a matter of whether it's outweighed by the increase in file size.
comment 15y ago · link · parent
comment 15y ago · link · parent
Strictly talking about the difficulty of concepts, a curriculum based off of SICP (or something with a similar emphasis on functional programming or math) will probably be full of new concepts even for those who've had some experience programming. I'd say this is a good thing for everyone involved, because it both levels the playing field for those without experience, and ensures that those who have some still get something out of the course.
Most schools, though, start with imperative concepts (as does AP Comp Sci), which isn't a bad thing either, but someone with experience won't get as much out of it until later in the course.
If you're applying to schools or about to start a class, it wouldn't be a bad idea to dig through the department website and see if you can find the site for the class to see what it entails.
comment 15y ago · link · parent
If you're looking for tips - when I was taking multiple languages at once (Japanese, Chinese, and Korean), between classes I listened to music from the language of the class I was about to go to, to get my mind switched into that mode. I'm also under the impression that the music helped with my pronunciation a lot (but not with listening comprehension as much as I'd've expected).
comment 15y ago · link · parent
Either way, it seems that the thing to do would be to get more practice independently. If you're really worried about that particular course, see if you can read up on some of the material beforehand. If the assignments are published somewhere publicly, you could even start on them early.
Also, dropping the course and re-taking it isn't really a dirty trick - they just took some more time to learn the material. You could do the same by getting a head start practicing it. If they finished with a 96% the second time, there's a good chance they learned more from it than someone who got through with a 50% and never touched the material again.
comment 15y ago · link · parent
comment 15y ago · link · parent
comment 15y ago · link · parent
From the wikipedia article cited above:
"Rape prevalence among women in the U.S. (the percentage of women who experienced rape at least once in their lifetime so far) is in the range of 15%-20%, with different studies agreeing with each other.
I'm personally not aware of any statistics that would justify calling rape an 'ultra-rare' occurrence in any part of the world; perhaps someone will enlighten me.
comment 15y ago · link · parent
That is, I think he was just trying to assert that they are effectively a minority, and that their concerns have a legitimate basis, despite the fact that many outside their group may have trouble empathizing with them.
comment 15y ago · link · parent
At first, that struck me as excessive, too, but on the other hand, I can't help but wonder how much of an effect language has on the way people think, and gender-specific pronouns are something that really reinforces the concept of "other".
There's no logical reason for encoding gender into the grammar of a language, particularly as opposed to some other construct that would be better at distinguishing between multiple subjects in the same passage.
Of course, I wouldn't go to the extent of forcing children to use non-standard language, but I can't disagree with the idea that we'd be better off switching to gender-neutral pronouns.
comment 15y ago · link · parent
- The population he speaks for is a minority: they aren't yet well represented within the group
- Those who are in the group may feel uncomfortable speaking out about it, particularly because they're a minority
- The issue is important enough to that minority that it may lead them to leave or not join (and so continue to be underrepresented), and the group and the minority are important enough to him that he thinks it's worth addressing.
The "long rant" serves to bring attention to the significance of the issue, as does the fact that someone so well known is taking the time to make it.
comment 15y ago · link · parent
comment 15y ago · link · parent
http://news.ycombinator.com/item?id=2525621
There was also another discussion earlier today on youth unemployment in the US:
http://news.ycombinator.com/item?id=2730268
which argued that youth unemployment is related to the 55+ demographic retiring later (as opposed to minimum wage laws).
comment 15y ago · link · parent
ST makes navigating the code more quick and smooth - the minimap takes away the feeling of looking at code through tunnel vision, you can preview files much more quickly, and view more code at once with minimalist full-screen mode settings and multi-column layout. The regex search with active highlighting in both the minimap and the file is also nice, and multi-select is pretty helpful for refactoring repetitive code.
That said, ST is just a text editor, not an IDE - while some features, like autocomplete, are partially compensated for, it doesn't do type checking or follow references across files, so other features that stem from those will be missed; e.g. refactoring across multiple files is usually faster in Eclipse. I would usually do most of my editing in ST, and then type-check, compile, and debug in Eclipse.
comment 15y ago · link · parent
Still, the typical advice is probably pretty solid for situations where you don't know where to start.
comment 15y ago · link · parent
Again, I'm not saying Apple isn't dominating, but it does seem like the question was written with the conclusion already in mind.
238.
Ericsson buys Telcordia (Bellcore)(dealbook.nytimes.com ↗)
2 points · by T-R · 15y ago · discuss
comment 15y ago · link · parent