Sunday, December 15

Geek

Daily News Stuff 15 December 2019

In Before Midnight Edition

Tech News

  • 😇😠😲😢😚😐😝😌➖🙁🤮😣🙁➖🥰😑🤡🤥➖🙁😞😐🤢🤢🤬😂😒🤢😚😰😍
    CuteUID is a drop-in replacement for UUID for all your production tasks that you don't care about very much.  (GitHub)

    It may not be robust or reliable or tested at all, but you can get a heck of a lot of free entropy by replacing hex digits with emojis.

  • Just when you thought you'd seen everything along comes an enterprise application deployed as a 500TB Dropbox account.  (Reddit)

    I mean, I love Dropbox, it saved my bacon when my external drive failed earlier this year, but I wouldn't even consider thinking about doing anything like that.

  • How to build your own web search engine.  (Cliqz)

    Short answer: Apache Cassandra, and Kafka for managing the data streams.

    Long answer: Cassandra, Kafka, and 32 separate management tools because with the best will in the world the whole thing is still a horrifying mess.

    (I've used Cassandra in the past for something similar, but smaller in scale.  I quite liked it.)

  • Uber and Lyft are trying to back off fare subsidies before they run out of investors.  (Wired)

    Uber's lost $5.2 billion in the last quarter, and Lyft $644 million.  When even the idiots at Twitter can turn a profit, that's gotta hurt.

  • You can't print web pages anymore.  (Humane Interface)

    This site should print okay, since its 95% pre-rendered with just a sprinkling of JavaScript, and I'll test it next week with the new site.

  • Speaking of which, I've been playing with Vue.js.

    It is not horrible.

    What I like about it is that (like older libraries such as  jQuery or MooTools) it is completely agnostic about your back-end system and development process.  You don't need to use a build tool - you can if you want, but you don't need to.

    Add a link to the single JavaScript file to your page (it's available on a free CDN) and off you go.  If you have an existing site and you only want one thing to use Vue, you can change just that one thing.  Everything else will work.

    The one wrinkle is that it uses Mustache-style interpolation - you can use {{name}} to insert a user's name into your page, so if your existing system does server-side rendering using Mustache or Handlebars that won't work.

    But it also has an alternative syntax parameters directly to HTML tags.  It's more verbose, but also more specific, and lets it coexist happily with server-side rendering.

    The magic thing it does is bind elements on the page to program data.  You don't need to write logic to update the elements (as you would with JavaScript), you just say "this element or attribute is bound to this variable":
    <span v-bind:title="message">
    and when the value of that variable changes, the page updates.

    Angular does all this too, and is far more popular, but you have to use the Angular tools to build your Angular app.  You can't just write code.  And those tools are written in Node.js.  And Node.js is cancer.

    Update: Aha, found the catch.  Fortunately it's not major unless you already have a huge amount of client-side JavaScript.

    You can't assign directly to array elements, or directly add new object attributes, and expect Vue to see them, because JavaScript doesn't let Vue add a notification hook for those operations.  You can do the reverse - add new array elements, or assign directly to object attributes.

    For the couple of specific functions that don't work you need to use Vue.set instead of a normal assignment statement.


Disclaimer: Except that cancer is not usually contagious.

Posted by: Pixy Misa at 10:57 PM | No Comments | Add Comment | Trackbacks (Suck)
Post contains 598 words, total size 5 kb.




Apple pies are delicious. But never mind apple pies. What colour is a green orange?




51kb generated in CPU 0.0201, elapsed 0.2076 seconds.
56 queries taking 0.1982 seconds, 338 records returned.
Powered by Minx 1.1.6c-pink.