# TheFactBook

Actually, you don't need to read this to use TheFactBook

The very first lines of code which were part of TheFactBook date from 2013. However, most of it was rewritten. By the time it was vulnerable to SQL Injection so I had to learn a little about prepared statements. I found the w3schools site really helpful. It was a page (no login was required) where you could add some text (then called Fact) and an url (then called Source) using an HTML form, then we stored that info into a basic table in a MySQL database, that was all.

I used to use TheFactBook to store interesting information I read in articles around the web, because I procastinate a lot reading news, blogs and whatever prevents me (like you reading this) to get things done. However, having to fill that form every time I saw something interesting was really boring (a pain in the ass), so I think that it would be a great idea to have a firefox addon to do it for me. But there was a problem: I had no idea how to start to code it. I read some information about "Getting started..." and find that it is really easy when you understand the logic behind programming (not even behind Javascript). I used addon-sdk which make the job easier. Then I thought, if it is usefull for me, maybe (and remotely maybe) it can be usefull for another lonely robot. So I decided to make an interface, build a login page and use Javascript, PHP and another table in the database to store user and passwords. Coding is great becuase it draws you to your computer, it takes away your sleepiness, and makes you think, ask, and do it and write it and modify it, rewriting all whitout even thinking to stop (all that fun condensed on plain-text files). When I finnished the addon (it takes me nearly 2 days of work, yes I'm not smarter than anyone but thanks to StackExchange even I could) I remembered that most of the users of my projects are with Chrome, so I think "If I could build a firefox addon why not to build a chrome extension?". Yes, the documentation for firefox-sdk is better (in my opinion) so I suffered a little when I started to write the extension nothing worked, every error was there one time and another, but at the end I found that writing a Chrome extension in the way that it was planned works better and gives you more flexibility than using firefox-sdk (it took me maybe 3 days of work). I finished that work and touhght about publishing the addon on firefox addons site and my novel extension in the webstore, for firefox it was easy but the google webstore required to pay US$5.00 in order to give permission to publish, so I've given up, if someone wants to install the chrome extension has to trust that it was not modified in the road and trust that I'm not a bad guy trying to get access to your more precious data, but if you trust Facebook why you can't trust me?. I had some fun working with Javascript. Making errors because I ignored the differences between Synchronous and Asynchronous, and had no idea of what a callback functions was (maybe at the moment I do not have a clear idea of what it really means, but it sounds great calling the things the way it was meant to be called). In the process, I found something called functional programming (or something like that) that remember me of functionals in mathemathics, and the very basic idea behind that concept is the same in maths and programming (one function as an argument of another function). Well it was a lot of introduction for a funny application, so you can taste TheFactBook too. sat jul 4 00:15:05 COT 2015 Update: Unfortunately firefox dropped the support for the addon-sdk killing a lot of addons in the process, for the addon to work on firefox Quantum it has to be rewritten. But I have not find the motivation to do it. I ended up paying the$5 and got it published in the chromestore after some bug fixing and design change (using Materialize).

Sun Feb 3 01:06:57 UTC 2019

# Comentarios

 Agregue usted un comentario, Nombre: Dirección de correo electrónico: URL: Mensaje:

* La dirección de correo electrónico no será publicada.