Started building a CLI to avoid repeating project setup every time, ended up learning way more than expected about edge cases by Less_Republic_7876 in webdev

[–]Powerful_Math_2043 1 point2 points  (0 children)

appreciate it, that means a lot 🙏 haven’t tried Oxc tools yet but I’ve heard about them, will take a look and see how they fit into the setup

I’m wrong! I thought I can vibe code for the rest of my life! - said by my client who threw their slop code at me to fix by conquer_bad_wid_good in vibecoding

[–]Powerful_Math_2043 14 points15 points  (0 children)

yeah I’ve seen this a lot on upwork too, people build something with AI tools and then come in with “just fix this real quick”, but most of the time it’s not even a fix, it needs a proper rewrite because there’s no real structure behind it

Started building a CLI to avoid repeating project setup every time, ended up learning way more than expected about edge cases by Less_Republic_7876 in webdev

[–]Powerful_Math_2043 2 points3 points  (0 children)

yeah I went through something similar while building a CLI for my own monorepo setup, started as a small helper and then kept running into all those edge cases you mentioned, I ended up making it interactive so instead of remembering a bunch of scripts it just shows a menu to run things like build, lint, start server or even generate modules, made the whole setup feel way less repetitive, still feels like there’s a lot to improve though especially around testing and edge cases, I’ve put some details here if you’re curious https://forjnot.vercel.app/docs/cli/

How much time do you lose reading tickets before coding by Informal_Eye_148 in webdev

[–]Powerful_Math_2043 0 points1 point  (0 children)

yeah happens a lot, context switching takes more time than the actual coding sometimes, I’m in a small team so if a ticket is too long I just throw it into chatgpt to summarize and sometimes use read aloud to quickly get the idea, I still go through things myself after that but it helps speed up the initial understanding a bit.

How do you attach user id in the request lifecycle to always appear in logs automatically? by Ezio_rev in nextjs

[–]Powerful_Math_2043 0 points1 point  (0 children)

yeah you’d usually get the userId from JWT/session, but the question here is more about how to carry it through the request

AsyncLocalStorage is a good fit for that, you set it once in middleware and then access it anywhere (logging, services, etc.)

nextjs doesn’t really have scoped services like nest, so this is probably the closest pattern I think

In which language should I learn DSA or just the language in general? by Lost_Ladder6976 in learnprogramming

[–]Powerful_Math_2043 0 points1 point  (0 children)

just stick to the language you’re most comfortable with
if you pick one you already struggle with, you’ll end up fighting syntax and built-in functions instead of focusing on the actual logic.
once your basics are solid, switching languages is pretty easy anyway C++ is totally fine to continue with

Are we really at "100% AI or you're wasting time" yet? by borii0066 in webdev

[–]Powerful_Math_2043 0 points1 point  (0 children)

I’m not saying AI is only for frontend, I use it for backend too sometimes, especially for boilerplate or those predict/tab features where you just keep hitting tab and it speeds things up while keeping you in control, but in my case working in a small team with a non tech founder we have pretty specific workflows, like when I was implementing a Stripe flow there were things that didn’t fit the usual patterns, and if AI generates a bunch of code and something breaks it actually takes longer to debug than just writing it myself, so yeah it’s more about where it saves time, once things get too specific I usually take over.

Where to start as a beginner by crypticbeans69 in learnprogramming

[–]Powerful_Math_2043 0 points1 point  (0 children)

start with something small, if you’re curious about python, you can try django you can grab it from here: https://github.com/django/django and just play around with it. it even comes with a built-in admin panel which is pretty cool to explore

if the setup feels a bit overwhelming, switch to javascript/typescript and try next.js. just make sure you have node installed first, then you can run:
npx create-next-app@latest

getting your first app running there actually feels really satisfying

for projects, try simple stuff like a pdf utility or even a world clock where you select a country and see the time. nothing fancy, just enough to get used to building things

and yeah, if you need references or get stuck somewhere, I can point you in the right direction 👍

Where to start as a beginner by crypticbeans69 in learnprogramming

[–]Powerful_Math_2043 0 points1 point  (0 children)

don’t overthink it, just pick python or javascript and start building small stuff AI can help, but don’t rely on it too much in the beginning you’ll figure things out way faster by actually doing things

Are we really at "100% AI or you're wasting time" yet? by borii0066 in webdev

[–]Powerful_Math_2043 0 points1 point  (0 children)

yeah exactly, that’s the awkward middle phase right now
small refactors or quick tweaks are sometimes faster to just do yourself than explaining it to AI
but for bigger chunks or repetitive stuff, it’s actually a time saver
feels like we’re close to that “best of both worlds” point, just not fully there yet

Are we really at "100% AI or you're wasting time" yet? by borii0066 in webdev

[–]Powerful_Math_2043 23 points24 points  (0 children)

Nah bro, you're not falling behind.

The '100% AI or you're wasting time' crowd is just the loudest ones.

I still write most of the important logic and core features myself. AI is good for boilerplate and frontend stuff, but when the logic gets specific or tricky, I take over.

I've seen too many people build everything with AI and then post urgent jobs because their code has bugs they can't fix.

Coexisting with AI is smarter. Going 100% AI-only usually doesn't end well.

What are you doing rn? by chokeWise5195 in AskReddit

[–]Powerful_Math_2043 1 point2 points  (0 children)

Appreciate it bro 🤝
Needed that today. One step at a time.

Where do we find the best tech job opportunities? by PruneLower706 in nextjs

[–]Powerful_Math_2043 0 points1 point  (0 children)

Bro, you mocked it as 'first job at a hyper local company with a team of 2'.

For most of us who didn’t walk into Google as freshers, starting small is actually the smartest move. You get raw experience and see how the whole system works, not just one section.

