HNHacker News
TopNewBestAskShowJobs

bru

1,185 karma · joined October 3, 2011

QRT Google CentraleSupélec

http://www.linkedin.com/pub/bruno-cauet/2b/963/415

https://github.com/brunal

submissionscomments
bru··on What's New in Mercurial 3.0
Could you explain this difference to a git user?
bru··on Click – Python library for command-line interfaces
>You can get the library directly from PyPI:

>pip install click

Well... no you cannot. See the page: https://pypi.python.org/pypi/click

The package hasn't been uploaded yet. However one can install it straight from the git repo:

> pip install git+ssh://git@github.com:mitsuhiko/click.git

bru··on CEO complaints : employee not motivated after being fired
I cannot access it:

>Sorry, we couldn't find that page. Here are some others for you to explore.

Here's the version from Google cache: http://webcache.googleusercontent.com/search?q=cache%3Awww.l...

bru··on Ask HN: Idea Sunday
Retro console gaming. A huge panel of old console games could come to mobile devices and look fine. After being convenient and stable, connectivity could be really cool.
bru··on Programming paradigms that change how you think about coding
Some notes:

- parallel and concurrent are 2 different things

- the 'symbolic languages' definition seems off. Wikipedia puts it right:

> symbolic programming is computer programming in which the program can manipulate formulas and program components as data

So it's not "using graphs & such to program"

bru··on PEP 461 Accepted: Adding % formatting to bytes and bytearray
You're right and that surprises me as well.

> As noted above, ``%s`` is being included solely to help ease migration from, and/or have a single code base with, Python 2.

bru··on GitHub's language detection is broken
Inciminated comment: https://github.com/github/linguist/pull/748#issuecomment-374...

> if you'd like Mercury language detection on GitHub then with the current implementation of Linguist you need to pick a different (unique as Objective-C already defines this) primary_extension and add .m to the extensions array which will force Linguist into using the other detection methods mentioned above.

bru··on Git 2.0 release notes
>I've noticed that most devs seem to have strong opinions one way or another.

I've personally noticed that most devs don't have an opinion either way since they don't use subtrees nor submodules.

I don't know what subtrees offer but using submodules has been very pleasant once you know how they work. For example if you version control your .vim I think that adding submodules for extensions is way better than cloning them inside your .vim.

I look forward to having the opportunity to use subtrees.

bru··on Please tell us what features you'd like in news.ycombinator
Just Ctrl+click or Middle click...
bru··on Nouriel Roubini: Bitcoin Is a ‘Ponzi Game’
>In contrast, Bitcoin is a deflationary currency

This is IMHO the strongest argument against Bitcoin and the reason why a long-term economy could not depend on it. The problem with cryptocurrencies is the impossibility to control the monetary mass.

bru··on Python Best Practice Patterns
>Likewise with the 80 character guideline in PEP

Definitely. The PEP8 was actually revised 6 months ago[0]. Nothing crazy, but a bit more pragmatic.

>For code maintained exclusively or primarily by a team that can reach agreement on this issue, it is okay to increase the nominal line length from 80 to 100 characters (effectively increasing the maximum length to 99 characters)

0: text: http://legacy.python.org/dev/peps/pep-0008/#maximum-line-len...

commit : http://hg.python.org/peps/rev/fb24c80e9afb

bru··on Python Best Practice Patterns
Several of those patterns are incomplete or frowned upon:

* if a method does not use the object's state (no `self` usage) make it a `class-` or `staticmethod`.

* Some magic methods are presented. There's more to them[0].

* one should not write `class MyClass:` but `class MyClass(object):` (new style class[1])

* the last one (`return None`) make me very dubious

* Cascading methods: that's a big no. The idiom is that if a method may change the state of the object then it should return None (eg `set.add`)

0: well-written and comprehensive guide: http://www.rafekettler.com/magicmethods.html

1: http://www.python.org/doc/newstyle/

bru··on REPL: To JSON what Excel is to CSV
That's a stupid name... REPL has had a precise meaning (Read-Eval-Print-Loop) for the last 50 years, and I don't know how one can choose to give that name to a project.
bru··on Facebook's Lookback
Indeed. I still tried to share the page, to encourage friends to look at theirs, but there's not thumbnail of the link or any description!
bru··on Git add -p
The `-p` flag in general is very useful.

With `git add`, sure it allows you to stage part of a file. That not all, when you're in edit mode (pressed "e" upon the prompt) you just edit a patch. So you can actually put in your patch lines that are not in the source file. This can be very convenient e.g. if the 2 sets of change you want to commit separately are entangled. For example I used it yesterday to correct the level of indentation.

With `git stash show`, instead of having a short description of files changed in the stash, you get the patch itself.

etc.

Git man pages are well-written, and I always enjoy reading it. Most of the time I have one question but end up wiser (at least git-wise).

bru··on Python 2.x vs. 3.x survey results
That's something for which I should strive. I've never written "polyglot" scripts longer than 1 file with 100 lines. Writing compatible syntax is feasible without too much hassle, but most problems I encountered were when I wanted to use a library whose API evolved between 2 and 3...

Do you have experience with the `six` library[0]? I've read a few times about it recently and it seems a convenient way to write portable code. I still wait for an opportunity to use it!

