HackerLangs
TopNewTrendsCommentsPastAskShowJobs

estebank

6,040 karmajoined há 14 anos
[email protected]

comments

estebank
·ontem·discuss
> And some programmers are so good that some issues are self-explanatory and they write good code to note a thing but don't write a test, because implementing the test is more expensive.

You don't write a test (just) to verify that your change fixed the issue, but to ensure it doesn't regress in the future after an unrelated refactor.
estebank
·há 5 dias·discuss
If anything comedy is an excellent way of learning a language: the use of double and triple entendres helps to quickly get exposed to alternate meanings and misunderstandings of words. Comedy aimed at learners or multilinguals can also help, plenty of anglos who learned Spanish can relate to "feeling pregnant" early on :)
estebank
·há 5 dias·discuss
Someone who can speak English on top of their mother tongue is already multilingual. Anecdotally, people who live anywhere close to a border in Europe tends to speak at least two languages, often more than two, regardless of class or profession.

In Latin America, most countries speak Spanish (with the obvious exception of Brazil and smaller colonies from the other European countries), so the every day pressure to learn another language isn't there and English becomes the "obvious" choice. I don't quite get why you seem to discount English entirely.

There's always been a Lingua Franca. It hasn't always been the same one. There will likely always be one.
estebank
·há 7 dias·discuss
You sure come across as calm and collected, looking for a good faith discussion...
estebank
·há 8 dias·discuss
In cycling threads you always have comments both telling cyclists to stay out of sidewalks and others telling cyclists that they "only* belong in sidewalks (and away from the road they drive in).

It is legal in some places, illegal in as many others, and has caveats almost everywhere (children are almost always allowed, in other places it is based on speed, etc.).
estebank
·há 8 dias·discuss
We can't individual responsibility our way out of systemic problems. Cyclists on sidewalks generally signals terrible bike infrastructure.

There are people on bikes that ride like an asshole. There are people on cars that drive like an asshole. Both cause (different levels of) risk for pedestrians. There's only so much we can do about assholes, social ostracism works only so far and social change is much harder to accomplish than modifying our built environment to reduce or eliminate conflict points.

As an aside, I've noticed people get startled when I'm on my bike stopped but balancing on my bike while I wait for then to cross. I think some people intuitively model bikes on the same category as cars, so being anywhere close causes them to react as if a car hard crept close.
estebank
·há 8 dias·discuss
Yes, that would be one way of doing it. You can model off of the Typed Builder pattern:

  struct Builder<const A: bool, const B: bool> {
    a: Option<u32>,
    b: Option<u32>,
  }
  struct Val {
    a: u32,
    b: u32,
  }
  impl<const B: bool> Builder<false, B> {
    fn set_a(self, a: u32) -> Builder<true, B> {
      Builder {
        a: Some(a),
        b: self.b,
      }
    }
  }
  impl<const A: bool> Builder<A, false> {
    fn set_b(self, b: u32) -> Builder<A, true> {
      Builder {
        a: self.a,
        b: Some(b),
      }
    }
  }
  impl Builder<true, true> {
    fn build(self) -> Val {
      Val {
        a: self.a.unwrap(),
        b: self.b.unwrap(),
      }
    }
  }
This won't work for everything, but it is a pattern that I find useful to ensure that things can't happen out of order.
estebank
·há 8 dias·discuss
This is in effect a state machine, and when you have a type system more complex than C's you can encode state transitions in the type system (either by having state transitions explicitly return a new return type or by using sum types). You still need to architect the system to encode the invariants in types. No language will fix all logic bugs for free. But you can leverage language features to reduce their number.
estebank
·há 8 dias·discuss
Like DVD before it, Blu-ray includes region locking as a feature (but apparently ~70% of disks don't bother with it, notably Paramount and Universal don't). Non-locked disks are marked as ABC (A is the Americas and Asia, B is Europe/Africa/Aus/NZ, C is Russia/India/China).
estebank
·há 10 dias·discuss
The movie itself is generally encoded at a higher bitrate than what you can find in streaming or torrents.

The media includes bonus features that generally aren't available in streaming or torrents.

The media will not suddenly stop existing if some server breaks down, some company goes under or some contract expires.

The movie will not suddenly get "patched" with an AI-upscale or censored scene one day while watching it.

You can lend the media to someone else to watch without having to ask for permission to anyone else.
estebank
·há 10 dias·discuss
A lot of people talking about how displaying the flag at all could get somebody in Russia in trouble. You could see the increasing of the likelihood as helpful then, because the flag could always appear. By making it come up more often it communicates to the user that it can appear it gives a chance to the user to notice it in a "safe" situation and not use xsnow if they are in a situation where it could cause trouble for them. The existence of the flag is not quite mentioned at https://www.ratrabbit.nl/ratrabbit/xsnow/, and the site is loading too slow to see if it is shown in https://www.ratrabbit.nl/ratrabbit/xsnow/visuals/index.html.
estebank
·há 11 dias·discuss
This is a problem I'm seeing a lot of countries rushing full steam ahead. The age of a single physical ID that's only rarely needed and ubiquitous cash payments seems to be coming to an end. For anyone who travels a lot, migrants first settling in a place, or citizens abroad, this makes things even harder than they already were.
estebank
·há 16 dias·discuss
This kind of thing is one of the reasons crates.io distributes source only, and that published crate dependencies can't depend on other repositories (that might allow for that attack).
estebank
·há 16 dias·discuss
Feel free to point at 1 thing that the rust-lang didn't do because the Foundation blocked it.
estebank
·há 16 dias·discuss
Open source projects tend to be (and Rust certainly is) a showupocracy. Shit gets done when people that care about that shit does it. This means that important stuff that everyone agrees is important but not important enough for me to do, doesn't get done. And that some things end up being 80% solutions that scratch the itch of the person driving a project and progress stalls beyond that.
estebank
·há 16 dias·discuss
1) Trawl registry for packages owned by domains.

2) Note expired domains and register them yourself.

3) Supply chain compromise.

That, and not wanting people to fork out money for a domain as a requirement to participate in the ecosystem.
estebank
·há 17 dias·discuss
> Not only does that not have anything to do with texting, but it has nothing to do with the roads.

From both the NYT video and their article:

> And that increase is unique to the US. Most other wealthy countries haven't seen a similar surge, suggesting that possible culprits, like the raise of smartphones, don't tell the whole story.

---

> If you hit someone with a tall-ass truck in Portugal, I'm pretty sure he's going to fall over just like he would in the USA.

How popular do you think the tall-ass trucks are in Portugal?
estebank
·há 17 dias·discuss
Or, put another way, 1% of every traffic fatality, or 8% of every pedestrian killed by cars. Those are not a small number being affected by a single variable.
estebank
·há 17 dias·discuss
Because the effects are explicitly called out for US roads and not other locales.

https://m.youtube.com/shorts/FDvTWy0LMt4
estebank
·há 17 dias·discuss
Could it be that the other differences are driven by differences in the built environment? Like narrower roads making people drive slower, or bollards, or alternatives to driving making it less likely to have people that shouldn't be driving doing so?

Also, 10% is a huge effect.