u/ExoDroid

7,404 post karma · 804 comment karma · joined Aug 2017

ExoDroid

Are you referring to Bolt, by any chance?

ExoDroid

If you’re willing to pay: https://kagi.com/

ExoDroid

Could you give a few examples where deep networking knowledge is required for creating a setup similar to the one I described?

ExoDroid

I definitely agree about combining SSR and CSR, though I do see SSR as the main approach.

Can you think of good examples for situations where the UX would be significantly improved by utilizing HTMX?

ExoDroid

Right, but I’m wondering if users are even looking for this kind of experience. As I mentioned in the post, as a user, I’m not missing this kind of experience.

ExoDroid
ExoDroid

Essentially, you want to initialize an instance of JobService. You could either create an instance manually, by providing all the dependencies (which may be a lot), or you could initialize an instance of your main module (probably named AppModule) and get the JobService created automatically by NestJS.

ExoDroid

Got it. I’ll practice Go when on vacation.

ExoDroid

Keep in mind that localhost inside a container is not the same localhost in the host (unless using the host network mode).

You probably need to configure your client to access the backend server host using the Compose service name, e.g., backend:8000.

Also, do you really need to expose both the client and the backend to the host? Consider publishing only the client port.

ExoDroid

Makes sense, and I agree. It could be that self is referencing a different thing when inside an element that has the :loop attribute.

As others have mentioned, this is a weird attempt at reactivity.

Also, "Bing" is spelled as "Bind" and Google is the "alpha search engine".

ExoDroid

I’m aware of the behavior of this in regular and in arrow functions. The code block in the original post has no regular functions and thus has no need for an indirect reference to this (unless this LemonadeJS library does some weird magic and expects to have self).

Also, I’m not a Python developer.

ExoDroid
const self = this;

Found the Python developer

ExoDroid

I won’t be surprised if most people fail to realize that “RTL” stands for “React Testing Library” and not, for example, “right-to-left”. Just FYI.

ExoDroid

What do you expect to happen?

Your server got a 404 response from another service (as a client) which made it error. When you have an error in your server, it makes sense to respond with a 500 status code.

It seems that your real issue is the 404 response from the other service, but you gave no details about it at all, so it’s a bit difficult to help.

ExoDroid

Seems like a good solution to me, though I’m not sure about including the Get decorator, as it might be implicit when looking at controller methods.

Also, does it make sense specifying the 500 response with a generic message for every request?

ExoDroid

I had exactly the same experience, also seeming to be in Cairo, Egypt. Is probably due to GPS jamming:

https://www.calcalistech.com/ctechnews/article/hjihpgtwp

ExoDroid

The best example of a non-linear media is HTML. The main thing that allows HTML to be non-linear is the links between pages, as you could start reading one page and then jump to another (think Wikipedia). This is in contrast with, for example, a book, which is another textual media but one that has linear progression, so it wouldn’t make sense to jump between different parts.

ExoDroid

From https://hypermedia.systems/hypermedia-reintroduction/#_what_is_hypermedia:

Hypermedia is a media, for example a text, that includes non-linear branching from one location in the media to another, via, for example, hyperlinks embedded in the media.

ExoDroid

it also means you can run it on a mysql DB in dev and have something more robust like Oracle in prod.

Is it realistic to, for example, use MySQL in dev and Oracle in prod?

ExoDroid

Hypermedia Systems is a must-read!

ExoDroid

What do you feel that's missing from IdeaVim?

ExoDroid

Lucia looks very promising!

Having used NextAuth.js, would you mind pointing out the differences between the two projects?

ExoDroid

What stops me from signing up, copying the token, and relaying requests to the original API using this token?

ExoDroid

Could you please elaborate on how using authentication would prevent other malicious parties from relaying to my server?

The example we're talking about here is for an API key that is shared between all users, no matter if the users are signed in or anonymous, right?

ExoDroid

Why not just prefix public environment variables with NEXT_PUBLIC_? That's how you expose an environment variable to the browser.

Docs: https://nextjs.org/docs/basic-features/environment-variables#exposing-environment-variables-to-the-browser

Edit:

Note that public environment variables need to be provided at build time, which is different from the rest of the environment variables which could be provided at runtime. When using Docker, this means that you need to provide the variables when building the image, e.g., via args.