• 0 Posts
  • 26 Comments
Joined 1 year ago
cake
Cake day: August 3rd, 2023

help-circle
  • Rigor in definitions allows us to express a lot of complex things in a compact form. this allows us to treat “Cars” as something different than “Motorcycles” while both a motorized vehicles.

    Meh. There’s plenty of room in the gray zone between “car” and “motorcycle” where things like this or this can exist. The botanical world has worked very hard to create rigorous definitions of fruits and vegetables only to be completely ignored by cooks. The culinary world in general has done just fine for centuries without rigorously specifying whether taco’s are sandwiches and cereal is a soup.

    As long as it is generally understood what people mean by a word when they use it everything will be mostly fine. REST is an understood term, whether the inventor of the term meant something else by it is immaterial.









  • is-number is a project by John Schlinkert. John has a background in sales and marketing before he became an open source programmer and started creating these types of single function packages. So far he has about 1400 projects. Not all of them are this small, though many are.

    He builds a lot of very basic functionality packages. Get the first n values from an array. Sort an array. Set a non-enumerable property on an object. Split a string. Get the length of the longest item in an array. Check if a path ends with some string. It goes on and on.

    If you browse through it’s not uncommon to find packages that do nothing but call another package of his. For example, is-valid-path provides a function to check if a windows path contains any invalid characters. The only thing it does is import and call another package, is-invalid-path, and inverses its output.

    He has a package called alphabet that only exports an array with all the letters of the alphabet. There’s a package that provides a list of phrases that could mean “yes.” He has a package (ansi-wrap) to wrap text in ANSI color escape codes, then he has separate packages to wrap text in every color name (ansi-red, ansi-cyan, etc).

    To me, 1400 projects is just an insane number, and it’s only possible because they are all so trivial. To me, it very much looks like the work of someone who cares a lot about pumping up his numbers and looking impressive. However the JavaScript world also extolled the virtues of these types of micro packages at some point so what do I know.






  • It really is as simple as blending rolled oats and water in a 1:4-ish ratio for 30 seconds or so, and straining the result twice. Adding sugar is optional. It stores pretty well in the fridge, maybe up to 5 days. Trust your nose!

    Personally I don’t make it very often, as my main use for milk is in cappuccino, and plain oat milk doesn’t steam very well. The barista editions you can buy have some added extras (fat, sugar, proteins, stabilisers) to improve the characteristics for steaming.

    I totally understand the convenience factor of store-bought too. If you don’t have a blender on standby it’s a bit of a hassle. And the store bought stuff is shelf-stable for weeks when sealed.


  • There’s a couple reasons behind this:

    • Economies of scale. Oatmilk is not nearly as big of a market and therefore tends to be more expensive per gallon
    • Dairy subsidies. Dairy farmers can be pretty heavily subsidized, depending on the country, making the milk artificially cheap
    • Marketing. Oatmilk is mostly consumed by upper middle class (sub)urban folks who have enough disposable income to worry about things like animal welfare and the environment, and thus are willing to pay a premium for eco-friendly products. Companies know this so a lot of oatmilk is positioned and priced as a premium product.

    In a way it’s sort of disgusting that capitalism is exploiting your desire to save the planet for extra profits, however that’s how it is generally designed to operate: nothing happens unless there is a profit to be made from it.





  • What he means is, if you want to download the document from ISO that describes the standard, you have to pay a fee. Here’s their store page: click.

    It’s about 190 USD for a 38 page document describing the rules of the standard. There’s another document with extensions for a similar price. Quite pricey for a PDF file obviously, and the RFC is free to download.

    On the other hand, no one in the history of time has gone “hmm, I don’t know how ISO-8601 works, let me go buy this document from the ISO store to figure it out.” Most people just call datetime.isoformat() or whatever their library function is called.