HNHacker News
TopNewBestAskShowJobs

286c8cb04bda

414 karma · joined October 31, 2011

submissionscomments
286c8cb04bda··on Linus Torvalds on new Chromebook Aura UI
> To clarify, I don't think it's a coincidence and I think Google employees probably submitted these.

If you look at the posters' profiles you can see where they both work. (Neither is currently a Google employee.)

286c8cb04bda··on Both kinds of Cocoa
Speaking of using other tools for testing and prototyping, there are REPLs available for Cocoa.

My personal favorite is Nu[1] with Nutronic[2], though you can do similar things with MacRuby and PyObjC.

[1] http://programming.nu/

[2] http://itfrombit.github.com/nutron/

286c8cb04bda··on Hacking The iPod: How I Earned $65K In High School
How do you go from friendly to total dick in so few characters?

Is there any possible outcome to your question that would serve any purpose other than to rile the parent poster?

286c8cb04bda··on Resumes are dangerous
> There are however multiple projects that I think deserve priority when looking through my github, but as far as I can tell, there is no way for me to make it clear what those are.

You should use your user page[1] to draw attention to the things you think are most important.

> Additionally, if I fork a project, it's likely just so that I can add a fix and issue a pull request, that's additionally something I don't think people need to see.

I disagree. Finding your way around a foreign code base enough to make the changes you need is an essential skill for a developer. Repositories you've forked and made pull requests for are a great way to demonstrate that.

[1]: http://help.github.com/pages/

286c8cb04bda··on Introducing Google Drive... yes, really
The API is already open: https://developers.google.com/drive/
286c8cb04bda··on Repository Structure and Python
> How is swapping in a SQLite database any different than separating development / testing / production databases? At work we use a test database that is schema-only. All tests populate the data during setup, and rollback on tear down.

It's better for me because it works when I'm on an airplane, that's all. If you do all of your development where the test database is accessible, then there's little to no benefit.

> The fear of running unit tests in production is that someone screwed up the testing configuration and your database writes are no longer happening on a mocked SQLite connection, but hitting the live database. Oops!

I Agree. Unit tests should never be run in or near production systems. The whole purpose of the tests is predicated on the assumption that your code is broken. Do you really want to bring broken code near customer data?

286c8cb04bda··on Repository Structure and Python
For database testing you'd mock[1] the connection in some way. I've done it before by swapping in an SQLite database with some sample data.

[1] http://en.wikipedia.org/wiki/Mock_object

286c8cb04bda··on Light Table - a new IDE concept
Take a look at these:

[1] http://docs.python.org/library/parser.html

[2] http://docs.python.org/library/ast.html

[3] http://docs.python.org/library/symtable.html

286c8cb04bda··on PHP Sucks But I Like It
This is a warning for future you:

Objective-C, when used like Objective-C and not just C-with-classes, is a lot like Ruby. Both have a shared heritage in Smalltalk.

E.g. http://www.cocoadev.com/index.pl?HigherOrderMessaging

286c8cb04bda··on The GitHub Styleguide
I'm not sold on tossing "and" and "or" out the window, but wouldn't "document.saved? or document.save!" read better as "document.save! unless document.saved?"
286c8cb04bda··on PaintCode - Vector Based Obj-C Graphics Code Generator
I've used it, and had no problems at all. It's missing a few features before I can whole-heartedly recommended it over Opacity[1], which is what I use for the same purpose right now. Right now I'd need to make separate on/off state, for example, for each button. Opacity's factories & variables make that much easier.

That said, Opacity's development has slowed to a crawl. If the gentleperson(s) behind PaintCode keep it up, they will surely surpass it very soon.

[1]: http://likethought.com/opacity/

286c8cb04bda··on Adobe's 9% Flash tax
> Since when has the SWF format had "fundamental openness"?

