Couto's comments

Couto | 2 years ago | on: React Labs: What We've Been Working On – February 2024

React was closer to elm during the times of stateless functions and redux. Since then it's getting further apart from elm.

Redux was kinda of a poor man's elm but it got the right principles. However the JS community hates boilerplate code so, new, more complicated abstractions appeared. Also, it was too easy, with redux, to shoot yourself in the foot.

Since then, with hooks, things are just getting harder and more complicated in my opinion.

Couto | 2 years ago | on: New version of Monica, codename Chandler, is available in beta

Definitely interesting, albeit a bit too green to be a beta version imho (I can't select a contact when adding a relationship, added two pets by accident because there was no feedback... e.g).

However, it looks really promising and more feature rich than the current version of Monica.

I do have a question thought. Will this version support WebDav/Cal? Syncing contacts to my mobile phone is the main reason why I use monica on a daily base.

Couto | 3 years ago | on: Show HN: Garnix, fast and easy CI for Nix

Used jslint extensively back in the days.

The reason why it fell mostly in disuse nowadays is because jshint appeared, which allowed a lot more customization of the available rules being applied.

Later eslint popped up with it's plugin engine allowing anyone to have their own custom set of rules.

As far as I know, no one cared about jshint's license because there was no code being shipped, and eventually code would be minified anyway leaving no traces of jshint.

Now... We can talk about the morality of ignoring a license, but ultimately jshint's license was simply ignored by almost everyone

Couto | 4 years ago | on: Coverage is not strongly correlated with test suite effectiveness

Coverage only indicates which parts of the codebase were touched by the test suite. A big test suite size doesn't mean high coverage.

Coverage can be increased without increasing the test suite by reducing the code base size (within pratical limits obviously)

Personally, I only find coverage as a good indicator of which code still needs to be tested, like forgetting some edge cases or conditional branches.

Couto | 5 years ago | on: Deno 1.6 supports compiling TypeScript to a single executable

This reminds me of the server that Zoom used to have. Accepting connections only from 127.0.0.1, alone, isn't enough, since any request from the browser would match that IP, even if the request was being made through a XSS attack.

I'm sure someone with more knowledge in security would better chime in.

Couto | 6 years ago | on: Portugal’s radical drugs policy is working (2017)

You are right, but just to give a better picture of Portugal: We still have a lot of illegal drugs coming from Morocco, it's not a solved problem yet.

When this law was approved (2001) Portugal (Casal Ventoso) was the major Europe's entrypoint for heroin and everybody knew someone who was addicted, and it was impossible to walk in any city's park and not see an used syringe on the ground.

I think what's happening in the US with the opioid crisis is a bit different that requires a different solution. Regulation vs Decriminalization.

Couto | 6 years ago | on: Portugal’s radical drugs policy is working (2017)

Just my opinion:

In my experience, when people say drugs they think of cannabis, but cannabis was never the major problem in Portugal.

Our problem was heroin. I think no country will legalize heroin, at least not in the short/medium term.

This is clearly working, one of the major entrypoints of heavy drugs in Europe (Casal Ventoso in Lisbon) is almost clean of problems, there are still heavy drug users of course, but most of the associated violence disappeared.

Even portuguese people's mindset shifted from "junkies" to "people that need help".

So even if you consider a "halfway there" because you're thinking about legalization, this is still working and it's a good middle term to help society shift their mentality.

Disclaimer: I'm talking from my experience as a Portuguese person, not hard numbers. I remember walking in my hometown parks (which is a very small city) and see syringes and drug users everywhere when I was a kid. This doesn't happen anymore.

Couto | 6 years ago | on: Portugal’s radical drugs policy is working (2017)

That's not the same than being decriminalized.

In Portugal, if you do that the police will ask you for your ID if it's a light drug like cannabis, or take you to the police center if it's an heavier drug. If you keep being caught by the police a judge can order you to take psychiatric help.

Being decriminalized means that you won't be arrested when you ask for help, and you have access to clean syringes to avoid diseases and infections.

Help being provided, it's not the same than being legal.

Couto | 7 years ago | on: How to Android without Google

Out of curiosity, how did you manage to have Mozilla as a location provider?

I hope i'm wrong here, but as far as I can tell. You need either google services or unifiedNLP from microG to achieve that.

I say this, because I run LineageOS without Gapps and I could never make it work with Mozilla's location provider.

The lack of geolocation is the only thing bothering me to be honest.

Couto | 11 years ago | on: SMSSecure – SMS Encryption for Android

You can use SMSSecure as your default messaging app. That way you don't have to switch apps. You can even import your SMS from the default messaging app so that you don't loose your history. Bonus: you can then encrypt those SMS locally, but that's optional.

You can toggle the option to send encrypted sms or not, per contact, so if your contact doesn't support SMSSecure, you just send a regular SMS.

The ability to know who's using SMSSecure is interesting and not currently supported (that I know of)

Couto | 11 years ago | on: SMSSecure – SMS Encryption for Android

Both parties need to have SMSSecure installed, and a secure session started — a roundtrip of sms to exchange keys, or something (im not an expert so not sure if those are keys, or something else).

Otherwise they will only see a garbage of letters/numbers.

Couto | 11 years ago | on: How to set up your own free VPN server on AWS

Yes.

Streisand is just a bundle of ansible playbooks so it can easily be deployed on any server that meets the requirements: Debian 7 or similar.

It also has a nice menu to deploy to Amazon, Linode, Digital Ocean and Rackspace without extra effort.

Couto | 11 years ago | on: Yahoo wants to let you forget your Yahoo password

Quick question... assuming that this would work on all yahoo services.

Now imagine that I lose my phone, I guess that I will have to ask to receive a reset token, or something similar, on my yahoo mail, right?

But then how do I login on the mail service without my phone?

(it's a honest question)

page 1