3 ms·
Kudos. We’ve all solved bugs with the wrong code. It was an interesting post and I found the unexpected secondary followup just as interesting. (Why did it work
by vintagedave 2y ago
Kudos. We’ve all solved bugs with the wrong code. It was an interesting post and I found the unexpected secondary followup just as interesting. (Why did it work for, eg, Chinese, do you know?)
See, I am not an Android developer either. I could have made the same mistake. To me it comes down to — why string types?
- moi2388 2y agoThis is always the issue. It’s why Python and JavaScript are so terrible, and the cause of so many bugs, yet so readily available in apis and cicd pipelines. Why people insist on keep using strings instead of typesafe variants is beyond me
- ficklepickle 2y agoTypeScript is nice here because you can specify the specific strings you accept in a union. Eg. `unit: 'AC'|'DC'`