Since approximately the 1st of May, 2008[1]. Adobe publishes a specification of the file format[2], currently at version 10[3]. N.B. The Wikipedia entry suggests[4] that the specification does not exhaustively cover the capabilities of the format.

[1] http://www.adobe.com/aboutadobe/pressroom/pressreleases/2008...

[2] http://www.adobe.com/devnet/swf.html

[3] http://wwwimages.adobe.com/www.adobe.com/content/dam/Adobe/e...

[4] https://en.wikipedia.org/wiki/SWF#Licensing

286c8cb04bda··on Why did Objective-C never catch on? (Ask Slashdot, Aug 2000)
> They wouldn't have rewritten those from scratch, would they?

I do a lot of cross-platform integration. This is based on my experience. If you know you're going to cover multiple platforms from the beginning, you will do a lot of things to make that a lot easier.

Most of those would be written to target a graphics framework (like OpenGL) for the visual elements. Then, for each platform there will be a host that OS-specific things like file & network access. You can also use libraries to abstract that for you.

So the amount that needs to be rewritten depends on how similar the new platform is to the old ones. Going from PC to iOS would be about 40%. Going to Nintendo Wii, maybe 70%.

Unless the platform is particularly unusual, most of the hard problems were solved in the first release, adding additional platforms is fairly mechanical. So even if you need to replace >50% of the code, you know roughly how you're going to do it before you start.

286c8cb04bda··on Learn to Pick Locks for Fun and an Increased Understanding of Security
That's probably a typo, and should be "bogota"[1]. His titanium ones were probably bought from SerePick.[2]

[1] http://www.theamazingking.com/bogota.php

[2] http://www.serepick.com/products.html

286c8cb04bda··on Create 2D games in Lua and LÖVE.
Not the parent, but -- in my experience -- many libraries from the community were written by enthusiastic amateur developers. Finding ones I enjoyed using was very needle-in-a-haystack.

One recommendation: https://github.com/kikito

286c8cb04bda··on Create 2D games in Lua and LÖVE.
For mobile, take a look at Moai[1]. I don't like it as much as LÖVE -- it feels more low-level and fiddly to me --but it's Lua and it's pretty full-featured.

[1] http://getmoai.com/products/moai-sdk

286c8cb04bda··on agentzh's Nginx Tutorials
> What browser + OS you use?

I saw the problem with Firefox 10 on CentOS. My default font was specifically configured to Bitstream Vera Serif.

Setting the default font in the Preferences seems to only change it for the encoding in the active tab (unless you go into the Advanced dialog). For several Asian languages it wanted to use "serif", which appears to be the 20-year-old X11 default version.

286c8cb04bda··on Why was Tanenbaum wrong in the Tanenbaum-Torvalds debates?
> I'm asking you what the conceptual difference is between running a bunch of "macrokernel" systems inside a hypervisor and running a single microkernel with a bunch of processes. There is none: they are the same technology.

Complexity is the difference.

Hypervisors "won" because it was easier to implement; They only had to add another layer to the stack, rather than fundamentally change the structure of the OS.

The outcome is a more baroque collection of code, though. Worse truly is better.

286c8cb04bda··on agentzh's Nginx Tutorials
That page declares lang="zh" in the html tag. So it's probably not using the default font for Western or Unicode, but whatever the browser maps to Simplified Chinese.

In my case that was much uglier, and I had to fix it to read the page.

286c8cb04bda··on Codename: Obtvse
> I would never repaint van Gogh, because I'd rather paint my own things.

If I were a painter, I would paint me the hell out of some van Gogh. In every skill I've practiced seeing what the masters do, reproducing it (especially figuring out _why_ they did it that way) has been a very useful learning technique.

More to the point of your post, and this story: Would I sell my van Gogh copies? Probably not. Not because I think there's something terribly wrong about it. Mostly because they'd still be inferior to the original.

I would certainly give them away to friends who wanted to hang it in their den or library, though.

286c8cb04bda··on The Shadow Superpower
Looks like the underground will need to find an alternative currency. Bitcoin?

