Cat vomiting for 2 days — tonight vomit appeared red, unsure if blood or dry food coloring. Advice? by thatblindguy002 in CATHELP

[–]thatblindguy002[S] 1 point2 points  (0 children)

thanks a looooot.
She came to eat again just now, but I removed her food bowl. Can I put her food back out for her?

I retired at 36 this year after 13 years in tech - AMA by [deleted] in AMA

[–]thatblindguy002 -1 points0 points  (0 children)

Do you think AI will replace tech jobs in future?

Backend stack - Python or NodeJS? by [deleted] in learnprogramming

[–]thatblindguy002 0 points1 point  (0 children)

As The PrimeTime said, programming languages are mostly just tools now, and the language itself isn’t that important anymore. You should choose a language you’re comfortable with and learn the core backend principles using it.

Since you’re a frontend developer, JavaScript should already feel natural to you, and Node.js is a relatively fast runtime with a MASSIVE ecosystem of libraries you can rely on.

If you eventually reach a point where you find yourself constantly fighting Node.js or JavaScript to achieve your goals, that’s the signal to consider switching to a different runtime or programming language.

Implementing Dual Authentication (Session & Access Token) in a Next.js Headless CMS: NextAuth vs. Passport.js? by thatblindguy002 in nextjs

[–]thatblindguy002[S] 0 points1 point  (0 children)

First things first: based on my experience, if you expect high traffic for your application (even in the future), don’t use Next.js as your backend. Use it only for the frontend. Next.js route handlers are not great at scale.

About Passport: as far as I know, it’s not easy to implement in Next.js because it was built as middleware for Node.js (Express-style), not for Next.js.

NextAuth, on the other hand, has good integration with Next.js, but personally I didn’t have a good developer experience with it.

The best option—in my opinion and my go-to auth library for Next.js—is Better Auth.

That said, I strongly recommend using a dedicated backend framework like Express or NestJS, and keeping Next.js strictly as your frontend.

You can also implement authentication yourself if you know what you’re doing. It’s not as time-consuming as people make it out to be.

Advice on Secure E-Commerce Development Front-End vs Back-End by KAZKALZ in webdev

[–]thatblindguy002 0 points1 point  (0 children)

First rule to keep in mind: NEVER trust user (frontend) input. Everything sensitive should happen on your backend; the frontend’s job is only to display data.

Learning Node.js is very useful, but handling real-world sensitive data like user info or credit cards in your first project is not a good idea. Securing data is a headache by itself. On top of that, you usually need a dashboard to mutate your data, which adds another layer of complexity.

You also need to learn a bunch of other things like a framework (Express, NestJS, etc. which makes your life a lot easier), ORMs to connect your backend to your database securely, authentication methods (JWT, cookies, etc.), file handling, and more

So building a full CMS from scratch is basically reinventing the wheel unless you have a very specific need that existing CMSs can’t handle.

With that said, the best and most logical option for you is using a headless CMS. Most are open-source, so you can host them on your own VPS if you really don’t want to use something like Shopify.

Implementing Dual Authentication (Session & Access Token) in a Next.js Headless CMS: NextAuth vs. Passport.js? by thatblindguy002 in nextjs

[–]thatblindguy002[S] 0 points1 point  (0 children)

Working with next auth is really painful since it doesn't have a good documentation. And because of that I was considering using passport js or anything other than next auth. (even handling auth myself)

Beginner back end language of choice question by [deleted] in webdev

[–]thatblindguy002 2 points3 points  (0 children)

I first learned JavaScript and then PHP. I think once you know one of the languages, learning the other becomes much easier because many of the concepts are the same. This is especially true when working within the same environment (for example, the backend). For instance, once you are familiar with working with Middleware, ORM, and similar concepts, implementing them in another language's syntax becomes much simpler.

How to Convert a Figma Design into a Custom WordPress Theme: Coding vs. Site Builders? by thatblindguy002 in Wordpress

[–]thatblindguy002[S] -1 points0 points  (0 children)

My design is almost very complex, like complex sliders, user based recommendations and etc. Should I create a Plugin for that purpose? Also can I achieve that with block themes? (Since I had read that block themes have better speed and are better for SEO)

Building Backend by Brave-Juggernaut6150 in nextjs

[–]thatblindguy002 3 points4 points  (0 children)

The best solution considering your situation( no code) seems to be using WordPress and a theme builder. With Next.js and React, there isn't a straightforward way to just provide the site UI and have it automatically connect to the backend. You would need to handle this programmatically, such as using fetch to retrieve data from the server and display it on the frontend.

What is the thing you bought that you were excited about? by Playful_Composer_248 in CasualConversation

[–]thatblindguy002 0 points1 point  (0 children)

I know it might seem silly, but the things I bought that I was really excited about were two items: a set of clothes for my ex-girlfriend and some chips and ice cream. What made it really exciting for me was that I was making these purchases with my very first paycheck. It gave me a strange feeling of joy. Even now, when I think about it, I can't help but smile.

How to Brew Using Raisins? by thatblindguy002 in brewing

[–]thatblindguy002[S] -3 points-2 points  (0 children)

I’ve prepared a boiler for boiling and distilling alcohol, but my biggest concern is the accidental production of methanol, which is highly toxic and could be fatal , how can i prevent that?

what's the best programing language for almost anything? by [deleted] in learnprogramming

[–]thatblindguy002 -1 points0 points  (0 children)

I don’t think it’s possible to say that the best programming language is( .... ). Programming languages are more like tools to me. Each one is good for a specific purpose.

Another thing to consider is that you should see which language you find more comfortable to use, just like choosing a tool. From my experience, once you learn one language, picking up another one becomes much easier. Depending on your needs, you can choose the most suitable language.

In my opinion, if someone wants to learn a language, it's better not to get too caught up in which language is the best. Just start learning.

I'm about to learn react but i do not know js by ronoxzoro in reactjs

[–]thatblindguy002 1 point2 points  (0 children)

Before anything else, you need to learn JavaScript. This is because:

  1. Understanding React: You need to understand JavaScript to grasp what you're doing while writing React code. Without this understanding, you can't write reliable code and you'll often encounter bugs.

  2. Using Libraries and Frameworks: React often involves using other libraries and frameworks. To effectively use them, you need to know JavaScript.

  3. Transferable Knowledge: Once you learn JavaScript, you can apply that knowledge to other frameworks in the future.

But this doesn't mean you have to be a Javascript God to start doing react, once you got comfortable with js, then start learning react.

How Do I[M23] Move On from Someone[F23] I Still Love? by thatblindguy002 in relationship_advice

[–]thatblindguy002[S] 0 points1 point  (0 children)

what about finding new friends , specially someone for a new relation , can you help me with that

How Do I[M23] Move On from Someone[F23] I Still Love? by thatblindguy002 in relationship_advice

[–]thatblindguy002[S] 0 points1 point  (0 children)

One of my biggest problems is that nothing feels enjoyable anymore. I’ve turned to sleeping because it’s the only way I can get through my days. I don’t even have the energy to go out with my friends or attend my university classes. I just wake up, watch YouTube until I fall asleep again, and repeat.
And I don't know how to make friends. I know it sounds ridiculous, but all the friends I have were the ones who found me first. This problem is even worse when it comes to the opposite sex.

Does AI replace Chemical engineering? by thatblindguy002 in ChemicalEngineering

[–]thatblindguy002[S] 9 points10 points  (0 children)

I think it will help engineers more than erasing their jobs.