HNHacker News
TopNewBestAskShowJobs

getoffmalawn

10 karma · joined May 6, 2012

submissionscomments
getoffmalawn··on A mobile friendly Vim cheat sheet
Under "Working with multiple files", the split command is incorrect. It's not Ctrl+WQ; it's Ctrl+WS.
getoffmalawn··on More than 500,000 Google Reader users have joined Feedly in the past 48 hours
I'm sorry, what? RSS is a money sink in what way? RSS is about as maintenance free as it gets.
getoffmalawn··on Google Reader shutting down
Newsblur's Android app doesn't have a widget.
getoffmalawn··on Vim Git Gutter
This is fantastic. Thank you.
getoffmalawn··on Show HN: Don't forget another movie release. Thoughts?
Well, this service doesn't really seem useful to people that live outside the US. E.g. "A Good Day to Die Hard" won't be released until a month later in Australia, but the website indicates that it comes out a month earlier. Aggregating the release dates would be nice.
getoffmalawn··on What do you think of my simple startup landing page?
Amateur is the correct spelling. http://en.wikipedia.org/wiki/Amateur
getoffmalawn··on ‘Intelligent’ embedded devices will be driven by Java, say analysts
You mean to tell me that Oracle think that embedded devices will run Java? Heavens, I'm shocked.

"Embedded devices" is such a broad term now, that they need to scope it a little better. An ATM running Windows is considered embedded by some definition, which is kind of what I suspect they're talking about here - not resource-constrained devices like Arduino boards, as inferred by the image at the top of the article.

getoffmalawn··on I only know PHP. How do I write a Web application in Python?
In practice, for MOST developers, the changes between 2 and 3 are minimal. Offhand, print is a function, and there's no distinction between unicode strings and ascii strings anymore. If you do a lot of "low level" networking involving byte strings, you'll notice the difference, because you can't just jump between bytes and strings anymore.

It's this distinction that's delaying a lot of networking related libraries from porting to Python 3 - basically, it's going to be a long, buggy journey. Libraries such as Twisted, have very old codebases - old enough that some of the practices aren't the best, even for Python 2 code. Upgrading it to Python 3 will introduce quite a few breakages.

There's a lot more that I can't think of right now, but I'm sure someone else can cover off other differences.

There's no reason not to learn both - I use Python 3 for a few personal projects, and Python 2 for work.