HNHacker News
TopNewBestAskShowJobs

hamidpalo

301 karma · joined July 25, 2011

Developer at Trello.

Twiter: http://twitter.com/hamidp Trello: http://trello.com/hamid

submissionscomments
hamidpalo··on The Facebook Offering: How It Compares
Tech isn't only the internet. Microsoft and Apple both went public before the Internet and managed to do quite well without it.

Correlation != causation. Might as well graph it against the number of World Cup or Euro championships in that year and get a much higher correlation since the IPOs seem to all be in an even year.

It'd be much more interesting to look at perfomance vs sector and performance vs the index.

hamidpalo··on Enhance OSX Finder
Since this is super handy, I will go off-topic and post the Windows equivalent:

    start .
You can even type something like:

    start mypicture.jpg
To open it in the default picture viewer.
hamidpalo··on The Brittleness Of Type Hierarchies
In my experience modifying existing C#/Java in such a manner is not a big deal since the type system and the language enable extremely powerful refactoring tools like Resharper.

But your point is fair. It is a tradeoff between flexibility and guarantees of strong, static typing -- a tradeoff that's a no-brainer in my opinion.

hamidpalo··on The Brittleness Of Type Hierarchies

    We are faced with the dilemma - a lot of the code is now reliant on Isin, and NullReferenceExceptions are getting thrown all over the place because the field isn’t getting populated
Sounds like it's catching bugs. You get to fix all the Isin places in a single unit test pass. Or you change the types and it's all fixed by getting it to compile.

The examples provided by the author are absolutely horrible code. A type hierarchy can be more than two deep. How about adding another base type for securities with ISINs?

Moreover, if you ever see code like security is Option or a switch based on the name of the type it is a great sign of poorly architected code.

The solutions provided aren't really solutions at all. How would functional programming solve the problem? If anything a lot of functional languages are even more rigidly typed than C#.

hamidpalo··on Node.js - Convincing the boss guide
Why is non-blocking IO radical? Tons of libraries and frameworks offered it much before node, including twisted, Java's NIO, and the entire System.Net namespace in .NET.

Other than that, surprisingly sensible advice.

hamidpalo··on .NET Framework Version Comparision
Sorry should have clarified that it's not run in-house but rather supported for full-on production deployments, from what I have heard.
hamidpalo··on .NET Framework Version Comparision
But that's not true. Plenty of .NET users do use other OSs (through Mono) and databases (I use MySQL). Sure, the best IDE is VS and there's tons more docs and support on using it all on Windows, but the same can be said of Rails with Linux and Textmate for example.

Enterprisey is a matter of perception and shouldn't be a slur.

hamidpalo··on .NET Framework Version Comparision
What exactly makes it enterprisey? I am always really unclear on what makes something "enterprisey" other than perceptions.
hamidpalo··on .NET Framework Version Comparision
What is "enterprisey" about .NET?

Mono is a real alternative, many businesses run it production, including the likes of Fog Creek.

hamidpalo··on A program to compute the nth Fibonacci number
Optimal solution assuming that you've got perfectly accurate arbitrary precision arithmetic.

Which is as likely as a unicorn that poops Haagen-Dazs.

hamidpalo··on European server provider Hetzner now offers a 64GB RAM box for 109€/mon
Does anyone know how they can provide bandwidth for so cheap? 7 EUR for a TB of traffic is insanely cheap.
hamidpalo··on Multithreaded data structures for parallel computing
There are much better ways to implement a concurrent queue than the ones shown. Using locks for every single queue/dequeue is a very good way to completely kill performance. A much better alternative is to use hand-over-hand locking, or use CAS for a lock-free implementation.