0: http://pythonhosted.org/six/

bru··on Python 2.x vs. 3.x survey results
I'm surprised, if not saddened, by the low popularity of `3to2`: less than 2% of the people surveyed have used it, even though it is a convenient way to have your code in python 3 when stuck with libraries that use python 2.

edit: direct link to the pdf: https://wiki.python.org/moin/2.x-vs-3.x-survey?action=Attach...

bru··on Small things add up: 4chan's migration to a cookieless domain
It is the second time in this discussion that you mention the downsides of using FreeBSD, and you present it as an historical choice. Do you have upsides as well? What were the criteria that made you pick, 10 years ago, FreeBSD over another OS?
bru··on Bot or Not: Hacker News
Nice. Which loopback value did you use? Is it 3 by any chance? I'm currently at 2/7...

Making that value settable could be nice (as well as opening the source).

bru··on Bot or Not: Hacker News
User DanBC suggested it there: https://news.ycombinator.com/item?id=6815563
bru··on US blogger fined 8,000 Euros by France for criticizing Société Générale
>you may want to retire there

Having kids and retiring usually do not happen at the same time.

>a few of my friends, who were settling in France for personal reasons

So they're not French. Your first comment is definitely wrong then.

I believe they were referencing the circulaire Guéant[0], which comes from the previous government, wronged many skilled workers & French companies as well -- it sets a 'national preference' for hiring.

0: http://fr.wikipedia.org/wiki/Circulaire_du_31_mai_2011

bru··on US blogger fined 8,000 Euros by France for criticizing Société Générale
I'm not surprised by such a comment, but finding it on HN saddens me.

xenophoby? Oh USA, building a wall to keep your neighbours out of your lawn, please tell me more!

Our economy? Of course American governement-sponsored 'liberalism' is a beacon for the free world, and dissidents are morons. Please have a look at this recent article by Paul Krugman: The Plot Against France[0].

Your high-skilled French friends? I have the luck to be put in that population. What I see around me is that we travel and work world-wide, until we start a family most of the time.

0: http://www.nytimes.com/2013/11/11/opinion/krugman-the-plot-a...

bru··on As Bitcoin nears $700, Coinbase out of coins to sell
I did the same at the time. I know in which computer mine is. But I know I trashed that computer not long after...
bru··on Fury at Facebook as login requests “Government ID”
That actually happened to me at the beginning of the year. If I remember right I was in a foreign country (UK) (or just back from it) and Facebook asked me to log in and to scan my government ID (French one actually). However it was optional and there was a small link at the bottom of the page offering to skip that step (which i did without an hesitation).

Is there a difference here? I mean, can they still skip the step? The article does not say much. Anyway the design was made such that it was hard to know you could skip the step.

bru··on Fedora Linux will switch to Python 3 by default
> what strategies can be applied to increase the speed of language adoption.

In the case of Python 3, a neat thing library developers can do is write code that is both valid for Python 2 and Python 3. The six[0] library is a wrapper for making code compatible with both versions. There are tools like 2to3[1] and 3to2[2] that convert code from one version to another. They're not perfect but do catch the most common differences. Such things help with making the change.

However it is the availability (or more exactly lack of) of famous and widely used libraries that hinder or speed up the adoption. For example, Django recently started offering a Python 3 version[0]. Numpy and Scipy support it since around 2011 only.

0: http://pythonhosted.org/six

1: http://docs.python.org/2/library/2to3.html

2: https://wiki.python.org/moin/3to2

3: "Porting to Python 3" htthttp://pythonhosted.org/sixps://docs.djangoproject.com/en/de...

>Django 1.5 is the first version of Django to support Python 3. The same code runs both on Python 2 (≥ 2.6.5) and Python 3 (≥ 3.2), thanks to the six compatibility layer.

"Django's future, and Python 3" https://www.djangoproject.com/weblog/2012/mar/13/py3k/

bru··on Firefox fixes save gigabytes of memory on image-heavy pages
As spyder says in another thread of this post, on the given page (http://congressoamericano.blogspot.fr/p/fotos-do-congresso-a...) Chrome decodes and decodes... the memory usage goes up and up. I was using 1.5GO of memory before closing it (and still far from having loaded everything).
bru··on Show HN: Signal – Edit emails in your Gmail inbox
Having it show on hover could be convenient I think.
bru··on Ubuntu Edge: how many phones were really ordered - and the mistakes
I think that this is a strategic error from Canonical: a lot of people would like a truly free alternative to Android phones (with open hardware), and this could have been an opportunity to get them to support Edge. Canonical missed it IMHO.

See Mark Shuttleworth AMA: http://www.reddit.com/r/IAmA/comments/1j166z/hi_im_mark_shut...

bru··on Chromecast update breaks AllCast
The developer of AllCast, Koushik Dutta, gave his side in this reddit comment: http://www.reddit.com/r/Android/comments/1l2hez/google_block...
bru··on A fast and static web server for serving web apps
Side-note for the author: the download can be made more elegant that way

    $ curl http://shortfin.io/install.sh | sh
I definitely agree with the HTTPS. For example this is what meteor proposes:

    $ curl https://install.meteor.com | sh
← PreviousPage 4 of 6Next →