rockstarpirate
@rockstarpirate@lemmy.world
- Comment on Some Tesla engineers secretly started designing a Cybertruck alternative because they 'hated' it 1 year ago:
I’ll be perfectly honest with you. I have never liked the Cybertruck. It looked ridiculous when it came out and there were various online articles that agreed with this at the time. Though I will grant you that there were also a lot of people on the Elon bandwagon who thought it was awesome. One of my best friends actually put down the deposit for one and he and I had a lively debate about it. It was a controversial thing from day 1. And looking back now, this might have been my first clue that Elon was headed off the deep end.
- Comment on Which side are you? Javascript or Typescript 1 year ago:
Yeah it’s interesting because JS is interpreted, not compiled. The proposal allows for type annotations in the syntax but no actual interpreter consequences. On the one hand that makes sense because otherwise you’re in the territory of runtime type-checking which would be a huge performance hit and would sort of defeat the purpose of static types anyway. But that means you still have to rely on your IDE or a linter for this to be useful.
- Comment on Is it really a breaking change if a method changes output after an update? 1 year ago:
The way I do it, patches are backward-compatible bug fixes. Minor versions are additional features that don’t change existing functionality. Major versions include breaking changes. I totally get that it seems crazy to bump to another major version just over a string format change. But overall the philosophy works well IMO.
- Comment on Is it really a breaking change if a method changes output after an update? 1 year ago:
IMO it doesn’t really matter what you said the method was for. If you change the format of a string that is returned by a method that returns a string, there’s a risk of breaking user code, even if it’s just in the context of their dev environment.
Philosophically, whether or not the behavior of your API has changed is completely disconnected from whether or not others are using it “right”. If I can depend on a function to return a certain type of value when given certain arguments, and if it doesn’t produce other side effects, then it doesn’t matter what the docs say or what the function is named, I can use it in any context where I need that type of return value and have this type of arguments available. This type of function is just mapping data to other data. If you modify the function in such a way that the return value changes after being given the same arguments, that’s a breaking change in my book.
- Comment on If multiverse theory is true, then there is a universe where it isn't. 1 year ago:
⊥ 🙂