TAOMP ( http://www.amazon.com/The-Multiprocessor-Programming-Maurice... ) goes over this in great detail and is overall an excellent book.

hamidpalo··on Enormous Integers
What about busy beaver numbers? http://en.wikipedia.org/wiki/Busy_beaver
hamidpalo··on Surf Air: Unlimited Flights for $1k/mo
Acela is awesome and I prefer it to flying when going from Boston to NYC and back, but you can really tell that the tracks are old. The ride is nowhere near as smooth as the trains in Europe, especially when you hit 150 mph.
hamidpalo··on Rick Falkvinge and his "a bit slow full-duplex 100Mbit" Internet Connection
Avoiding the Microsoft tax, but bought a copy of Windows to run in a VM?

Most universities have full-duplex 100Mbit+, and at those speeds it's not your connection that's the bottleneck, it's the latency of getting your request to the server and the server's available bandwidth. I imagine most routers are smart enough not to completely saturate the pipe with a single user's connection.

hamidpalo··on Microsoft Censors Pirate Bay Links in Windows Live Messenger
There seems to be some confusion about the XMPP definition of OTR as defined in XEP-0136 which does not mention encryption (http://xmpp.org/extensions/xep-0136.html#otr) and the colloquial use of OTR which apparently means "encrypted IM."

AFAIK there is no defined standard or agreed-upon XMPP extension for the latter. I should have clarified this in the original comment.

hamidpalo··on Microsoft Censors Pirate Bay Links in Windows Live Messenger
OTR has nothing to do with encryption. All it says is "pretty please don't save my conversation."

The only way for fully encrypted conversations is to use a plugin that encrypts messages themselves, or use an ecrypted P2P IM network.

hamidpalo··on Windows 8 tablet freezes in Microsoft keynote demo
There's a bug in a beta release! Stop the presses!
hamidpalo··on Understanding PHP's internal function definitions
Nitpicky but:

    The remaining arguments &haystack, &haystack_len, &needle, &offset specify the variables to put the arguments into. As you can see, they are all passed by reference (&), which means that not the variables themselves are passed, but pointers to them.

References aren't pointers, they are the variables. The address of the variable itself gets passed with a reference, whereas a pointer is a variable containing the address of the variable. A pointer itself has an address. A very subtle yet important difference.
hamidpalo··on If you're using Node.js, you're doing life wrong
The spaghetti code of node.js callbacks is really a problem of Javascript lacking monads, and in this case something like the Async monad from F#.

TameJS is a step in the right direction by adding a C#-style await.

hamidpalo··on New Google Accounts Require Gmail and Google+
Wasn't there a big huge DOJ case a while back about a company using one monopoly to try and create another? I forget.
hamidpalo··on Hollywood has more impact on Harvard’s CS50 than the Nasdaq
The title is incorrect. The correct title is that there is a stronger correlation between (CS50,Hollywood) than there is for (CS50,Nasdaq).

You could probably find that the price of a crate of lemons in Mexico for delivery in 2 months is more highly correlated with CS50 than either one of those but that doesn't mean that they have anything to do with each other.

hamidpalo··on Paying teachers more results in higher pupil performance
Figure 1 above provides an insight into the relationship between teacher salaries and pupil outcomes, showing a clear statistical association between higher relative teachers’ pay and higher standardised pupil scores across countries.

Aaaah! Correlation again being confused with causation. Omitted variable bias!

hamidpalo··on Fault tolerant applications in nodejs
Also includes a stunning misunderstanding of the halting theorem. Doesn't really help with the whole node.js stereotype.
hamidpalo··on Google+ spams GChat/XMPP contact lists with irremovable circle nonsense
Why in the world didn't they expose this as MUC (http://xmpp.org/extensions/xep-0045.html) is really beyond me.
hamidpalo··on Even as Zynga slides, bankers reap big fees
Underwriting fees are irrelevant. Every single firm charges the same, indicating that they compete on other things. Most of their IPO profit comes from quid-pro-quos with preferred investors to whom they allocate shares.

Check out some of the links on this page: http://bear.warrington.ufl.edu/ritter/ipolink.htm

hamidpalo··on Groupon shares open up 40%
This is very unsurprising. The majority of IPOs are underpriced and in some ways the underpricing is a measure of success.

There has been a lot of research done on the topic of underpricing for book-built IPOs (like this one). The most popular conclusion I have seen is that it's a form of compensation for the underwriters and their clients. Underwriters pick their best clients who in exchange for doing business with the firm and revealing their "proprietary information," get access to IPOs that are very underpriced.

Raising money isn't the singular objective of an IPO. What the issuer wants is the creation of a liquid market for their shares, analysts to follow said market, and to be perceived as a successful company in order to enable follow-on offerings. Raising less money in order to enable these things, especially for the creation of a liquid market and analyst following is well worth it for the issuer.

Investors want to be compensated for their research and taking on risk. Underwriters allocate shares to their best customers in exchange for their information.

This comment isn't very clear or convincing. Jay Ritter from University of Florida has a lot more information and links on all of the above: http://bear.warrington.ufl.edu/ritter/ipodata.htm and http://bear.warrington.ufl.edu/ritter/ipolink.htm.

Basically, leaving no money on the table is much costlier than having the IPO underpriced by ~50%.

Groupon is an interesting IPO, not for how much it's stock rose but for the problems in its business model. A much better indicator of how well their IPO went will be the closing prices 1, 6, and 12 months form now.

hamidpalo··on Poll: Your preferred music for working?
No EDM option?
hamidpalo··on In defence of Objective-C
Looking at the example given of how lovely obj-c is:

   filteredArray = [allRecords filteredArrayUsingPredicate:[NSPredicate predicateWithFormat:@"someField == %d", someFieldFilterValue]];
Makes me wonder if the author has ever seen languages that do this like so:

   let filteredArray = Seq.filter (fun f -> f = "foo") allRecords
hamidpalo··on Top 6 advantages Ubuntu 11.10 has over OS X & Windows
Virtual Desktops are insanely cool - You mean like those that OS X has and that a billion utilities for Windows give you?

The Community support is awesome - And there isn't ##windows or ##macosx, or sites like stackoverflow.com in addition to all the articles written by the 90%+ who use OS X or Windows?

Unity is better than ever - Unity being better than ever is an advantage over earlier versions of Ubuntu, not OS X and Windows. What happens if I connect my Dell laptop with an ATI card to a TV to watch a movie?

Beautiful Themes - They are beautiful indeed, but not very polished. OS X and Windows have huge teams whose only job is to make sure that the UI not only looks good, but also is functional and doesn't break down in all sorts of situations.

An enormous free software library - Can I run iTunes on it and sync my iPhone properly? I also want to watch Netflix and Hulu full-screen. Sometimes I like playing that Angry Birds game, is that on there? No? I can't do any of those things? But you say there's a 3D modeler there, as well as something called DDD?

Ubuntu is Free & Open Source - Because all developers and nerds rewrite parts of the kernel the way they work. Also, how does the OS being open source prevent the OS vendor from making huge changes to it? If Canonical introduced a breaking change to your application are you going to fork the OS or fix your app?

Ubuntu is a great OS and arguably the best Linux distro out there, but this article performs feats of logic I have never thought possible.

← PreviousPage 3 of 4Next →