HNHacker News
TopNewBestAskShowJobs

noonat

161 karma · joined February 18, 2011

I'm a developer. My website is http://nathanostgard.com/.

[ my public key: https://keybase.io/nathanostgard; my proof: https://keybase.io/nathanostgard/sigs/X7uv7WgUDYi93m9cGVZBhR865_G9ovZzAulRfq2NSI4 ]

submissionscomments
noonat··on Learn to read a binary font by reading a story
Yes, sorry, I meant the writing system.
noonat··on Learn to read a binary font by reading a story
I've been learning Hangul recently, and now every language that doesn't encode syllables into the writing system just seems immensely flawed to me. Hangul seems like a very intuitive, logical writing system. There are relatively few exceptions to the rules it sets out, though I think that's likely because it's such a young language -- more and more seem to be creeping in over time as dialects evolve.
noonat··on Stop writing classes...
I learned a lot from Quake 1. QuakeC [1] was not object oriented, although it had one struct type: an entity. The entity struct had function pointers that were used to attach handlers for various events (touch, think, etc.), but there weren't methods per say, or a class hierarchy. The code was very procedural. You could not define new types, and could only make limited modifications to the entity struct's definition.

This restriction was often frustrating, but limited types meant the language was very approachable for beginners. Once a programmer understood the entity and its attributes, they knew what they had to work with. They only needed to find interesting ways to transform data, not interesting ways to organize data.

While sometimes frustrating, the simple type system rarely limited the creativity of developers. This is evident in the wealth of mods that were created for the game. People built Diablo style RPGs [2] with it, racing games [3], and much more.

In Quake's sequels, the modding system grew more flexible (and also more complex). The number of mods seemed to decrease. The amount of mod content for Quake 2 was less than 1, and Quake 3's was far less than 2. The mods that were released were often far more polished, but I think this is representative of the skill level and determination that was required to actually build mods for those games.

Garry's Mod [4] is only modern game I've seen with a similar level of successful modding activity. It also uses a scripting language (Lua). Garry's Mod defines a strict set of structs that you use to interact with the host game engine (effects, entities, tools, and weapons). It feels very Quake-like.

I personally feel like these kinds of restrictions create flatter code, and structure that is easier to hold in my head. I find myself concentrating more on features, rather than on code organization.

[1] http://www.inside3d.com/qcspecs/qc-menu.htm

[2] http://www.inside3d.com/prydongate/

[3] http://www.quakewiki.net/archives/qca/reviews/patch70.htm

[4] http://garrysmod.com/

noonat··on Codakido, Lua/SDL programming environment for Kids, with C64-alike editor
Incorrect. The Adobe AIR SDK allows you to package Flash content as native apps for both iOS and Android. Adobe only halted development on the browser plugin for Android.
noonat··on Apple still owns tablet market, but Android narrows the gap
Does shipments reflect the number of devices manufactured, or the number of devices purchased by consumers? I can't see how the former matters, given the abysmal retail failure of devices like the Playbook.
noonat··on Show HN: We made an addictive way to browse pictures on reddit
I like this a lot. It's very difficult to hit the arrow buttons on an iPhone, though. An alternative navigation method or larger hit areas would be helpful.
noonat··on This is a Bad Time to be an FPS Fan
I loved AQ2. It was such a great blend of unforgiving gameplay and over the top action. The bleeding and kicking were awesome elements. I also liked the low amounts of ammo. Reloading meant throwing away whatever was left in your current clip, so you were always balancing risks.

These things came together to create some wonderful cinematic moments. I remember one, during a clan match: I was the last member of my team alive, almost completely out of ammo, with three remaining on the enemy team. They rushed into a room to get me. I managed to take down one with the last bullet in my gun, then kicked another out of the room, causing him to drop his hand cannon. I whirled and threw my knife into the face of the third, then grabbed the dropped shotgun and took out the second as he ran back in. I think I had to take a break to recover after that, haha.

I also remember AQ2 not showing which players were alive on either team. I distinctly remember games where I'd use the radio command to report in, only to be met with complete silence... and suddenly realize I was all alone.

Even as a long time CS player, I still prefer AQ2. I'd love to find a modern game like it.

noonat··on This is a Bad Time to be an FPS Fan
There were others before it, too.

Action Quake 2 (and its spin-offs, namely Action Half Life, and its creators went on to make CS), Rainbow Six, Rogue Spear, Rocket Arena (in all of its incarnations), The Specialists. I think the Existence HL mod did this, too?

There are also a number of games that restrict spawning in other ways, mostly by spawn point or territory control: Gloom, Natural Selection, Day of Defeat, Battlefield, etc.

noonat··on Show HN: CodeMatch: IDE autocomplete on overdrive
Great idea! It's a shame it's only available for Eclipse. I would definitely make use of this if it were available as an operating system level plugin for OS X, a la TextExpander.
noonat··on A lack of sleep can kill you
Some papers published on this topic:

Effect of sleep loss on C-reactive protein, an inflammatory marker of cardiovascular risk. (http://www.med.upenn.edu/uep/user_documents/dfd10.pdf)

Short Sleep Duration Is Associated with Reduced Leptin, Elevated Ghrelin, and Increased Body Mass Index. (http://med.stanford.edu/school/Psychiatry/narcolepsy/article...)

Neurocognitive Consequences of Sleep Deprivation. (http://www.med.upenn.edu/uep/user_documents/DurmerandDinges-...)

Insomnia with Objective Short Sleep Duration is Associated with Type 2 Diabetes. (http://care.diabetesjournals.org/content/early/2009/07/28/dc...)

noonat··on My secret Hobby: Applying for jobs
While that may be true, having a practical understanding of Python is very different from your knowledge of Python after several years of development. Every programming language is full of its own caveats and trusty passages, and experience is what teaches you how to avoid them.
noonat··on Game Development: You Need $100,000
I completely disagree with this article. Not too long ago, many in the game industry probably would have said you needed a million to make a game; now, mobile development and indie console development have changed people's perspective. That still doesn't mean that the cost for a studio like Rovio to make a game is the minimum.

Making a game for cheap requires realistic expectations and constraints. You're not going to hit every platform, you're not going to have AAA graphics, and you're not going to have 100 levels. That doesn't mean you can't have a compelling experience.

You can make a polished, successful game with two people and a couple weeks of work, if those people are experienced and you pick the right platform. Canabalt (http://www.adamatomic.com/canabalt/) is an excellent example of this. One developer did the coding, art, and sound. Another developer did the music. The Flash version only took a week to make. When that version was a wild success, a third developer ported it to iOS, which took a couple more weeks.

There are numerous examples of this throughout the indie games community. It takes a smart, experienced designer to make a successful game with such reduced scope, but it can be done.

noonat··on Closure Mode for CoffeeScript
A standard way of doing type annotations would also make it possible to generate AS3 code with CoffeeScript.
noonat··on Class-action complaint against Kissmetrics and others for use of Flash LSO [pdf]
While I don't disagree that many class action lawsuits are lawyers looking for a pay day, I think there is still value in litigation like this.

Class action lawsuits help to ensure that defendants can't get away with doing a small amount of damage to each plaintiff, but a very large amount of damage as a whole. There simply would not be an incentive to bring this sort of litigation if not for this, and companies would likely get away with these kinds of only-slightly-harmful practices. By bringing this sort of class action, the damages can be large enough that the defendant is forced to rethink their actions and make a change in their behavior.

Without class action, the damages would be small enough that the company could ignore it (because so few people were suing), or the legal system would be flooded with an inordinate number of duplicate cases in order to bring an appreciable amount of damage to the defendants.

That said, it would be nice to see some sort of restriction on legal fees, or on who is allowed to bring class action suits (perhaps only consumer advocacy groups, as is true elsewhere in the world).

noonat··on Reliability, availability and scale – an interlude
I think the main problem with this approach is that different parts of your stack have different requirements. One part of your stack might require large amounts of RAM for efficient response times, but may be used infrequently, for instance. With a separate server, you can scale that part of the stack independently. If the whole stack lives in every server, you must sacrifice performance or money for that consistency.
noonat··on 23 Year Old Mark Andreessen Explains the Web (29:55)
Yeah, I did a bit of a double take when the first transparency was pulled. That moment, more than anything else in the video, made me realize how far things have come...
noonat··on First "official" NodeJS build on Windows
There are definitely use cases. My last employer worked on browser based gaming, and we were forced onto Windows because most of the games we needed to support and work with only ran on Windows. I had a really hard tine getting any significant adoption of Node because running it on Windows was difficult.
noonat··on Arguments Object: Doctor Jekyll and Mister Hyde in Node.js
Here's a jsperf that tests just the arguments copy via slice, while loop, or for loop: http://jsperf.com/args-copy

In the browsers I tested in, it does indeed seem to be significantly faster to copy the array via a normal loop (in Chrome, Firefox, and WebKit mobile, at least). That said, don't start optimizing everything into for loops unless you've identified the code as a bottleneck. It's not worth the additional complexity for a function that's rarely called.

noonat··on This is how vulnerable your Facebook Page can really be
The article says that the scammer sent a _screenshot_ of the email (so the email was just photoshopped, and not actually signed by facebook.com).
noonat··on Computer Learns Game by Reading Manual
The article is sparse on details, but the linked MIT news article goes into more depth. Of note, the algorithm was able to win 79% of the games it played. Without textual input, it only won 46%, and a more advanced machine learning algorithm without textual input only won 62%. Pretty cool.
noonat··on SourceForge.net Gets A Makeover
Seems like a lot of the useful content is hidden. I had hopes that they had learned from GitHub, but it still takes multiple clicks to see any code.
← PreviousPage 2 of 2