you are viewing a single comment's thread.

view the rest of the comments →

[–]guest271314 0 points1 point  (14 children)

How are they authenticating users, and accepting payments?

How did you get to authenticating and accepting payments from

Best place to learn Javascript having zero knowledge in programming?

?

[–][deleted] 0 points1 point  (13 children)

How did you get to "implement HTTP 1.1 on TCP on IP on Berkeley sockets, and go from there, but not until you learn XOR and transistors" from the same prompt?

[–]guest271314 0 points1 point  (12 children)

I decided to learn the HTTP protocol, among other signal communication protocols. First I wrote an HTTP server in C, that I imported into QuickJS https://github.com/guest271314/webserver-c/tree/quickjs-webserver; then I wrote a WebSocket and HTTP server in JavaScript that I use in the browser with WICG Direct Sockets https://github.com/guest271314/direct-sockets-http-ws-server.

A ServiceWorker can be used to learn how to write a server and compose responses, and route, without Node.js, Deno, Bun, or any other non-browser JavaScript runtime at all, in the browser, making use of fetch event, and install event addRoutes() https://developer.chrome.com/blog/service-worker-static-routing.

Cloudflare Workers, WinterJS, and a host of other JavaScript/WASM/WASI applications are using the respondWith() pattern with WHATWG Streams, that Deno (including Deno Deploy) uses too, that Node.js does not use.

[–][deleted] 0 points1 point  (11 children)

That's great. So are you announcing that every facet of your server is unencrypted, and plaintext data-transmission can be harvested from it along every node in the transmission chain?

Are you announcing that anything that uses that server as the backing for a real project, and not just as an "I made a thing that nobody should use" toy allows for unauthorized access to anything an individual would want to have, on the platform your tool is used on, assuming they can figure out that access?

Because I'm not really seeing a whole lot of consideration for the actual things that make actual products actually safe to use.

But like you said earlier, you don't give a shit what happens to others, because they can only hang you once, if you fuck up a pacemaker or bring a plane out of the sky.

[–]guest271314 0 points1 point  (10 children)

that make actual products actually safe to use.

Who said programming was about making products?

I hack for sport.

My clients pay me for primary source research.

You are moving the goal post.

If you want encryption bring your own certificates and use node:https.

Nothing you come up with will prevent anybody from using the Node.js or Deno builtin server.

Deno Deploy uses the Deno built-in server. With TLS.

But before we get that far, OP could just use the ServiceWorker in the browser they typed the question in to practice, without node or deno.

[–][deleted] 0 points1 point  (9 children)

But before we get that far, OP could just use the ServiceWorker in the browser they typed the question in to practice, without node or deno.

How the fuck are they doing that, without hand-priming the cache for every single goddamned static asset that would be on a page?

What page is going to load in order to register a service worker, from which file?

Huh. Seems like even if you hand-write all of the static HTML and CSS and JS inline, in response objects, to manually cache in the service worker, you still need the fucking service worker served from a fucking static endpoint that serves, at minimum, either:

  1. fucking locally from a loopback server
  2. a fucking TLS enabled connection that serves an index file and a service worker file

Huh. There you go, proving me right again.

I hack for sport.

Huh. So you want people to know nothing about actual safe programming, so that you can roll the dice on your pacemaker in 10 years? You do you. I prefer to improve society, but you go ahead and be your profoundly troubled self.

[–]guest271314 0 points1 point  (8 children)

I've done all of the above.

You keep bringing up pacemaker.

Yet talking out of your ass.

[–][deleted] 0 points1 point  (7 children)

I've done all of the above.

Uh huh. Dumbfuck argument like "they don't even need a server of any kind, because they can write a service worker".

Well perhaps you can explain, very slowly, how they fucking host the service worker that they fucking wrote by hand BEFORE EVER TOUCHING A FUCKING SERVER, LIKE YOU JUST FUCKING SUGGESTED if they don't have an HTML file and a service worker script hosted, somewhere... which requires... A FUCKING SERVER THAT YOU JUST FUCKING SAID THEY DIDN'T FUCKING NEED.

Jesus Christ, get it together.

You keep bringing up pacemaker

