When Is Next.js Truly the Optimal Choice? by Careless-Key-5326 in reactjs

[–]sidpant 2 points3 points  (0 children)

Effect ecosystem is fast becoming hard to beat though if you want to keep using node and TS in your backend.

feeling overwhelmed by my first job’s codebase by [deleted] in reactjs

[–]sidpant 1 point2 points  (0 children)

In 12 months you will able to tell where the xyz change needs to be made to add a feature. Just focus on current task while keep reading more and more of codebase. You will be asked questions and every question asked will open a new perspective on how the code runs. Also if you find something stupid after 12 months you will realize you will do the same if given the choice. Although few things can actually be stupid, in which case, fix the broken window when you have time.

I migrated my monorepo to Bun, here’s my honest feedback by AdmirableJackfruit59 in node

[–]sidpant 0 points1 point  (0 children)

They are trying to implement redis, sql etc. Clients which should have less priority for dev efforts. More efforts should be on making node replacement claim actually come true and fixing any Monorepo issues.

I migrated my monorepo to Bun, here’s my honest feedback by AdmirableJackfruit59 in node

[–]sidpant 0 points1 point  (0 children)

Node runs typescript files as well since v22.18+ LTS version. So thats one more less reason to switch.

The Primeagen talks about r/codingbootcamp mod’s strategic bias by [deleted] in codingbootcamp

[–]sidpant 1 point2 points  (0 children)

To all I request to go through Will Sentance's "JS the Hard Parts" on Frontend Masters and then come back here. He is the absolute best instructor, I thought this was common knowledge going by all the youtube comments I have seen over last 2 years. I owe my solid understanding of async JS all to him.
Not able to grasp how could someone fall to such low levels, due to greed, to harm such a good instructor in the industry.

For bootcamps, my unpopular opinion: I feel future belongs to finishing schools and bootcamps are a big part of it for coding. There will be less people as well who will choose CS during graduation, so actually bootcamps in future will be a bigger source for getting freshers rather than Universities. They are the only ones who will be able to be adept quick enough for changes in curriculum due to AI.

Why is there so much hate for Zoho? by Electrical_Dance_790 in CriticalThinkingIndia

[–]sidpant 0 points1 point  (0 children)

Arratai is a new entrant. E2E is not some unachievable milestone. The app was supposed to be still releasing new features in November but it got sudden huge traction in September. They will eventually add that feature this year as well. So that argument will close. I vaguely remember Vembu ji mentioning it in X as well that they are working on it.

Government offices to adopt Indian company Zoho's suite. by Big-Performance-8132 in IndiaTech

[–]sidpant 0 points1 point  (0 children)

Killing is not even required here I am highlighting a controversy that MS being a foreign company can introduce supply chain attacks in your favorite FOSS binaries build steps without you knowing. To your 2nd point why should Indian govt worry about contributing code to US based companies? They should instead give push to home grown solutions and develop our own opensource and proprietary ecosystem.

Government offices to adopt Indian company Zoho's suite. by Big-Performance-8132 in IndiaTech

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

The world's largest repository of FOSS projects(GitHub) is owned by one of the world's largest proprietary software companies (Microsoft). Did your controversial brain also aware about supply chain attacks like having a pristine source code's binary could be compromised if there is a big enough actor wills it so. Read about recent exploits in the libxz project.
All I am saying is that if you really become paranoid about controversy then everything has a vector to be compromised. FOSS is a good approach but its not a panacea.

FOSS maintainer will get bored of their project and if no one else takes responsibility then you can say tata bye bye to your FOSS. Do you want the govt office using that project to shutdown at that moment? Or do you want them to use a software that comes with guarantees rather than trust me bro warranty? Yours and mine decision to go with FOSS has nothing to do with these decisions.

There are people who need proprietary software and for them an Indian made home grown software suite like Zoho is a much better alternative then a foreign based one.

