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 Cringely predicts the second coming of Java
I have a hard time believing that Java developers would fail to understand the concept of a singleton, the most pervasive anti-pattern in Java code.
hamidpalo··on Introducing F*: Secure Distributed Programming with Value-Dependent Types
If you verify the correctness of the CLR, by the same reasoning don't you have to verify the correctness of Windows as well?
hamidpalo··on Logging out of Facbook is not enough
To be completely honest, I don't really see why something like this is so novel and outrageous. It is as if everyone has forgotten why and how companies like Facebook, Google, Microsoft, Twitter, etc.. are able to provide what they do for free. The implicit contract is "you get all this for free, and in return we get to serve you ads that we target to you." Moreover, they all have much more information on you than your browsing habits.

Why the outrage?

hamidpalo··on Microsoft adds XMPP support to Windows Live
It's not an "enhancement." It uses OAuth in a completely standard way. It was done to avoid people entering their Windows Live usernames and passwords all over the place, especially now considering how much can be tied to a WL account with Win 8.

I was part of the team that did this and we went to great lengths to make sure that we were in full compliance with the relevant RFCs.

hamidpalo··on F# 3.0 Developer Preview Now Available
I'd argue that F# is especially well-suited for a system with tons of components talking to each other. You have things like async workflows and message-passing built-in, along with the ability to do everything C# can do. I've been using F# to write such a system and I prefer it greatly to C#.

The only .NET thing I would recommend C# over F# for is UI.

hamidpalo··on Check Out The New Blue Screen of Death in Windows 8
Problem with that is that it would lead to a SEO battle of "pay to remove your viruses from your rams and boost your registries" sites.
hamidpalo··on Microsoft Garage releases Mouse Without Borders
At minimum people get a laptop and a desktop, and quite a bit of time you see more than one desktop in offices. I haven't seen anyone in the engineering disciplines with fewer than two.

Having more than one machine is very handy for when you need to run VMs to test different versions, and not risk getting your own main machine into a bad state. If you work on services, the VM runs a local copy of the service.

hamidpalo··on Microsoft Garage releases Mouse Without Borders
This is an internal tool that has been apparently been made public. All employees at MSFT get more than one machine connected to many screens. Mouse Without Borders was developed by a group of employees in their free time to make it easier to deal with multiple Windows desktops. IMHO it is much nicer and more secure than Synergy for managing Windows machines. It's not a clone of anything. The Garage is MSFTs version of 20% time where you can work on whatever projects you want. There are some extremely interesting and useful projects that are part of the Garage beyond this one that haven't been made public yet.

Disclosure: I'm a dev at MSFT.

hamidpalo··on Asynchronous ruby framework for websockets, eventsource and streaming
I would really love to see some perf comparisons vs C# or Java.
hamidpalo··on Windows 8: Building robust USB 3.0 support
Single person testing on a single prototype device vs a team testing on a custom-built test device that was designed after going through and capturing the behaviors of many devices.

Guess which one will work better with a wider range of devices?

hamidpalo··on Apprenticeships - Employers Must Get Past Degree Snobbery
Degrees are usually a signal about how well the person is expected to perform. A degree from a top school with a decent GPA means that not only was this person select among many to attend, but they also managed to go through it okay. That is why employers ask for a degree in anything for certain jobs. They may not care about art history, but a degree is a good signal that "hey this person is smart."

For CS it's a little more practical but a degree is still fundamentally a signal. As is an active github account, blog, etc...

hamidpalo··on Why I love Lisp
The problem with these "Why I love blank language" is that they don't really address real-world usages. Sure, syntax overviews and cherry picked examples that show a quicksort in 5 lines are wonderful but no one writes quicksort.

What about real-world usages in large systems?

hamidpalo··on F# enters Tiobe top 20 index for the first time
the |> operator is very very simple. ocaml implementation would look something like:

  let (|>) a b = b a ;;
hamidpalo··on F# enters Tiobe top 20 index for the first time
While that's a very good example of what F# can do, I think the real value proposition of F# is that it can use anything from .NET. Take something like this for example:

  open System
  open System.Collections.Generic
  open System.Reflection
  
  type Config = string 
  type ISuperPlugin =
      abstract member Name : string
      abstract member Initialize : Config -> unit
  
  let loadedPlugins = Dictionary<string,ISuperPlugin>()
  
  let isPlugin (tp: Type) =
      tp.GetInterfaces()
      |> Seq.exists (fun t -> t.GetType() = typeof<ISuperPlugin>)
  
  let isPluginLoaded plugin =
      match loadedPlugins.TryGetValue(plugin) with
      | true, v -> true
      | _ -> false
  
  
  let loadPlugin typ = () // implement this
  
  let LoadPluginsFromAssembly path =
      let asm = Assembly.LoadFrom path
      asm.GetTypes()
      |> Seq.filter isPlugin
      |> Seq.filter (fun t -> not (isPluginLoaded t.Name))
      |> Seq.map loadPlugin
      |> ignore
  
  let loadAllPlugins plugins =
      plugins
      |> Seq.map (fun p -> async { LoadPluginsFromAssembly p })
      |> Async.Parallel
      |> ignore
Loads a bunch of plugins from assemblies in parallel. Haven't tested it but it should work with minor modifications to make it thread-safe.
hamidpalo··on Chats are not dead yet
FB and GTalk DO use XMPP. I also imagine that AIM, MSN, and Skype all have some sort of a XMPP implementation as well since they all can talk to FB.
hamidpalo··on Ask HN: When was the last time you used big-o in a web app?
While I never sit down and write out a formal proof, I always think about it and always check the implementations of standard library functions that work on collections before using them.

The real value of Bio-O isn't knowing how to prove that red-black trees have O(1) amortized insert but rather understanding the tools used and the code written better.

hamidpalo··on [dead]
Or maybe someone was hedging against the risk of a default? I've you got a ton of money in securities that will lose a lot of value if the US gets downgraded, then it would make sense to hedge against that risk.
← PreviousPage 4 of 4