HNHacker News
TopNewBestAskShowJobs

jventura

1,604 karma · joined February 4, 2016

https://joaoventura.net/
submissionscomments
jventura··on Ask HN: How are you coping with all the (mostly bad) news around you?
I'm a university professor and since classes are suspended for now, I'm taking the chance to fix some things in my house that were on my todo list. I've just finished putting some cement in some of my bathroom tiles.

Regarding news, I try not to watch too much news on the TV. I also think I'm relatively informed regarding this new virus, and as I'm not in (too much) risk, I try now to worry too much..

jventura··on Ask HN: I would pay 100$/Mo if you can solve this problem
Been there, done that.. Still overweight though, but not by much (~10Kg).

What has been working for me was a change of perspective, i.e., to accept that life is complicated and there's not enough time in one day to do everything I'd like to do. I now have a new "mantra" which is something in the lines of "any-thing is better than no-thing"..

I too used to read a lot of self-help books, but now they bore me.

I'm still playing catch-up with a lot of things that I should do, but I try to not overload my days. I have daily TODOs with no more than 2/3 things, and each Sunday/Monday morning I go to my weekly TODO lists and split those items through the week days. When I don't finish one thing on one day, I'll move it to the next one, etc. I use evernote for that, but could use a text file as well. I have some liberty in setting my schedule, so I try to do things in the morning and keep my afternoons free for house chores, taking walks, napping, or going somewhere to do something..

One cool thing that got me unstuck regarding things to do, was to sort them by "Easyness x Importancy x Urgency". If you tackle the most easy, important and urgent things first, you'll see things moving faster.. When you're down on motivation, don't listen to those who say that you should do the hard things first, as it requires motivation.

Also, every morning I do 20 abs on bed, then stretch my arms, legs, and do some 20 squats and some 10-15 pushups. It started by being only stretches, then abs, then 5 pushups, slowly moving along. Now it's a routine I have. I have way more energy, my partner agrees..

Also, I have dry eyes, so I started putting some drops, 2-3 times a day, and now I'm seeing way better, less headaches, more things being done.

In summary, it's the small things that add up. Don't try to do too much, too fast, too soon. Accept that life is hard and that our behaviors are hard to change (accepting != conforming).

jventura··on Ask HN: What kind of scoring algorithms exist?
In these kind of things I usually start by multiplying (or dividing) the parameters to get a score (weight=1). Then I sort them, see if they look "good" and add weights as needed. My thinking is that the first result should match my preferences and the last result should not. I know it's a kind of confirmation bias, but..

When I bought my car years ago, I had some parameters, but comparing the price was harder because of devaluation. I remember that I assumed a 15% yearly devaluation so that I could compare prices. For instance, a 2000's car valued 1000€ was almost similar in price to a 1999's car valued 850€..

I make sure to always include a "Preference" (aka bias) parameter and give it more or less weight the more it harms my results.

jventura··on My productivity app for the past 12 years has been a single .txt file
I use Evernote just like a folder with sub-folders and files in those sub-folders. For instance, I have my main folder, a folder to keep things of my workplace, a folder for generic notes, a folder for personal things, a folder for my monthly-semester-anual planning, etc., etc.

What I do that really has been working very well for me is maintaining a list of things to do for the next weeks (usually for the next 2/3 months). I have a list with items for my work, and generic life items.

For instance, my work list has something like:

  Week 10/Feb
  - SO: Prepare exam (print)
  - SO: Hold project discussions (Thursday, 10h)
  - CD: Prepare next semester (generic overview)

  Week 17/Feb
  - ...
My personal list has things such as:

  Week 10/Feb
  - SIM: do accounting
  - Ophthalmology (17h30)
  - ...
Every week I grab the information from those weekly lists and add to my TODO file. My TODO file is where I split the weekly items through the days:

  Monday
  - SO: Prepare exam (print)
  - SIM: do accounting

  Tuesday
  - ....
My TODO file comes from a template with recurrent items already set in their respective days, so I never miss recurrent things..

All in all, my system is like a calendar and todo list in the same place. I don't like to use two or three apps to do my planning.