In the long term, Bitcoin might be a viable alternative. It really hinges on the adoption of cellphone applications for exchanging them, I think.

In the short term, though, cash is king. If they stop printing paper kronor in Sweden, then the underground will start using somebody else's paper, be that NOK or USD.

As an example, I'd guess there are areas in Mexico where you can get by entirely in USD, because there's so much of it there.

286c8cb04bda··on The Shadow Superpower
> One thing the article doesn't mention is that the Somalis are actually making a pretty big impact as proprietors of a sort of 'banking' system for these kinds of transactions.

That system is "hawala"[1]. The Somalian diaspora (caused by perpetual civil war) is spreading the institution into many countries where it's not been practiced historically.

[1] http://en.wikipedia.org/wiki/Hawala

286c8cb04bda··on Lawrence Lessig: What's really wrong with Goldman Sachs
> And even that's pretty hand-wavy. What makes a "professional company" and why would such a thing have a "responsibility to the public" above and beyond any other company?

I suspect he's using the word "professional" here in the more traditional form. He's roughly referring to careers like doctor, lawyer, banker, where there is usually formal licensing based on public interest.

That's e.g. why there is a lot more paperwork to file when you start a hospital or a bank than a widget shop.

286c8cb04bda··on Vector based UI design tool that generates ObjC
It looks like to biggest extra is the ability to insert variables into the generated, so you can make e.g. a blue and orange button from the the same output.
286c8cb04bda··on Vector based UI design tool that generates ObjC
> Apple does not allow you to sell iOS apps outside its app store,

This is incorrect in a minor, but fundamentally important way, I think:

Apple does nothing to prevent you from selling outside their store. What they've done is make it difficult for the average iPhone owner to buy from you.

You need to target a specific demographic that can overcome those obstacles and will pay enough to make it worth your time.

In practice, that probably means enterprise.

286c8cb04bda··on How I built a startup while working full-time in Finance
What would I search for if I wanted to know more about this story?
286c8cb04bda··on Bash as a Service
Yes, the value here is in 'where I've set up ImageMagick'.

If I have a task that could be made easier by having ImageMagick, but I don't have it on any machine I have easy access to, then I have to deal with the overhead of getting the package, installing the package, configuring the package, and possibly removing the package when I'm done.

Even though I know how to do all things, it would take me some time to get it all done, and then I'd have to waste brainpower in those things, and not the real problem I'm trying to solve.

A lot of that is solved by the "better" distributions, e.g. Debian has nearly everything under the sun.

But not everything. That's where the opportunity might be.

I probably wouldn't pay a dollar a month just for ImageMagick, but I might pay a few for shell access to a machine that has all of the new and shiny things available, things too new to get into the main repositories, and keeps them up-to-date and keeps adding new stuff, so I don't have to handle the sysadmin tasks for yet-another-box.

286c8cb04bda··on After 244 Years, Encyclopaedia Britannica Stops the Presses
> Only 8,000 sets of the 2010 edition have been sold, and the remaining 4,000 have been stored in a warehouse until they can be purchased.

I suspect it won't take them very long to sell those copies after this announcement.

286c8cb04bda··on Matt Cutts: One of the more fun gadgets I've been playing with lately…
> I gave up wearing wristwatches some time ago, if I did still wear them, this would be pretty interesting.

I still wear a watch but check the time on my cell phone probably 50%. The watch has become mostly just a functional piece of jewelry.

286c8cb04bda··on Why Objective-C is Hard
> The parent said that Apple "could improve" their documentation, not that it was worse than Google/Microsoft/IBM/whomever.

Do you have any examples of big libraries where "they could improve the documentation" is untrue? I can't think of any offhand.

(This is not snark. I'm honestly interested if you do.)

APIs are perpetually under-documented, in my experience, so the parent comment's observation is essentially an empty statement.

← PreviousPage 4 of 6Next →