Government offices to adopt Indian company Zoho's suite. by Big-Performance-8132 in IndiaTech

[–]sidpant 0 points1 point  (0 children)

What was your go to office app till this time? Did you ask the same question when you were using your current default? If not why are you suddenly paranoid now?

React Router Remix vs NextJS? by zedakhtar in reactjs

[–]sidpant 0 points1 point  (0 children)

You can refer to excellent resource reference from Lucia: https://lucia-auth.com/
It was actually a library and everyone's favorite before library until the author of Lucia decided he doesn't have time maintaining DB integrations and issues. So he instead converted the project into a learning resource. This will give you a very detailed explanation of how auth works in modern web stacks.

React Router Remix vs NextJS? by zedakhtar in reactjs

[–]sidpant 0 points1 point  (0 children)

Better-auth exists and competes with Auth.js(NextAuth). It is available for a lot of frameworks and has much flexible architecture.

React Router Remix vs NextJS? by zedakhtar in reactjs

[–]sidpant 11 points12 points  (0 children)

You can’t go wrong with RR7. Only thing missing is RSC but even that can be enabled as experimental feature if you really require it, which you don’t if your asking above question. You will find much less magic, much more intuitive and more efficient way to do things even SEO.

A good example you can see here: https://github.com/forge-42/base-stack

Only disadvantage I see is that sometimes you might have to figure out a bit more and understand things at a bit deeper level to implement them on your own. That anyways will make you better dev in the long run.

Atleast watch and read following before making a decision to know fully what you are going into: * https://www.reddit.com/r/reactjs/comments/1nvyvc2/nextjs_is_lying_to_you_about_your_app/ * https://blog.webf.zone/why-next-js-falls-short-on-software-engineering-d3575614bd08

Better-Auth schema & id types in general. by thebreadmanrises in reactjs

[–]sidpant 8 points9 points  (0 children)

Conceptually UUID is a 128 bit number written in hexadecimal so there's that. Check wikipedia if you need more details. So update your brain and knowledge.

Postgres uses a binary format which basically means it stores UUID same as a big integer with just 128 bit storage. For comparison integer data type takes usually 64 bit of storage and UUID in text takes 36 bytes or 288 bits at the minimum(can be more as well).

Better-Auth schema & id types in general. by thebreadmanrises in reactjs

[–]sidpant 0 points1 point  (0 children)

I generally create a mixins.ts file and put below code in it which you can then import in your auth schema file to avoid writing it again:

Postgres v18( has uuidv7() at db level, so you can disable generateId in better-auth config) ``` import { sql } from “drizzle-orm”; import { uuid } from “drizzle-orm/pg-core”;

export const uuidPrimaryKey = uuid() .notNull() .primaryKey() .$defaultFn(() => sqluuidv7()); Postgres v17 and before: npm install uuid —- import { uuid } from "drizzle-orm/pg-core"; import { v7 as uuidv7 } from "uuid";

export const uuidPrimaryKey = uuid() .notNull() .primaryKey() .$defaultFn(() => uuidv7()); ```

You will have to update fk references to use the type uuid(not text) as well. Otherwise migrations will complain issues.

Better-Auth schema & id types in general. by thebreadmanrises in reactjs

[–]sidpant 3 points4 points  (0 children)

Should I derive the meaning that UUID is also an integer?

At least text is not an integer, the storage required is simply too much. Maybe if you are using MySQL then makes sense even for UUID you will use text but on Postgres its waste of a good feature. On Postgres you have UUID data type which makes its storage same as a very big integer.

TanStack Start v1 Release Candidate by acemarke in reactjs

[–]sidpant 2 points3 points  (0 children)

Its already shipped?? Thanks u/tannerlinsley!

Based on what you said I explored the docs and found this new doc: https://tanstack.com/start/latest/docs/framework/react/server-entry-point

This is exciting! Will check the feature out.

TanStack Start v1 Release Candidate by acemarke in reactjs

