8,715 karma · joined Feb 25, 2014 (12y ago) · 2,256 submissions
comment 3y ago · link · parent
While I don't think it will work on the scale FAANG wants (see e.g. Youtube premium), what is the legal roadblock to let users chose between tracking or paying for the service?
comment 3y ago · link · parent
It's not worth the boatload of problems it bring in all other and normal use cases though. Having the default value in the app or specified by the protocol is good enough.
comment 3y ago · link · parent
In Protobuf or JSON this is not a problem at all, the new field is ignored. With Avro you cannot read the message.
comment 3y ago · link · parent
I will never use Avro again on a MQ. I also found the schema resolution mechanism anemic.
Avro was (is?) popular on Kafka, but it is such a bad fit that Confluent created a whole additional piece of infra called Schema Registry [1] to make it work. For Protobuf and JSON schema, it's 90% useless and sometimes actively harmful.
I think you can also embed the schema in an Avro message to solve this, but then you add a massive amount of overhead if you send individual messages.
[1] https://docs.confluent.io/platform/current/schema-registry/i...
comment 3y ago · link · parent
I link it to people all the time, especially when they ask why protobuf 3 doesn't have required fields.
[1] https://capnproto.org/faq.html#how-do-i-make-a-field-require...
comment 3y ago · link · parent
A similar question would be how Airbus prevents airlines from building their own airplanes.
comment 3y ago · link · parent
Having these corner case be an over-focus of an overall better technology is a bad human habit though [2]
[1] https://www.rtlnieuws.nl/nieuws/nederland/artikel/5391449/zo...
comment 3y ago · link · parent
Swift, Kotlin, Javascript/Typescript along with some older languages (PHP, C#, probably more) have special null-handling in the language. Go and Rust do it differently, but do have an extremely strong opinion on how missing values should be handled.
comment 3y ago · link · parent
What doesn't make sense is to treat a nullable type the same as non-nullable type causing errors everywhere (Java), or make it so special that it basically has completely separate logic and operators attached (SQL)