Preferences

Couto
Joined 341 karma
[ my public key: https://keybase.io/couto; my proof: https://keybase.io/couto/sigs/brY4-bIymKwbS8VhIlyOQuHGNge0NlpdLzBRXMf0Ozo ]

  1. 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.

  2. 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.

  3. 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

  4. 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.

  5. I get the feeling that the update framework[1] fits in here somewhere, but I can't point my finger where or how. Anyone willing to give a description on how they both could work together?

    [1]: https://theupdateframework.io/

  6. 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.

  7. 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.

  8. 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.

  9. 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.

  10. Certain countries like Portugal, Estonia and so on, already emit digital certificates stored inside the chip of every citizen's ID card. I believe these cards are made by Gemalto[1]

    [1] https://www.gemalto.com/govt/identity

  11. 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.

This user hasn’t submitted anything.

Keyboard Shortcuts

Story Lists

j
Next story
k
Previous story
Shift+j
Last story
Shift+k
First story
o Enter
Go to story URL
c
Go to comments
u
Go to author

Navigation

Shift+t
Go to top stories
Shift+n
Go to new stories
Shift+b
Go to best stories
Shift+a
Go to Ask HN
Shift+s
Go to Show HN

Miscellaneous

?
Show this modal