HNHacker News
TopNewBestAskShowJobs

jventura

1,604 karma · joined February 4, 2016

https://joaoventura.net/
submissionscomments
jventura··on Buying time promotes happiness
I like the way you reason on your other posts about the "externalised" costs of not doing your own things at times, as I usually think on similar lines. That is why I usually try to fix my own things, buy second hand, and only buy when truly needed. For instance, I always assume that it will be I that will have to do all the maintenance of whatever I buy.

Is this something you talk about on your book? Do you recommend some store where I can get an epub copy of your book (or pdf, but would prefer epub)? I don't have a Kindle, only a Sony PRS-T1. If you have a referal to yourself (outside amazon), it's perfectly fine!

jventura··on Ask HN: HNers who got their “Show HNs” on homepage, how is your site doing now?
I submitted a Show HN a month and a half ago (https://news.ycombinator.com/item?id=14537247), and altough I got some initial visits (some 500 users), it has dropped to nearly zero lately. Here's how the analytics curve looks like: https://s2.postimg.org/6z9gmo8bt/Captura_de_ecra_2017-07-24_...

Basically, I've built this simple project to see if there was any commercial interest in building rest apis using mock data, and I am almost certain that the answer is no - which is fine by me, i'm waiting for the next idea.. :)

Edit: By the way, besides simple SEO with google, I haven't bothered doing any marketing at all with this project, because I'm being mostly lazy, also because if the idea was any good, it should (hopefully) had success initially, and also because I suck at marketing..

jventura··on Why Should I Start a Startup?
I'm just a random guy on the internet, but I would suggest you to fix your life first and then remember the hard lessons you (should) have learned on your two failures if you decide to do it again..
jventura··on Firefox marketshare revisited
Does anyone know why they do this? Do they earn some extra money per each Chrome install or something like that?
jventura··on Goldman Sachs relaxes dress code for techs in fight for talent
I know some people prefer money over morality and integrity, but personally, I am satisfied that these guys have to struggle to get people to work for them. In my ideal world, people would grow spines and would not work for these shady big companies.
jventura··on Ask HN: What simple tools or products are you most proud of making?
I've build http://mockrest.com/ last week and even did a Show HN at https://news.ycombinator.com/item?id=14537247.

I've built many things before but why am I proud of this one specifically? Basically because I've built it with no expectations what-so-ever if this thing will ever be needed by someone else but me. Also, I've built it fast (less than 1 week), polished it a bit, and released it as soon as it was working ok-ish..

And why am I proud of being able to build it although it is not complete? Because I used to deal with perfection for so long that I had to force myself to release anything at all. In fact, it used to be very hard for me to even start doing anything for myself, as I would have analysis-paralysis. For quite some time I had to force myself to think "when good is good enough", read a lot of things about that subject, read other people opinions on these things, etc. etc. etc. After figthing with my own perfectionism, it seems that I finally can do things having lower expectations.. That's why I'm proud..

jventura··on Classic Papers: Articles That Have Stood the Test of Time
From the article: "This release of classic papers consists of articles that were published in 2006..". Your second one could be there (I haven't looked for it), but you're mentioning some problems with the article, maybe it's that..
jventura··on Show HN: MockREST – Create REST APIs from Your JSON Content
Ups, there's something wrong, I'll have to check..

Edit: it's working now! All new tokens were having the expiration date incorrectly set.

Thanks for lettting me know!

jventura··on Show HN: MockREST – Create REST APIs from Your JSON Content
I'm mostly testing the waters, but if people find it useful in the long term, I would like to commercialise it (probably as a SaaS), maybe by providing "pro" features such as authentication, longer expiration dates for the API tokens, things like that..
jventura··on Show HN: MockREST – Create REST APIs from Your JSON Content
Fixed, thanks!
jventura··on Show HN: MockREST – Create REST APIs from Your JSON Content
Hi HN, I'm a teacher in a local university, and in one of my courses (Service's-Oriented Mobile Development) I need the students to access a CRUD API. Since some of them are not attending my other course (Backend development), and the project is "open" (they can implement a CRUD mobile app for any domain), I've built MockREST to allow them to mock APIs to their wishes.

So, for a JSON like this:

    {
      "person": [
        {
          "id": 1,
          "name": "John Smith",
          "age": 22
        },
        {
          "id": 2,
          "name": "John Doe",
          "age": 23
        }
      ],
      "post": [
        {
          "id": 1,
          "title": "Hello World",
          "format": "text"
        },
        {
          "id": 2,
          "title": "Goodbye Cruel World",
          "format": "text"
        }
      ]
    }