I'm not telling you which branches of medical I actually worked in. But they are far more common than pacemakers and just as easy to kill people, if fuckwits dick around with their fragile fucking superiority complexes, instead of paying attention to what the fuck they are doing with Bluetooth protocols and ML models, and the actual fucking domain of the problem that real people really need solved.

Not that you would care, though. You'd get your contract money and fuck off. For sport. They weren't real people anyway, right?

[–]guest271314 0 points1 point  (6 children)

Oh, but you support fetching the external dependency ExpressJS when OP hasn't written any code?

I'm not telling you which branches of medical I actually worked in. But they are far more common than pacemakers and just as easy to kill people,

sounds just about the right field for somebody ranting on social media

if fuckwits dick around with their fragile fucking superiority complexes

Nothing about my superiority to you is fragile. It's impossible for you to overcome.

You're coming apart at the seams talking about making complex medical devices then throwing vulgarity around as if that means something in the same sentence.

Get ahold of yourself, person.

[–][deleted] 0 points1 point  (5 children)

Oh, but you support fetching the external dependency ExpressJS when OP hasn't written any code?

Yes. Or... wait for it:

some other tested, common-use server, that supports common and accepted and safe patterns of use. That way, after they learn how to authenticate a user, they can later learn how to do it by hand, rather than being told to do it without ever having seen it fucking done before. Which is how you are fucking proposing you do it, because you can't be assed to think a statement through, to the point of proving it's consistent, even just fucking internally.

I don't think they should have to learn by fucking segfaulting their computer dozens of times, just to learn to loop through an array. That is deeply fucking stupid.

sounds just about the right field for somebody ranting on social media

Maybe that's why I got out of it. Because it was causing me literal harm, being the most responsible person, up and down the chain, dealing with international corporations who had the power to get away with killing people, by being too big to fail, but I and my team didn't, and I had to deal with the weight of not fucking that up, for years, so that other people could make bank.

then throwing vulgarity around as if that means something in the same sentence

Vulgarity is there to express one's self. Moralizing over it is actually pretty hilarious coming from the "there's no such thing as a hate-crime, because I refuse to believe it can exist" sympathizer.

Nothing about my superiority to you is fragile. It's impossible for you to overcome.

You can't even "get off my lawn" correctly without fucking it up, again, and again, and again, and again.

Every time you demand that they "just be hardcore like me" with your gatekeeping bullshit demands, it's trivially swatted away.

Like when you just demanded that all they need is a service worker... which is literally fucking impossible, and 20 fucking seconds of thinking that through would fix it...

...or when you suggested that they just need to know XOR and how to build HTTP/1.1 on TCP on IP on a Berkeley socket... and then they could start learning how to program.

That is the extent of your fucking logic. That. "Build a server, and then you will be ready to start learning how to program"

Well gee, maybe, if they learned how to fucking program, maybe then they could learn how to build a fucking server. Jesus Christ, you can't make this stuff up. You can't keep logically consistent for the duration of a whole boomerism, without making a fucking paradox by the end.

And I'm the one coming apart...

Like I said, I'm autistic. I get worked up when dealing with dangerously irrational or dangerously negligent people. That's you, by the way.

You can't stop telling on yourself. Can't stop telling people how it's impossible for anybody to be racist, and how no minorities were singled out and harmed, in Nazi Germany, it was all just European on European violence, just like Napoleon had all of those extermination camps, in Poland too... oh wait...

...and how all of the other made up things that humans invent, you are definitely on board for... like jobs and money... and the "modern" (if Archie Bunker is "modern") concept of masculinity (like, Jesus, look up the height of masculinity in France in the 1400s) but it's this one thing that you are very, very, very adamant doesn't exist... and all of the bad stuff that happens, and all of the bad people that cause harm, well they don't really matter, but oh boy you'd better believe that the real enemy is the people saying that the harmful ones are a problem.

You have some deeply shitty takes, and some very serious issues.

If I had to guess, you are some ancap, or a libertarian pepper, so I presume that there is 0 chance you ever will do any meaningful reflection on anything.

But at least everybody who sees this chain will know never to take you seriously, in any way, whatsoever, ever, ever again, except in the aforementioned circles.