HNHacker News
TopNewBestAskShowJobs

gfalcao

527 karma · joined June 1, 2012

Author of Sure, Lettuce, HTTPretty and some other software libraries

github.com/gabrielfalcao

Also known as Wave Mandala in SoundCloud and BandCamp https://soundcloud.com/wave-mandala https://wavemandala.bandcamp.com/

submissionscomments
gfalcao··on Facebook is now claiming official CDC.gov links are “False Information”
TLS issues accessing this page
gfalcao··on OO in Python is mostly pointless
Section from "No Silver Bullet"

Object-oriented programming.

Many students of the art hold out more hope for object-oriented programming than for any of the other technical fads of the day.

I am among them.

Mark Sherman of Dartmouth notes that we must be careful to distin- guish two separate ideas that go under that name: abstract data types and hierarchical types, also called classes.

The concept of the abstract data type is that an object's type should be defined by a name, a set of proper values, and a set of proper operations, rather than its storage structure, which should be hidden.

Examples are Ada packages (with private types) or Modula's modules.

Hierarchical types, such as Simula-67's classes, allow the definition of general interfaces that can be further refined by providing subordinate types.

The two concepts are orthogonal — there may be hierarchies without hiding and hiding without hierarchies.

Both concepts represent real advances in the art of building software.

Each removes one more accidental difficulty from the process, allowing the designer to express the essence of his design without having to express large amounts of syntactic material that add no new information content.

For both abstract types and hierarchical types, the result is to remove a higher-order sort of accidental difficulty and allow a higher-order expression of design.

Nevertheless, such advances can do no more than to remove all the accidental difficulties from the expression of the design.

The complexity of the design itself is essential; and such attacks make no change whatever in that.

An order-of-magnitude gain can be made by object-oriented programming only if the unnecessary underbrush of type specification remaining today in our programming language is itself responsible for nine- tenths of the work involved in designing a program product.

I doubt it.