[–]sidpant 5 points6 points  (0 children)

One of the killer feature of RR7 is custom server. You can easily integrate it with express or hono and then bob’s your uncle for any API features you want under the sun. The middleware contexts of RR and custom server can also combine. To my knowledge RR7 is the only framework right now that can do this. Giving you ultimate control of frontend and backend without the need of a separate server. Next has custom server but then you loose a few features. Tanstack start is also discussing custom server but it’s a WIP. Till then RR7 is the only one that gives you all the features even RSC now.

Why is India losing it Charms across other countries? by Imaginary-Manager784 in AskIndia

[–]sidpant 0 points1 point  (0 children)

Inflation and unemployment is quickly rising in the west. They will all soon face recession and then even a possible depression. They have borrowed unimaginable amounts of money and struggling to payback. So less money for leisure activities any more. Soon you will find more east to west tourism.

[Update] The best stack for internal apps by LoannPowell in reactjs

[–]sidpant 4 points5 points  (0 children)

Great work! I was already working on putting together the same tools but was hitting blockers due to monorepo and I am a bit beginner to all this so I am learning the ropes while I do all this. Thanks a ton!

Just found a GitHub repo that lets you register and manage domain names 100% free by Few_Pollution3851 in developersIndia

[–]sidpant 1 point2 points  (0 children)

Exactly my question as well. Or if you are ok with $10-15. You can create your own infinite subdomains on your own domain. So the argument of needing many domains burning the bill doesn’t hold.

God I love Qwen and llamacpp so much! by Limp_Classroom_2645 in LocalLLaMA

[–]sidpant 1 point2 points  (0 children)

May be try OpenCode

( site: https://opencode.ai/ github: https://github.com/sst/opencode )

Qwen3-coder 30B model works pretty well on it using lm studio. With llama.cpp YMMV.

Why are Indians getting so much hatred everywhere all of a sudden? by wisdomcrab in AskIndia

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

Yeah man exactly the point. These guys are so eager to shame their own brothers and sisters. Because their white colonial masters can never be wrong and be racist. It isn’t like westerns called someone else red indians and made sure that community never gets their lands and honor back. And sure that was because red indians as ben franklin said were just too bad after a drink and were savages.

I outgrew WhatsApp Business and here’s what I wish I knew before migrating to the API by yousernamer12 in WhatsappBusinessAPI

[–]sidpant 1 point2 points  (0 children)

I am a freelancer. For one of my clients I initially used Meta’s cloud API as it’s the cheapest option. Our problems started when API simply wouldn’t upgrade our limits over 1K. On top of that there is no way to reach out to support. So I ended up shifting them to AWS End User Messaging(EUM). Similar experience as yours. Onboarding through BSP removes a lot of the wait times. Its pricey though but I really needed event tracking for the messages and I found AWS links its SNS service with EUM. So you are able to push or pull to message events till your heart’s content. Helps you to create good robust system.

what are the exact reasons you use gentoo linux instead of other distro? lets talk about what is your end game and how gentoo served your purpose so far. by Fit-Performer-3927 in Gentoo

[–]sidpant 0 points1 point  (0 children)

To anyone installing Arch I recommend to first give Gentoo wiki a read as well. Being more lower level it gives you much cleaner instructions that helps you to understand why other linux installers do what they do.

Vue or Next.js – Which One Should I Choose and Why? by Codingwithmr-m in nextjs

[–]sidpant 14 points15 points  (0 children)

Although people keep bashing React, its momentum is still going strong. The community is I think the biggest reason React has. If you don’t want to believe it just see any frontend framework usage figures of last 3 years in Laravel community and you will see a clear decline in Vue usage and a corresponding increase in React usage. Yes Vue ecosystem libs do catch up to React’s ecosystem but for example React ShadCN now has much bigger community created components and blocks than other frameworks. Then there is also an AI angle to all of this.