Eventually I would like to get rid of Evernote mainly because I have to delete older items to keep my scroll to a minimum (and so, I lose all information about my previous weeks and todo lists)..

jventura··on API Practices If You Hate Your Customers
You can return a 400 and still return a json payload in the http message body. Maybe is that what the parent is saying?
jventura··on The Lesson to Unlearn
I wish I could do that to my students, but I have an average of 120 students on my classes each semester.. :/
jventura··on France, Spain, and Italy’s English skills are on the decline: study
> My pet theory is that English proficiency is much better in countries where movies are subtitled, not dubbed.

That is how I learned the basics of the english language when I was a kid. Here in Portugal movies are subtitled.

Incidentally, I went to Milan once to participate in this thing, and neither Italians, Spanish, French, Polish and Russian people could understand each other. I speak a little bit of everything (almost, had to use pseudo-english with the polish and russian) so I had to do the translations. Talk abou information assimetry: I knew everything that happened because I was the unnoficial translator.

The "best" part of that trip was to have to watch Four weddings and a Funeral dubbed in Italian! It went some months before I was able to tolerate italian language again..

jventura··on I Created a $60K/Month App That Collects In-Person Payments Through Stripe
> I’d say there are loads of opportunities like this out there, especially in places developers do not want to go because they are not deemed cutting-edge or fun.

Any suggestions?

jventura··on I Created a $60K/Month App That Collects In-Person Payments Through Stripe
Care to share any other “profitable” ideas? :) By the way, nicely done, some of us do really appreciate family and quality time in front of work time..
jventura··on Unbabel (YC W14) raises $60M Series C to become the world’s translation layer
Not OP, but I've heard they used to have a compulsory surf day per week or month, or something like that. Not bad if that's your thing..
jventura··on Implementing a Neural Network from Scratch in Python
I think they were chosen such that the weight and height values become negative for Females and positive for Males.
jventura··on Show HN: Learn C and its lower levels interactively, in the browser
I think it is quite interesting, although I think you do have too much information on the tutorial (too much clicking to do). I think it would be better if you could provide a much simpler example that it would allow people to learn how to use the tool by themselves. For instance, maybe start with what a push means, etc.

The thing is that you have two levels of learning here: the compilation step and how the machine works. It could be better to start with how the machine works and eventually how to write programs for it..

Keep up with the good work!

jventura··on Ask HN: Who is hiring? (January 2019)
This is very cool! Last year I wrote a manuscript on an hands-on approach to learning Python [0][1], going to apply on your site.. :)

[0] https://github.com/joaoventura/full-speed-python

[1] https://news.ycombinator.com/item?id=16622038

jventura··on Portugal’s Economic Revival
As with many things, I think the truth lies exactly in the middle! Let me explain..

In 2011, Portugal applied to an IMF bailout. What do you do when you beg someone for their money? You comply! You don't come out for the streets saying you won't pay! You say creditors exactly what they want to hear. You (seem to) reduce costs, you cancel holidays, you go even beyond what creditors ask you to do. You get smart, you understand you're in a weak position and take the best advantage of it. You don't do like the Greeks who let their egos be greater than their brains, and be on the spotlight for being over-spenders by saying they won't pay their creditors. That's what the government did in 2011-2015 and it worked! We got out of the spotlight and stop being perceived as over-spenders..

In 2015 a new government was elected. With the influx of tourists, and being seen as people who saved some money (and learned their lesson), the new government was in a really better position to try "the revival". They started reinvesting and giving the appearance that we are growing (and some things are, but also government spending). And it seems to be working so far...

So, what really seems to work? Both things. When you're in a weak position you comply, and then when you get to a stronger position, you negotiate. So both type of governments were needed at exactly their time.. A good timing - I think that was the key to the current success!

jventura··on I wrote a free book about TDD and clean architecture in Python
Well, you can try my "Full Speed Python" book [1].

Each chapter shows the minimal syntax needed for the chapter content, and then it has some exercises to get you going. I use it to teach Python to my Distributed Computing course students (2nd year students, which come mostly from a Java and C background).

The first chapters are mostly for beginners, so I guess you can skip them if you want. I also talk about more advanced concepts on the later chapters (such as iterators, generators, coroutines and asyncio). You can get the epubs/pdfs from [2]..