gfalcao··on OO in Python is mostly pointless
At the end it comes down to how the developer designs their software, as Fred Brooks argued in "No Silver Bullet" (https://en.wikipedia.org/wiki/No_Silver_Bullet)

Brooks goes on to argue that there is a difference between "good" designers and "great" designers. He postulates that as programming is a creative process, some designers are inherently better than others. He suggests that there is as much as a tenfold difference between an ordinary designer and a great one. He then advocates treating star designers equally well as star managers, providing them not just with equal remuneration, but also all the perks of higher status: large office, staff, travel funds, etc.

gfalcao··on OO in Python is mostly pointless
I disagree that it's mostly pointless because if you're practicing Test-driven development OO provides a great way to abstract agents and their actions.

I've seen a lot of python code that looks like the example from the blog but that's simply just a narrow example and does not reflect all the potential of OO, not only in Python but in any programming language.

The thing I see in common in such poorly designed OO code is that it is usually not covered with unit tests that are actually useful and informative. Sometimes it's just not even tested at all.

gfalcao··on Show HN: PSX Party – Online Multiplayer Playstation 1 Emulator Using WebRTC
Tekken 3 <3
gfalcao··on Show HN: PSX Party – Online Multiplayer Playstation 1 Emulator Using WebRTC
Tekken 3 nostalgia
gfalcao··on Please re-add original author to docs and license
Hello Gaetan, thank you so much for adding the authorship back. Please don't get me wrong, I know you're not responsible for it disappearing and I'm not looking to blame anyone. I'm happy that Guake is still being active maintained.

I'll submit a pull-request with the story soon.

Thank you!

gfalcao··on Please re-add original author to docs and license
Yakuake is what inspired Guake. I wanted to use Yakuake without needing to install libqt in my machine.
gfalcao··on Please re-add original author to docs and license
Hello, I'm Gabriel, the original author of Guake.

Let me clarify the whole story:

In 2006 I had just gotten into college and was learning Python by myself, my English skills (also self-taught) were pretty low and I had to rely a lot on whatever material was available in Portuguese (I'm from Brazil).

In 2007 I had an amazing college teacher, the "drop of water in the desert" kind of teacher. He was trying to convince everyone that they could move from MS Windows to GNU/Linux and that the available desktop software was pretty decent.

The only catch is that he used KDE2 and all the "cool" desktop apps he was showing were built on QT, like a good pupil I always tried to pair up an equivalent GTK option to every QT app my teacher showed to the class.

That worked well for everything: Music Players, Photo Viewers, etc.

One day he showed Yakuake (https://kde.org/applications/system/org.kde.yakuake) to the class and everyone went bananas, this was such an amazing tool.

But then I did not have a good alternative for GTK if I wanted to press F12 to get a drop-down terminal I'd have to install libqt on my Debian? No way!

I set out to write an equivalent of Yakuake for GTK+ (hence the name Guake, with "G" for GTK), at the time I did not know exactly how D-Bus worked and had no idea of how to write Python extensions in C.

The very first working version of Guake was a Gnome Applet that used GTK bindings to libvte to make a terminal always available. Was still not good enough for me.

The next step was to write a regular GTK Window application and try to make it disappear, but I was having a lot of trouble binding F12 globally, it only worked well on Metacity which was the default window manager for GNOME2 at the time.

Guake's user experience was not great, it only worked well on Metacity but was good enough for me to show to my teacher, I was so excited I was able to create my very first GPL software and publish on source forge. I was ahead of everyone in my class at the time, I was learning on my own the things that would be taught only in the next semester and many things that we would never learn in class (such as Python programming).

Some months go by and Guake-Gnome-VTE (the original name) gets some visibility, and this guy Lincoln de Sousa reaches out to me, he told me he had fixed the global keybinding problem by writing a Python extension in C, also he refactored the whole code and even applied GNOME Human Interface Guidelines to it.

It sounded great to me, I was so excited that someone else was interested in Guake, and made improvements to it, I was in awe with open source.

Except for one thing: Lincoln rewrote a lot of things that were working, just for the sake of cleaning up the Python code the aesthetics of it (actually he was applying PEP8 which I had no idea what was before this)

I had these mixed feelings: in one Guake had become what I wanted it to be, the global keybinding worked anywhere, the UI looked even better and the code was a lot easier to understand.

On the other a lot of the code I had written was deleted, I was not a skilled python developer when I wrote the first version of Guake, so I had spent several hours reading, coding and trying things out.

Anyways, the whole thing was a win-win, yay open source, now Guake had 2 maintainers putting a lot of time and love into it.

After some time Lincoln proposed that we moved the code off of Sourceforge to a git repository, self-hosted (we had a very "purist" mentality regarding FOSS and were terrified of having our code hosted by a proprietary software such as Github), he had way more experience than me on pretty much everything and he took reins: the code was hosted in one of his servers and all I did was pay for the domain.

In retrospect, I wish I had just pushed the code to Github at the time, so no the commit history would be lost. The irony in having a purist FOSS mentality: the code was hosted on a server that I eventually lost access to.

Also, instead of importing all the commit history from Sourceforge we just pushed the code to git.

You can look at the first commits on github:

commit 4f4ab35d5cb2363dd464e6b252d1c798bd01c2fb Author: Lincoln de Sousa <lincoln@minaslivre.org> Date: Sat Oct 6 13:56:50 2007 -0300

    patch came from svn
commit 8973af85108c889f7dc16af2d8443d0f8ff3ec05 Author: guake_root <guake_root> Date: Wed Aug 1 02:35:20 2007 +0000

The "guake_root" commit swallowed all the history of the original code I had done.

In 2008 I moved out of my city to work for a big corporation in Rio de Janeiro, there my FOSS purism slowly evolved into tolerance for proprietary software, eventually, I even got an iPhone and a MacBook.

That's when I stopped contributing to Guake: I had moved to MacOSX and the project had been taken over by other maintainers. But even the icon is still the one I design on Inkscape, Guake was my first open-source software, I put a lot of time and love into it.

Today 14 years later I seldom use Guake because I seldom use a Linux Desktop, but I must confess that seeing my original authorship vanish from the project is very sad.

gfalcao··on Why I Like Math [pdf]
This essay made me think a lot of Douglas Adams' "The Hitchhikers Guide to the Galaxy"
gfalcao··on Show HN: Browsh – A modern, text-based browser
amazing, great job!!!
gfalcao··on Ask HN: Who is hiring? (August 2016)
Canary | New York, USA - https://canary.is/

About the Role:

As a Software Engineer on the Core Platform team, you’ll be helping to build applications in small cross-functional teams and working closely with the product team to deliver high impact user features.

Perks

* Comprehensive health insurance.

* Daily catered lunch.

* Flexible work hours.

* Unlimited vacation.

* Reimbursement for commuter costs.

* A beautiful and industrial office space.

Requirements:

* Write clean and robust Python/Django code

* Experience designing RESTful APIs

* Experience with writing automated tests: unit and functional

* Familiarity with continuous-integration

gfalcao··on Doom Editing Guide
#makelovenotwar
gfalcao··on Film made in 1967 about 1999
Oh, I made a song based on that movie, a few weeks ago:

https://soundcloud.com/gabrielfalcao/home-of-the-future

gfalcao··on Goji: a web microframework for Go
Were you inspired by this ? http://www.cherrypy.org/ The juxtaposition of things and colors and code simplicity looks like so
gfalcao··on Put.io
I've been using put.io for 3 or 4 years now, it truly hassle free and I literally can not understand why it wasn't featured in HN before.

I have upgraded and downgraded my plan many times, depending on my own needs, it's been years I don't use a torrent client.

This is how you download torrents blazingly fast:

Download firefox + DownThemAll! extension, configure downthemall enabling all the maximum of speeds

go to http://put.io, add a torrent in the download queue, it will probably be done within minutes, if not seconds (no exaggeration), then download them straight to your computer through downthemall

gfalcao··on Kitestring: An app that checks up on you
Beautiful product, both aesthetically and conceptually. Very simple and honest, very few apps start like that, but I think the ones who do, legitimately deserve success.

Keep up with the great work!

gfalcao··on Instance Model Programming in C
I disagree that GTK is an example of what NOT to do when designing interfaces. But anyways I just mentioned GTK as an example of GObject usage, which was my original point.

GObject is independent of GTK.

Also here is the link for the introspection tool that generates bindings to other languages: https://wiki.gnome.org/action/show/Projects/GObjectIntrospec...

gfalcao··on Instance Model Programming in C
This is pretty awesome. GNOME itself is all written in pure C using glib, which also contains GObject, a beautiful OOP approach for the C programming language. It has a dynamic type system, supports meta programming...

Very few people know it, but GNOME's GTK interface is fully object oriented, and BTW when you click a GTK button you are clicking on an instance of the class GtkButton that inherits from GtkBin which inherits from GtkWidget. it's a beautiful thing!

Also because GObject is based on a lot of conventions it makes really easy to generate bindings to other programming languages automatically, so basically you can write you library in C with OOP approach using GObject, and for free you get your library easily bound to python, ruby, js or any other language.

https://developer.gnome.org/gobject/stable/

gfalcao··on Show HN: Curdling – A faster Python package installer
This is a very prominent tool, thanks for it
gfalcao··on Unicorn
This is hilarious
gfalcao··on Tests Are Overhyped
This post is over-hyped: "the cool guy who ships products and applies to cool startups, but they only hire super talented and passionate engineers."

---

The text above is just like the blog post: is unfounded and purely based on personal opinions.

Having a strong test culture in a company of any size is important for a number of reasons, and all of them are founded by both books and articles, but also by AMAZING products.

An engineer who has talent in writing readable and well structured tests is also someone who has a special skill in: creating robust systems, reverse-engineering existing systems and therefore good at being hired by a startup that has NO or very little test culture, which end up being hired by a company that has code that is buggy, error prone, coupled and hard to maintain, so that he can apply all this knowledge to clear crap written by people who doesn't like tests

gfalcao··on Show HN: Markdown + Bootstrap + Bootswatch = text based themeable mind maps
signup is not working!
gfalcao··on Establishing secure connection
This is ridiculous
gfalcao··on Exquisite enums in python
Any feedbacks, please?
gfalcao··on Zend Optimizer+ now open-source on Github
Why not simply using hiphop-php ? This is what empowers facebook and seem pretty neat https://github.com/facebook/hiphop-php
gfalcao··on Show HN: Drawbang - Instagram for pixel art
Looks nice but started too expensive. Why don't you put it free to get user acquisition and then you raise the price ?
gfalcao··on Show HN: HTTPretty, an easy way to mock http requests in python
bryanh, just saw your pull request, I'm excited to get your contributions :)
gfalcao··on Show HN: HTTPretty, an easy way to mock http requests in python
Please feel free to send pull-requests. There are some cool features to be done; supporting wildcards and/or regexes is one of them
gfalcao··on Show HN: HTTPretty, an easy way to mock http requests in python
Thanks great, I'm glad you found it useful
← PreviousPage 2 of 3Next →