It will allow you to access /api/person (/api/person/<id>/) and /api/post. You can use all HTTP verbs such as GET/POST/PUT and DELETE to change the information, and then access the modified json in the api backend.

I've polished it a little bit, and I'm trying to see if there is a larger interest in this. If all goes well, I may add "pro" features such as longer sessions (the API tokens only last 24h for now), password protection, etc.

Hope you like it, let me know if you find any errors, or have comments or suggestions! Thanks!

jventura··on Don’t Let Facebook Make You Miserable
Probably, I don't really know what Instagram is..

Edit: I've checked it, thanks, it seems good, but I'm wary of adding another app to my list. As long as I can add photos and my closest family/friends can see them, FB is enough for me. :)

jventura··on Don’t Let Facebook Make You Miserable
Contrary to every comment so far, after I stopped using FB for some time, I've now started to use it again. It is not that I care much about what dinner some random friend is having, but I've started to use it to publish some photos that I take with my smartphone.

I don't care much about the upvotes, but as I do a lot of walking on the mountains around my house, I now have a kind of a motivation to snap a photo, add some effects or change the colors a bit (on the phone itself) and publish.. :)

Oh, and there's someone I follow who posts a lot of beautiful places on my country, places I eventually would like to go..

jventura··on Ask HN: What do you do when you've lost motivation at work?
> My one and only point is that lying to your employer, to set yourself up so that you can somehow get through your low-points, means you are either in the wrong job or in the wrong profession.

Not everybody is still young in this field. Some of us have learned some "tactics" on how to handle with other humans. When I was younger and more inexperienced, I also thought that pure honesty would be rewarded with pure honesty from the other side. As long as you do things with the best of intentions, I guess some sensitivity to human conditions is a better long term approach..

I'm not really disagreeing with you, it's just that things are not so simple as you put them. If it's for you, great, but for the other 90%, it's not..

jventura··on Working from home may hurt your career
True, some people just have other goals in life than being defined by what they do to make a living (aka "career")..
jventura··on Ask HN: First time in 4 years I lost interest working for startup. What do I do?
It doesn't have necessarily to be burnout! For instance, I would also rather do an hundred million things than working.. It may be just a part of "growing" (as in moving along)
jventura··on Ask HN: Django vs. Flask
My suggestion for beginners:

- If you want to do simple apps that do not touch the DB, or any kind of persistence, you can start with Flask. Much simpler to start.

- For a more integrated experience on web development, including DBs, use Django. Their tutorial is very very good: https://docs.djangoproject.com/en/1.10/intro/tutorial01/

