Earlier quoted context omitted.
it is confusing the way you are explaining it, so much that even you can't understand. You do have a build step, you just think that doing that using node script is the same as not having one, I guess.
Yeah, IMO they are just making stuff up. Even as explained what they're saying makes no sense. Ultimately, there needs to be some entrypoint into the client-side script, node has no built in way to serve source code it's type-stripped over http.
Why Vanilla JavaScript
171–176 of 176 posts
Re: Why Vanilla JavaScript
#172Earlier quoted context omitted.
Yeah, IMO they are just making stuff up. Even as explained what they're saying makes no sense. Ultimately, there needs to be some entrypoint into the client-side script, node has no built in way to serve source code it's type-stripped over http.
If Node is your web server then node does have a way to serve the code to the browser... or you could just have node write the stripped code to a file for your other web server. It sounds like you are not even trying to think through this. I recommend putting fingers on keyboard and just trying to find your way through the solution instead of complaining about how impossible life is.
I recommend you stop making stuff up online. We're 10 layers deep into this thread and you still can't explain how any of this works in a coherent way.
If any of this is real, why don't you attach a link from the node documention or an article that explains this technique that allows node to serve type stripped imports over http.
I'm not asking for a link to the http stack, I'm asking you to explain how you run a node app that consumes your typescript source code and serves it over http without a bundler.
Re: Why Vanilla JavaScript
#173Earlier quoted context omitted.
Regarding puzzling design choices, I am wondering at the preponderance of data attributes like For custom web components, maybe the author forgot that you don't need to prefix attributes with data ?
You don't need it anywhere, unless you want to use dataset property.
Re: Why Vanilla JavaScript
#174Earlier quoted context omitted.
If Node is your web server then node does have a way to serve the code to the browser... or you could just have node write the stripped code to a file for your other web server. It sounds like you are not even trying to think through this. I recommend putting fingers on keyboard and just trying to find your way through the solution instead of complaining about how impossible life is.
> I recommend putting fingers on keyboard and just trying to find your way through the solution instead of complaining about how impossible life is. I recommend you stop making stuff up online. We're 10 layers deep into this thread and you still can't explain how any of this works in a coherent way. If any of this is real, why don't you attach a link from the node documention or an article that explains this techniqu…
But in the last post he kinda explained that he uses a node script to convert TS to JS. He is just confused.
Re: Why Vanilla JavaScript
#175Re: Why Vanilla JavaScript
#176Some good history of the JS ecosystem here but the underlying message is all the same, frameworks scale and provide structure but you don't need them. Very easy to agree up to this point. Author then elaborates in the absence of using a common-knowledge framework you can create some tighter solution that achieves just the part you need. This is "fun" programming, and the author is suitably impressed with themselves f…
We practice engineering. As engineers, we need to understand the realities of each project we take on. Those realities are not limited to the marketing bullet points we might apply to the imagined product someday, which is what early career folk might naively call "the requirements". Among the most critical realities to consider exist outside the product definition entirely, and have to do with the environment in whi…
Some engineers learned it works fine and are quietly maintaining a stable system well under capacity. Or building the most insane distributed systems ever conceived.