[1] https://github.com/joaoventura/full-speed-python/

[2] https://github.com/joaoventura/full-speed-python/releases/

jventura··on Tell HN: Merry Christmas
Igualmente!
jventura··on How to select an ideal array size in C?
What do you want to insert on your arrays?! Numbers, characters? Could you provide a specific example of what you want?
jventura··on Strange earthquake waves rippled around Earth
Been there some years ago for two weeks of paragliding. One of my best memories for sure, beautiful island, very clean waterfalls.. There's an active volcano though [1]..

[1] https://en.wikipedia.org/wiki/R%C3%A9union#/media/File:Volca...

jventura··on Advent of Nim
Has anyone tried to use Nim on an Android or iOS app? If yes, how's the workflow, is it straightforward?
jventura··on Heavy multitaskers have reduced memory
I can walk and talk at the same time, two tasks. Maybe we could say that humans can't do many cognitively hard tasks at the same time..
jventura··on Good sleep, good learning, good life (2012)
I’ve been using the Sleep Cycle app for iPhone. I got the recommendation here on hacker news.

Still not certain whether it works or not. Sometimes it tells me I’ve slept with a 90% quality but I still wake up feeling a little bit tired..

jventura··on China’s Giant Market for Really Tiny Cars
In Portugal we call them "mata-velhos" (old-people killer) as most drivers are usually old people without driving licenses..
jventura··on If You're Not Writing a Program, Don't Use a Programming Language [video]
I don't know who the target audience was, but I found the lecture very confusing and the message really badly passed (he keeps talking what is already written in the slides, etc.). I had to play it at 1.6x the regular speed so I could move on with it.

Regarding the topic, I think there are multiple ways of expressing ideas, where math happens to be just one of them. For instance, for the Greatest Common Divisor example, you could just say that "if x equals y the cgd of x and y is x, else you need to keep subtracting the smallest number from the largest until both are equal".

You could use simple math, such as:

             / x if x=y
  gcd(x,y) = | gcd(x-y, y) if x > y
             \ gcd(x, y-x) if x < y
Or you could use code:

  def gcd(x,y):
      if x==y:
          return x
      elif x>y:
          return gcd(x-y, y)
      else:
          return gcd(x, y-x)
In essence, what I want to say is that his definition of beauty and power may not match mine, but I will not argue that math can be more succinct or allow for better abstractions in many cases.

In the end, I got the feeling that he is trying to "sell" us his TLA+ approach.

jventura··on Poll: How old is your current smartphone?
I have an iPhone 5s still working fine, released in 2013..
jventura··on EU to recommend that member states abolish daylight saving time
I see that most people here (and people I know) would like to keep the "summer time" all year, because they like to get out early from work. But why not start working at 7am instead of 8am, while keeping the "true" solar horary, instead of our clocks be almost 1,5h away from the reality? Time is relative, I guess.. :)
jventura··on Ask HN: Codebase at my work is a complete mess, what should I do?
> Is it typical to be able to look at a company's code before signing up?

I guess it is not typical, but at one company I interviewed for I had a day for implementing something (a small feature and some unittests) which allowed me to check their codebase. I liked what I saw and worked there for some months.

jventura··on Squeezed: Why Our Families Can’t Afford America
If your health problems do not prevent you from working, it’s not a problem.. But keep in mind that even non-engineers and poor people have those benefits.
jventura··on Ask HN: What is your favorite way of setting up online store in 2018?
Like other posters, I suggest to test the market before writting your own software. A client of mine is using https://shopk.it for the store front, and it seems quite ok at 10€/month. It allows you to have your own domain attached to it, but you have to pay a little extra for https (which is kind-of strange, but...).
jventura··on GitLab Ultimate and Gold now free for education and open source
Someone already posted below, but you can find a pretty good list at https://github.com/leereilly/swot/tree/master/lib/domains or on the Jetbrains fork at https://github.com/JetBrains/swot/tree/master/lib/domains
jventura··on Ask HN: What, if anything, do you listen to while coding?
Classical music in loop, such as this: https://www.youtube.com/watch?v=wzeRSsNHtsQ
← PreviousPage 8 of 19Next →