• 0 Posts
  • 82 Comments
Joined 2 years ago
cake
Cake day: June 13th, 2023

help-circle



  • json is fine as a serialization format for things that need to be text, but it’s not great as something that gets edited by hand.

    not that I enjoy xml, but writing long strings in json is even worse. xml I can write multiline strings as a first class entity.

    I can add a comment to an xml document, json I have to write something hacky like "//": "my comment" and hope whatever is consuming it doesn’t care.

    there’s just as many problems with json parsers, since most but not all of them treat numbers as js numbers, which are basically floats. you can’t rely on an arbitrary consumer having support to parse ints above a certain size so you just have to make everything a string and hope.

    json allows duplicate keys, but they get overridden by the last occurrence. you can’t round trip json without losing something. you can’t rely on just seeing a key value in json text and that being correct since there could be another later. doesn’t come up often but it’s there.









  • linting config itself wouldn’t be defined there, and it would be verified in ci and such, but a setting to tell vscode which linter and extension it should use to show warnings would be.

    modern languages may have their own way for configuration but they don’t have a way to bind it to the list of vscode tasks and define how to run a debugger, which is the part that gets stored.

    it’s easy to go overboard with extension suggestions, but I don’t think adding an extension for linter used, extension for formatter used, and any languages used if there’s a definitive extension.

    My team is split between visual studio, vscode, and I use emacs. we have config for both vs and vscode in our repos since it makes working on a new project so much nicer and means we aren’t just sharing editor configs through side channels instead. it doesn’t do anything to me if I have editor config for an IDE I don’t use in the repo, but it makes it easier for someone new to jump in with a sort of same environment immediately




  • Ikea smart devices are all zigbee so far, which is great since you can just plug it in to home assistant and it does respect your privacy.

    Plugs like this are also a lot more useful than just saying total power consumption or whatever. I have a few similar for automating not smart devices. Things like a proper notification when my kettle or rice cooker is done, notification when humidifier is empty, etc. You get the functionality of a smart device but it’s as cheap/robust as the original version, and privacy respecting/more secure since it can’t be connected to the internet



  • Why would I need to remember an ip address if I have a hostname? I don’t know my ipv4 anywhere since it’s all dynamic.

    Standards like those change just fine. Sure some stuff uses ascii still, but almost everything I encounter is unicode. Email has had so many things added on over the years that that’s not a fair comparison either. Other countries have plenty of kb layouts that are more popular locally than qwerty but came afterwards.

    At some point ipv6 will be the default and we’ll just use compatibility layers to access ipv4 only things. We don’t need every device on board, just the ISPs



  • the problem is there are a ton of varieties of tofu, and they’re all generally around the same price. it seems the silken tofu have around 5g of protein, but some of the extra firm varieties have over 15g protein per 100 tofu, putting it in a much more respectable spot in the bottom middle with the grains and such