I teach these subjects in a local university to BSc and MSc students, and since I want them to learn fast and lots of functionalities regarding web dev, I go directly to Django (after teaching them basic http with python and sockets - like this: http://joaoventura.net/blog/2017/python-webserver/).

jventura··on Ask HN: Is there a powerful open-source Google Calendar replacement?
Similarly, I've only added my email account to the desktop app (which should only act as a email client), and somehow they grabbed my email account and start spamming me.
jventura··on The Arrival of AI
> Meaning isn't something physical in the universe. Meaning is an emotion. It's what you feel when you're working towards something that you believe has some greater importance. With all opportunity to work towards anything taken away, life will become meaningless by definition, unless humans are left with some pseudo-artificial challenges to push against.

Although some minority of people derive "meaning" from work per se (work = something that you get paid to do), I would say that the vast majority of people can derive meaning from other things. For the vast majority, work is for getting money.

Therefore, there are still lots of things that you can use to derive meaning, such as: raising a family, caring of others, playing music, study different subjects for fun (philosophy, etc.), be part of your local community, do sports, do competition sports (if that fits your style), etc. etc. etc. etc.

Bottom line: do not mix work with quest for meaning...

jventura··on Python for Android
Because I already had a lot of code doing a lot of things in Python (https://github.com/flatangle/flatlib/)..
jventura··on How to Extract Data from Wikipedia and Wikidata
I was in a similar situation some years ago, where I needed wikipedia documents for building a corpus of documents for text-mining. Eventually had to build a solution myself from wikipedia's XML dump files.

Here's the link to it, may someone need to do something similar: https://github.com/joaoventura/WikiCorpusExtractor

jventura··on Python for Android
Some years ago I tried to use python-for-android, but found it too much of a burden to do what I wanted, which was just to simply integrate existing python code in native android apps (with Java). Don't know how much has changed since then, but python-for-android's bootstrap used pygame and pysdl to start an opengl scene, where you would have completely non-native widgets.

I rolled my own solution [0] which uses crystax distribution's of CPython for android (Python 3.5), and I did a very simple JNI bridge between java and cpython using an RPC-like mechanism over json. Basically, on the java side you call a function and pass the arguments [1], and on the python side you "route" it to your own functions [2]. I think all pybridge's code is very very simple for those who understand a bit of Java, a bit of C and a bit of Python, and I explain in the readme how everything works, including which classes/files are relevant.

I have an app where I use this [3], and although it hasn't earn me much money so far (~20 downloads, 110€), it is rated 4.7 in the play store, so the performance of accessing python functions on android is not bad at all..

[0] https://github.com/joaoventura/pybridge

[1] https://goo.gl/sw4JLt

[2] https://goo.gl/17SlVb

[3] https://play.google.com/store/apps/details?id=com.flatangle....

jventura··on Yes I Still Want to Be Doing This at 56 (2012)
> I'm burnt out, thanks to being an Android developer. (Don't do it!)

Curious by your answer: something about bad apis on Android, or you got burned by deadlines or boring work?

jventura··on Yes I Still Want to Be Doing This at 56 (2012)
This is a good way to show how a PhD can be relevant to one's career outside academia, contrary to what is usually discussed here on HN..
jventura··on Ask HN: What is the most important publicly unknown fact in your industry?
My experience as well!

Once I was contacted by a friend who works on the QA department of a factory (belonging to a multinational company) to implement a system to keep track of the building process (what was soldered, who did it, what tolerances it must have, things like that). The factory's process was entirely modeled in Excel spreadsheets, with the caveat that they took almost 6 months to gather and deliver the data to the client after installing the product on the client site.

As it was a freelancing job, I gave them a very high hourly rate, such that it they could forget about it, as it was too much work for one person alone. But in hindsight, I also refused because most certainly it would imply that a lot of the workers in that departament would be made redundant (there were 30 workers there, I would say that at least half would be unnecessary after the system was up and running). If only management understood the huge savings that would be possible.. But in this case, I'm glad they don't!

jventura··on Jobs for Americans in Europe?
For Portugal, check https://landing.jobs/. But not sure if there's many QA jobs around here, and even then, the payment is not what you usually see in places like Silicon Valley..
jventura··on Ask HN: Share your audio programming knowledge?
> Will YOU be my mentor?

Sorry, not knowledgeable enough. But if "written" music is your thing, you can check https://musescore.org/ and try to ask someone on their forums?

jventura··on Ask HN: Pros and cons of creating a Webassembly to Python bytecode lib?
> would it be worth it?

Nobody can tell at this point in time.. Nevertheless, regarding Python in the browser, there's Brython [0] which works, although I don't know how's using it in production..

[0] https://brython.info/

jventura··on Announcing Rust 1.16
> Do you have any better approach to JNI calls other than Djinni, SafeJNI, SWIG, RPC-like with bulk of work on Java side?

I use this homegrown solution on an Android app of mine which integrates with the CPython interpreter: https://github.com/joaoventura/pybridge/

It is RPC-like, but the code is quite simple: https://github.com/joaoventura/pybridge/#how-it-works. In the java-side, you just create a JSON object, send it to Python-land and get the result. Here's the java example in the code (https://goo.gl/sw4JLt) and here's the python function that it calls (https://goo.gl/hgbqVR).

Don't know if it's what you're looking for, or how it compares to the solutions you mentioned above, but I had someone from dropbox contributing a fix, and mentioning that going forward with a solution like this he would need something similar to djinni regarding error handling: https://github.com/joaoventura/pybridge/pull/3#issuecomment-...

jventura··on Programmers should not call themselves engineers (2015)
This is what you can find on the wikipedia entry on engineers [0]:

> The foundation education of an engineer is typically a 4-year bachelor's degree or in some countries, a master's degree in an engineering discipline..

I would add further that, following the above, a software engineer is someone who has a formal higher education in engineering applied to the design and implementation of software systems. Under these definitions, a developer without formal university education is not a software engineer, although he may be technical competent to design and implement software systems. In a nutshell, the difference is not on "competence" or "skills" but the lack of formal education..

[0] https://en.m.wikipedia.org/wiki/Engineer

← PreviousPage 12 of 19Next →