HNHacker News
TopNewBestAskShowJobs

olifante

355 karma · joined February 28, 2007

Lisbon-based full-stack developer and DevOps guy. Current stack: Postgres, Django, Wagtail, DRF, React, next.js
submissionscomments
olifante··on 6 dominant languages on code forges: C++, Java, Python, C, Javascript & Ruby
But that's part of the point, isn't it? The very fact that Drupal folks prefer to live in their own isolated code community could indicate a degree of provincialism.
olifante··on Github Has Surpassed Sourceforge and Google Code in Popularity
it's interesting the way they measure language popularity by number of commits to the major code forges. It's a way to separate the living & breathing languages that are actually being chosen for new projects from the living-dead languages.
olifante··on 6 dominant languages on code forges: C++, Java, Python, C, Javascript & Ruby
the 3rd slide shows the total number of commits per language on popular code hosting sites. To my eyes, there is a distinct split between 1st tier languages (C++, Java, Python, C, Javascript and Ruby) and 2nd tier languages (C#, Perl and PHP).
olifante··on Google paper comparing performance of C++, Java, Scala, and Go [PDF]
TLDR: C++ fastest but hardest, Scala fast and elegant, Java simple but opaque, Go immature.
olifante··on "There are some people who don't wait."
absolutely brilliant commencement speech by Robert Krulwich.
olifante··on Why the US can beat China: The Facts about SpaceX Costs
so broad coalitions are forced to favor the public interest, while narrow coalitions can afford to serve only their sponsors and ignore the public interest -- very interesting thesis.

Do you have any links to more detailed discussions of this theory?

olifante··on The Sad, Beautiful Fact That We're All Going To Miss Almost Everything
Béla Bartók
olifante··on Google App Engine update: performance improvements & new admin tools
What do you mean by lack of support for naked domains? You can host your AppEngine app at yourdomain.com via Google Apps, as described here: http://code.google.com/appengine/docs/domain.html

I haven't heard of any limitations on using custom domains for commercial use, cf. http://groups.google.com/group/google-appengine/browse_threa...

olifante··on Museopen to set classical music "free"
You haven't listened to many Naxos recordings, have you?

Quoting from page 2 of their 2008 catalogue (http://www.naxos.com/SharedFiles/pdf/NaxosCat2008May.pdf):

  More than half of all current Naxos recordings are 
  included in various editions of the authoritative Penguin 
  Guide.
Several Naxos recordings have been distinguished with a Rosette or "Key Recording" accolade by the Penguin Guide: http://www.naxos.com/feature/Penguin_Guide_Top.asp
olifante··on Ask HN: Four months since launch: how are you finding the iPad?
Folio is nice, but it's missing what for me is the killer feature of GoodReader: the ability to crop the white margins for all pages of a PDF. This immensely improves PDF readability in portrait format.

The Folio Fit-to-width functionality (only available in landscape mode) is already able to detect and automatically crop white margins at the top and at the bottom of pages, so why not create a mode that automatically crops all 4 margins in portrait mode?

Another much needed feature is text highlights and text notes. Since Folio already has the ability to select text, it should be no big deal to add this to the app. Make the highlights and notes syncable a-la Kindle, and I'm sold.

One minor nitpick: Most apps seem to place their Back/Up button in the upper left corner. The Folio "Library" button should be on the left and the search button on the right.

olifante··on Structure and Interpretation of Computer Programs, Second Edition (ePub)
doesn't work for me. It only offers to open the .epub file in Stanza or GoodReader. iBooks is not shown as a possible choice.
olifante··on 'They say Chinese is difficult - European languages are more difficult'
I found Hannas' book boring. I much prefer John DeFrancis' The Chinese Language - Fact and Fantasy (http://en.wikipedia.org/wiki/Chinese_language_facts_and_fant...) and Sampson's Writing Systems.

These are the books that taught me that Chinese writing is more usable and more adapted to the particular needs of the Chinese language than we in the West tend to believe. In particular, the phonetic element in Chinese characters is much more important than I imagined.

Also, while it is true that the road to fluent reading is much longer for the Chinese than for readers of phonemic scripts, this is partly compensated by the higher reading efficiency of fluent Chinese readers.

One way to look at Chinese writing is to see it as a highly defective phonemic writing system with semantic annotations. In other words, Chinese characters constitute a morphophonemic writing system, much like English (for/four/fore) but with a much stronger emphasis on the morphemic aspect.

olifante··on "Portuguese Startups List" on Google Spreadsheets
you can also use StartU to see a map with the location of Portuguese startups, entrepreneurs and webapps: http://whois.startu.pt/
olifante··on How Random Matrix theory sheds a light on the laws underlying reality.
that's a bit harsh. I found the article genuinely interesting, even if very light on the details.
olifante··on Ask HN: From what countries do people use HN beside USA?
I'm in Lisbon, Portugal
olifante··on Ask HN: Great books you read in 2009?
no it's not. It's a good read, but not as seminal or breath taking as Guns, Germs and Steel, a true modern classic.
olifante··on PPK: "Apple is not evil. iPhone developers are stupid."
Argh! Not the dreaded "I don't want to live in a world where X" cliché again!
olifante··on Django vs Rails
That's a specious distinction, even if I can understand their interpretation. It's just easier to say that:

1. Django Templates correspond to Rails Views (they both define how data is presented to the client). The biggest difference is that it's easier to include business logic in Rails Views because the Erb template language is as expressive as Ruby itself, while the Django template language is deliberately restrictive.

2. Django Views correspond to Rails Controllers (they both process requests). The biggest difference is that data is passed explicitely from a Django View to its Template, while data is passed implicitely from a Rails Controller to its View.

olifante··on Ask HN: Please name two of your most favorite books.
Frederick Bodmer's "The Loom of Language: An Approach to the Mastery of Many Languages", an oldie but goodie from 1944.

Douglas Hofstadter's "Gödel, Escher and Bach: An Eternal Golden Braid".

Jared Diamond's "Guns, Germs and Steel: The Fates of Human Societies".

olifante··on Ask HN: What do you think of GitX?
I love GitX and use the commit view all the time. The visual diff makes it so simple to see what you have changed.

I don't bother teaching coworkers that much about command-line git now, I just point them to GitX, which suffises for 90% of their interactions with git.

One simple thing I'd like to have is the ability to just click a button and pull or push from a remote branch.

olifante··on The Truth Behind Last.fm Story: Techcrunch conned?
That piece Carr wrote about Le Web was a hack job -- yet another manifestation of the undying British national habit of badmouthing the French on every possible occasion.

Done by professional comedians once in a while it's fun. Done by an entire nation it's disgusting.

Compared to Carr's, Michael Arrington's article on Le Web seemed like a balanced critique, and that's saying something.

olifante··on A Django Developer’s Views on Rails
What the hell are you talking about? This is ONE article written by ONE person and suddenly it's the Python community's fault for allowing it to exist? Spare me.

This victimization technique should added to the list of Logical Fallacies, if it isn't already there.

olifante··on A Django Developer’s Views on Rails
As a pythonista who likes ruby, I think your "Perl's ugly sister" comments were a shot in the foot and detracted from the rest of your argument, which concentrates on rails and has little to do with Ruby itself.
olifante··on Dejavu, a pythonic ORM (PyCon presentation)
Very interesting presentation on Dejavu, an ORM similar to SQLAlchemy and Django Models. It has a lovely pythonic syntax for doing queries with lambda expressions, e.g.:

box.recall(Comic, lambda c: 'Hob' in c.Title or '#' in c.Title)

Instead of for instance Django's

Comic.objects.filter(Title__contains='Hob') | Comic.objects.filter(Title__contains='#')

I also loved the approach to converting the python queries to SQL code: Dejavu converts the python queries into an AST, which is then deparsed into the desired SQL dialect, an approach that apparently was used long ago by Glorp, a Smalltalk ORM.

Dejavu can also work with non-relational backends, such as flatfiles, LDAP stores, memcache, RAM and even the Python shelve.

In the question round, Robert also showed a very simple syntax for joins:

Table1 & Table2 represents an inner join. Table1 | Table2 represents an outer join. Table1 << Table2 represents a left join.

One question that was left unanswered was whether Dejavu supports the distributed key-value stores that are becoming increasingly popular, such as CouchDB, Amazon S3 and Amazon SimpleDB.

olifante··on Arrington's Back
Pain?
olifante··on Ask HN: Would you trust a .me domain?
Domains are becoming less relevant as more and more users just google the name instead of typing in the address. Choose any non-obscure domain name with one of the common TLDs (.com, .org, .net, .me, .eu) and you should be fine.
olifante··on Ask HN: What editor do you use?
Currently using TextMate and enjoying it. Used many editors, but the ones I used the most were vi, vim, jEdit and emacs (ordered chronologically)
olifante··on The Dollar Shift: Chinese Pockets Filled as Americans’ Emptied
those pesky chinese! The economy didn't tank because we didn't save enough, it's their fault for saving too much and ramming their money down our throats. </sarcasm>
olifante··on [dead]
This may be the laziest question yet on HN. Opening the main page of the Apple Store (http://store.apple.com/us) immediately tells you what is the cheapest mac: Mac Mini at $599 -- and from your question, it seems you already knew the Mac Mini existed. Is that so hard to figure out by yourself?
olifante··on What did you use to teach yourself Python?
I used an older edition of O'Reilly's Learning Python and found it to be very accessible and well written -- I'm surprised it hasn't been mentioned before: http://oreilly.com/catalog/9781565924642/

O'Reilly's Programming Python is not bad, but it's not a great book, either for beginners or journeymen.

Python in a Nutshell is more suitable as reference book, although I suppose you could use it to learn Python. For a Python reference book, I found David Beazley's Python Essential Reference to be more informative and better organized: http://www.amazon.com/Python-Essential-Reference-Developers-...

As other people have mentioned, Guido's online tutorial is pretty good, and you don't really much else to start programming in Python: http://docs.python.org/tutorial/index.html

I'm always puzzled by people recommending Mark Pilgrim's Dive into Python. I don't find it a good choice for Python beginners.

← PreviousPage 5 of 6Next →