3 ms·
> the user has selected for the machine I don't think most Java and C# software is desktop apps? Surely in most cases it's the locale selected for the server o
by greenshackle2 4y ago
> the user has selected for the machine
I don't think most Java and C# software is desktop apps? Surely in most cases it's the locale selected for the server or VM, which should be consistent?
(I'm not saying it's good coding practice, mind you, but it probably ends up accidentally working in a lot of cases.)
- vesinisa 4y agoYou write like you can know how and where the code will get executed in the future. :) Do you think that the authors of Windows 95 ever imagined the system would one day get ported to an obscure subset of a functional scripting language (Asm.js variety of JavaScript), and get booted in a hyper-text browser running on a PDA device with internet connection (web browser on a smartphone)? Yet - here we are: https://win95.ajf.me/ https://win95.ajf.me/ > I'm not saying it's good coding practice, mind you, but it probably ends up accidentally working in most cases Fully agree. It's still bad practice and I high-five every linter that automatically flags it.