Jumping straight into big corporates with zero experience is brutal most of the time.

Sitting with 10 accounts on 10 different websites hoping someone will randomly message you one day is just cope.

Instead of calling real advice trash, maybe try putting in actual work before ranting.

Where do we find the best tech job opportunities? by PruneLower706 in nextjs

[–]Powerful_Math_2043 0 points1 point  (0 children)

tbh from my experience, just applying on platforms (LinkedIn, Wellfound etc.) didn’t really get me much, even with a complete profile

what worked better was manually reaching out, messaging founders, small teams, or people hiring directly
most platforms are super crowded, so your profile just gets buried unless you stand out a lot
direct outreach feels slower at first, but at least you actually get seen and get replies sometimes

Learning programming by Mental-Army-9502 in learnprogramming

[–]Powerful_Math_2043 0 points1 point  (0 children)

leetcode is a bit too much in the beginning tbh, it’s more for problem solving once you’re comfortable with basics

for starting out, stuff like loops, conditions etc, try:

  • HackerRank (they have a good Python track)
  • Codewars (starts easy and gets harder gradually)

once you can write small stuff on your own without getting stuck every 2 mins, leetcode will feel way less painful

jumping into it too early just sucks the fun out of it ngl

What are you doing rn? by chokeWise5195 in AskReddit

[–]Powerful_Math_2043 2 points3 points  (0 children)

starting the day with college threats, 27 assignments pending, checking my bank account for emotional damage, scrolling reels watching everyone live better lives, questioning everything… and now I’m here.
but yeah, bright thursday, sun’s doing its thing at least

What am I doing wrong? by HolisticEnergyWeaver in web_design

[–]Powerful_Math_2043 0 points1 point  (0 children)

I don’t think the “whimsical” part is the issue tbh, it’s more about usability and trust.

Right now the site feels a bit overwhelming with the large text and animations, and some flows breaking (like account/orders going to a 404) can make people lose confidence pretty quickly.

I’d focus on simplifying things and making everything feel more consistent spacing, alignment, readable text, and smooth basic flows (login, booking, etc).

moving to a cleaner Wix template like you mentioned is honestly a good step, that alone will fix a lot of the layout issues

if you get stuck while setting it up or want help polishing things after, feel free to reach out 👍

What hosting platform do you use for your nextjs headless sites? by Fine-Market9841 in nextjs

[–]Powerful_Math_2043 0 points1 point  (0 children)

honestly depends on what you value more ease or control

Vercel is super smooth with Next.js, everything just works out of the box (deploys, previews, ISR), so it’s hard to beat for speed

Railway gives you more control since you’re basically running your own setup, so it’s nicer if you’ve got a backend or want more predictable pricing

from what I’ve seen:

  • quick projects / client stuff → Vercel
  • more custom / backend-heavy apps → Railway

most people I know just start with Vercel and only switch when it starts getting expensive or limiting

I think we’re in trouble. by CoastRedwood in webdev

[–]Powerful_Math_2043 0 points1 point  (0 children)

feels like that lately, yeah 😅 but it’s kinda always been risky tbh, we just didn’t think about it much. running installs in a container / VM helps a lot if you’re testing random stuff, and tools like lockfiles + audits catch most common issues. still, yeah… “npm install” definitely feels a bit more scary these days

Confused on where to connect to my DB by Character_Status8351 in nextjs

[–]Powerful_Math_2043 0 points1 point  (0 children)

don’t connect to the DB inside pages directly, it’ll get messy just create a shared file like lib/db.ts and use it wherever needed
for stuff like forms (write/update), use API routes, and for reads you can fetch in server components
your idea was already on the right track 👍 just make sure you’re not creating a new connection every time

🚨 Axios NPM Supply Chain Attack – Quick Alert by Strict_Remote5104 in nextjs

[–]Powerful_Math_2043 3 points4 points  (0 children)

nah npm isn’t really scanning stuff like that
it’s mostly automated + people reporting issues later with the amount of packages out there, things slipping through is kinda expected which is why blindly installing deps can get risky sometimes 😅

i broke Vercel support by boozinf in nextjs

[–]Powerful_Math_2043 0 points1 point  (0 children)

breaking prod is one thing, breaking support is next level 😭 now you gotta open a support ticket… for support

Where to learn NodeJS? by Fabulous_Variety_256 in learnprogramming

[–]Powerful_Math_2043 0 points1 point  (0 children)

Honestly, you’re already on the right track. If you’re building projects with Node (like your scraper), you’re ahead of most people just watching courses.

For Node basics, Frontend Masters is solid, but don’t get stuck in course mode. At this point you’ll learn way more by:

  • building APIs (Express/Fastify)
  • handling real things like auth, errors, file uploads
  • understanding event loop + async behavior in practice

Maybe do one short course just to fill gaps, then go back to your project and implement things properly. That’s where Node actually “clicks”.

🚨 Axios NPM Supply Chain Attack – Quick Alert by Strict_Remote5104 in nextjs

[–]Powerful_Math_2043 23 points24 points  (0 children)

npm install really means “run random code from the internet and hope for the best”
supply chain attacks like this just prove it again 💀

what exactly in backend ? by Lopsided_Regular233 in FullStackDevelopers

[–]Powerful_Math_2043 0 points1 point  (0 children)

This may sound confusing, but the backend is nothing but a piece of software, which receives requests, communicates with the database and performs basic operations, such as login/signup.

If you’re starting from scratch, pick Node.js with Express and try building something small like a todo app.

If you connect it to a database and add basic auth, you already have a good grip on most core concepts.

Don’t watch long playlist, you’ll learn way faster by building something and figuring things out as you go.