HNHacker News
TopNewBestAskShowJobs

Tomek_

769 karma · joined September 23, 2010

submissionscomments
Tomek_··on Apple JavaScript Coding Guidelines [pdf]
Already discussed in http://news.ycombinator.com/item?id=1854783 with the same consensus, it's a terrible guide. Read Crockford, Stoyanov, Bolin instead.
Tomek_··on Once Greece goes...
If you haven't already you should also read http://www.vanityfair.com/business/features/2010/10/greeks-b... to get more of a perspective on what went wrong in Greece.
Tomek_··on Once Greece goes...
Have you read the article you comment on? There's a paragraph or two about that there.
Tomek_··on Nokia N9
So you'd basically want Nokia to make UI harder to use just because of those rare cases when someone borrows his phone to the person he/she doesn't trust?
Tomek_··on Nokia N9
I think that using swipe as the main (almost exclusive) way to navigate around the phone's functions is indeed, well, not revolutionary, but (at least to some extent) innovative and yes, also "new, fresh, remarkable". Sure, UI borrows some ideas from WinMo7, maybe from webOS too, but it's still much fresher than, say, Android.
Tomek_··on Exposed: Facebook’s Secret iPhone Photo Sharing App (Which Looks Amazing)
Wouldn't be surprised that in case of Color the "insane differentiation" would be the patent portfolio they allegedly have.
Tomek_··on How to steal a Russian airport
Please don't put all of post-communism-counties into one basket, as there are vast differences between them how they are dealing with democracy/capitalism. Russia is quite a special case here and unfortunately most of the times is an example of "how not to do things". But if you look at countries that were not part of Soviet Union (Czech Republic, Poland, etc.), or Baltic-countries (Latvia, Estonia, etc.) you will get a complete different image of things.
Tomek_··on Airbnb Has Arrived: Raising Mega-Round at a $1 Billion+ Valuation
Dunno, maybe that's the other one but as far as I know CouchSurfing is still alive and kicking (see: http://www.couchsurfing.org - they claim to have almost 3mln users), it's just that it isn't a commercial thing.
Tomek_··on These are things in PHP which make me sad
I know you can do it, but it produces quite an overhead and it's ugly. But that's for another discussion ("sad things in JS" maybe) - here my main point was that, no, public/protected/private is not a dumb idea in dynamic languages.
Tomek_··on These are things in PHP which make me sad
Recently at my company we're writing a lot of JS and its' lack of "public/protected/private" doesn't make it easier to maintain or test. Actually, it's quite frustrating because you know you can't test it properly - everything public? it's a ticking timebomb, someone at some point will simply override your method somewhere and hell will broke loose
Tomek_··on Miro 4, the open source music and video player, is released
If you're in the one of lucky countries (or have credit card from one of them) I'd suggest Spotify, their client is marvelous (the best UI for a music player ever and also very fast), supports playing local files and since last version also syncing with Apple devices (maybe some others too, haven't had occasion to check).
Tomek_··on Why I get my entertainment via BitTorrent
Well, but isn't that what the whole problem is about? Doesn't matter if it's BBC, iTunes or Spotify - it's that the country-based licensing model doesn't work in the age of Internet.
Tomek_··on Why Geeks Should Love HP WebOS
So when those new phones they showed some months ago at Mobile World Congress are coming out?
Tomek_··on Guy unknowingly live tweets the Osama raid in Abbottabad
Yeah, times didn't hold up in the yesterday's reports, the attack was around 12-1AM in Pakistan as witnesses' reports state so it must have been around 3-4PM in Washington.

Today's news are more accurate on that matter: "At 2:05 p.m., Mr. Panetta sketched out the operation to the group for a final time. Within an hour, the C.I.A. director began his narration, via video from Langley. “They’ve crossed into Pakistan,” he said." [http://www.nytimes.com/2011/05/03/world/asia/03intel.html?pa...]

Tomek_··on Guy unknowingly live tweets the Osama raid in Abbottabad
NYTimes:

"Muslim tradition requires burial within 24 hours, but by doing it at sea, American authorities presumably were trying to avoid creating a shrine for his followers." [http://www.nytimes.com/2011/05/02/world/asia/osama-bin-laden...]

"It was 3:50 on Sunday afternoon when President Obama received the news that Bin Laden had tentatively been identified, most likely after a series of DNA tests." [http://www.nytimes.com/2011/05/02/world/asia/02reconstruct-c...]

Tomek_··on The scoop on reCAPTCHA founder's new startup Duolingo.
The actual duolingo part in this video starts at about 12 minutes mark. Before that it's about reCAPTCHA and such.
Tomek_··on "A JVM Does What?"
Re: side note, that's why they announced this: http://buzz.blogger.com/2011/03/fresh-new-perspectives-for-y...
Tomek_··on [dead]
The Ryanair bit is funny (if you know how Ryanair normally operate): "They probably charge you if you do".
Tomek_··on Stop Using Mocks
Of course 100% code coverage won't make your code better in every possible aspect, nor it guarantee that tests are perfectly written, but at least a) the tough parts of the code won't be skipped during the test b) you will have cleaner, more usable (testable) API.
Tomek_··on Stop Using Mocks
There is only one good code coverage number and it's "100". If you aim for 100% code coverage then it really helps make your code better as you must test all the parts, not only the easy ones - that forces you to write code that's easier to test, and "code easier to test" equals "better code" (more sane interfaces/API, decoupled classes, etc. etc.).
Tomek_··on Firefox 4 is here
Maybe it's only me but TabCandy/Panorama feels slow and clumsy, and there's too much mouse clicking/moving involved in operating it (or so it seems after 5 minute of trying it, maybe a matter of getting used to/discovering keyboard shortcuts). I like Opera's solution more (is less revolutionary, and thus easier to adapt to probably). But other than that first impressions are good: feels faster and more responsive (at last!). Maybe I will give it some more tries to see if it will survive a stress test of a normal day-to-day use with tons of tabs opened, etc.
Tomek_··on [Follow-up Results] Your favourite text editor/IDE?
This, plus, for example Scala appears in "others" like 4 or 5 times, why not put it together?

Also, why no relation between language and text editor and IDE?

Tomek_··on I think tumblr has a huge security hole
Please name at least 5 of them.
Tomek_··on I think tumblr has a huge security hole
- Nope, in PHP you don't generally put code in the web root.

- PHP and generally all the frameworks based on PHP are strongly encouraging putting code outside of the web root. Just take a look at directory structures in Zend Framework (http://framework.zend.com/manual/en/learning.quickstart.crea...) or Symfony2 (http://symfony.com/doc/2.0/book/page_creation.html#the-direc...)

- ...and almost everyone that uses PHP professionaly does that.

Tomek_··on The New York Times to Begin Charging for Web Use on March 28
evercookies to the rescue then (http://samy.pl/evercookie/).
Tomek_··on Dropbox: The hottest startup you've never heard of
My mom did the same, except she called using Skype :)
Tomek_··on Dropbox: The hottest startup you've never heard of
Certainly better than their previous attempts: http://www.thedailyshow.com/watch/mon-february-28-2011/the-b...
Tomek_··on Drizzle7, a Rackspace backed MySQL fork - The icing on the cake
Not denying it, both projects have slightly different goals. But since some people reading this discussion might consider switching from MySQL to Drizzle it doesn't hurt to present them other options, which in some cases might suit them better (depending on what are your exact needs).
Tomek_··on Drizzle7, a Rackspace backed MySQL fork - The icing on the cake
Remember there is also MariaDB, quote from they webpage:

MariaDB is a database server that offers drop-in replacement functionality for MySQL. MariaDB is built by some of the original authors of MySQL, with assistance from the broader community of Free and open source software developers. In addition to the core functionality of MySQL, MariaDB offers a rich set of feature enhancements including alternate storage engines, server optimizations, and patches.

http://mariadb.org/

Tomek_··on Stack Overflow: Printing 1 to 1000 in C
Javascript, validity depends on how exactly do you define conditions and loops:

  var items = [];
  var rec = function(item) {
      var func = [];
      func[true] = function(item) { items.push(item); [item-1].map(rec); };
      func[false] = function(item) {};
      return func[Boolean(item)](item);
  };
  var item = [1000];
  item.map(rec);
  console.log(items.reverse().join(','));
Won't do in browsers due to recurssion limit but change [1000] to [10] and you'll see it works.
← PreviousPage 2 of 5Next →