HackerTrans
TopNewTrendsCommentsPastAskShowJobs

typedef_struct

no profile record

comments

typedef_struct
·지난달·discuss
In 1997, the Justice Department decided that Operating Systems and Web Browsers must remain separate. Since then, the Web Browser has been becoming an Operating System.
typedef_struct
·5개월 전·discuss
You mean CO2 is not the same as CFCs?
typedef_struct
·작년·discuss
Confirms Rust is about where I thought it was. In a strange niche where you don’t need 100% the performance of C, but the 90% you get from a managed language isn’t enough. And you can’t run on the GPU.
typedef_struct
·작년·discuss
How about 'click-to-bill'. If I don't touch your service you can't charge me.
typedef_struct
·작년·discuss
Some good patterns here. An Event with a callback (what you're calling [context protocol](https://github.com/webcomponents-cg/community-protocols/blob...)) I think will prove useful.

My main gripe with web components is that while they expose the first half of the tree traversal (from the outside in, via connectedCallback), they don't provide access to the second half, after child elements have been created. (akin to Initialize and Load events from ye olde .NET)
typedef_struct
·작년·discuss
You could start with something like this:

    customElements.define('html-import', class extends HTMLElement {
        connectedCallback() {
            const href = this.getAttribute('href')
            const fetch = new XMLHttpRequest()
            fetch.responseType = 'document'
            fetch.addEventListener('readystatechange', (function onfetch(e) {
                if (fetch.readyState !== XMLHttpRequest.DONE) return
                const document = fetch.response.querySelector('body') ?? fetch.response
                this.replaceWith(document)
            }).bind(this))
            fetch.open('GET', href)
            fetch.send()
        }
    })
typedef_struct
·작년·discuss
Amazon does not have this information, nor would a competitive seller wish to provider it. Who my suppliers are and what they charge? So what, Amazon can better decide whether to enter my market?
typedef_struct
·3년 전·discuss
I usually think actors, writers, athletes, doctors, lawyers.