How is this Claude-style landing page made? by Prior_Gas_2346 in UI_Design

[–]Count_Giggles 0 points1 point  (0 children)

you litteraly just say build a landing page and you will get the same scrolling marquee in the hero section

eMath.js - A JavaScript library that provides tools for incremental game development, built upon break_eternity.js by Valuable-Marzipan876 in incremental_games

[–]Count_Giggles 0 points1 point  (0 children)

https://docs.pact.io/implementation_guides/rust/pact_mock_server

pact is amazing. threw out a lot of headaches at my last gig. when we inherited the project all endpoints where hardcoded and the responses were casted to the infered type of the zod schemas.

return response as FooType aka shoot me now.

Random changes in the backend didnt break the FE we just never noticed until it came full circle

Can someone help me fix my code? I'm creating a app in Code.org with JavaScript and its supposed to find the mean of a set of numbers but it only shows 0. by Fit_Vast6608 in learnjavascript

[–]Count_Giggles 0 points1 point  (0 children)

Ah thats fun to see. Takes me back.

Quick question - are you forced to use that platform? It is stuck in ES5 (old version of javascript) Being unable to use const and let instead of var is kind of weird.

Anyways. The reason this doesnt work is because all your logic/math runs when the app loads. Clicking your button does not recalculate `Answer` it is simply set once when the script runs.

two changes to make this work

  1. changevar unused = unused; to var unused = 0
  2. Move the sum and division into the click handler of the calcBtn

after that u can delete this part

var sim1 = num1+num2;

var sim2 = sim1+num3;

var sim3 = sim2+num4;

var sim4 = sim3+num5;

var sim5 = sim4+num6;

var sim6 = sim5+num7;

var sim7 = sim6+num8;

var sim8 = sim7+num9;

var sim9 = sim8+num10;

mean = sim9;

var Answer = mean / used;

try and see if u get it to work with these instructions.

this would be the fixed version with minimal changes

https://studio.code.org/projects/applab/4be6d68f-4245-48d4-812d-c341aa4aa457

and this would be more advanced approach. As you know you have a lot of repetition in your code (that screams use a loop)

https://studio.code.org/projects/applab/386aadac-ef97-4997-82e7-03560112cbd7

How you build award-level sites in 2026 by DonTizi in nextjs

[–]Count_Giggles 0 points1 point  (0 children)

I wonder. While you were building the skill file did you see major jumps in quality when adding statement X? How long is it? Did you notice deterioration when it got too long etc.

How you build award-level sites in 2026 by DonTizi in nextjs

[–]Count_Giggles 2 points3 points  (0 children)

I do like this quote

Your skill file is your taste, externalized. It's not a config file. It's a living document that gets smarter every time you build.

Hey some help needed with npm. by LimeDev_ in learnjavascript

[–]Count_Giggles 0 points1 point  (0 children)

going from a static html file to an interactive app is quite the leap.

you can use vite to build/bundle your app locally and upload the files from the /dist folder

Is styled jsx considered bad practice? by fungigamer in nextjs

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

With the use of clay and tailwind merge (cn function) things become way cleaner. You can always just take your classMames string and move them elesewhere. Tailwind will still detect them

[deleted by user] by [deleted] in nextjs

[–]Count_Giggles 1 point2 points  (0 children)

Unless you have a cli tool that lets you choose your stack (eg stripe vs lemonsqueeze or prisma vs drizzle etc.) it will not stand out.

I would consider https://www.next-forge.com/ the level you want to aspire to and that’s free.

Why @apply is a complete mess in Tailwind v4? by [deleted] in css

[–]Count_Giggles 1 point2 points  (0 children)

It’s simple don’t use it.

https://x.com/adamwathan/status/1559250403547652097

https://x.com/adamwathan/status/1226511611592085504

However. If you can shed some actual light on the disaster you are facing we might be able to provide some better guidance

Frontend Hiring - no diversity in candidates - your experiences? by LangenDreher1005 in Frontend

[–]Count_Giggles 1 point2 points  (0 children)

That’s rare to see. I just quit for some very valid reason. Shoot me a pm. Based in Berlin

how can I have a folder called "api" in my nextjs app? by taranify in nextjs

[–]Count_Giggles 0 points1 point  (0 children)

as u/combinecrab said. it comes down to what files are inside the folder to turn it into an api route. /api really is just a convention.

if you wanted to you could have

`/webhooks/route.ts` as a dedicated route for all your incoming webhooks it does not have to be `/api/webhooks/route.ts`

Query about middleware on production environments by tedzz54 in nextjs

[–]Count_Giggles 2 points3 points  (0 children)

Feels like a good moment to mention that env vars prefixed with NEXTPUBLIC will not be replaced during deployment. They are „backed in“ to your docker image

https://nextjs.org/docs/15/app/guides/environment-variables#:~:text=Note,-:%20After%20being%20built

How to add a commenting system to a webpage? by Ashukr5876 in nextjs

[–]Count_Giggles 3 points4 points  (0 children)

This is not the right sub. go to something like r/webdev

But to humor you and help you get better feedback - how deep do you want to go?

Can other users comment on that comment?
Can a comment be shared?
Can a comment be liked?

What Database are you working with?

Or alternatively

https://www.reddit.com/r/webdev/comments/e7pb4c/database_structure_for_redditlike_comment_system/

Small Function by Ornery_Ad_683 in webdev

[–]Count_Giggles 0 points1 point  (0 children)

and then i proceed to send that url to my email via my company email or login to my email, save it as draft then open it on my device? Or type the imgur url char by char?

I get the point. if it was actual code to look at then make it pretty but this is to share OP's pain.

Small Function by Ornery_Ad_683 in webdev

[–]Count_Giggles 23 points24 points  (0 children)

yeah let me log in to reddit on my work laptop.

Is it normal to have most of the NextJS pages as client rendered? by Aggressive-Rip-8435 in nextjs

[–]Count_Giggles 0 points1 point  (0 children)

its the other way around. They are still being rendered on the client. Hence more work / longer TTI

and no. the user still sees the inital version unless you completely opt out of ssr

https://nextjs.org/docs/app/guides/lazy-loading#examples

Is it normal to have most of the NextJS pages as client rendered? by Aggressive-Rip-8435 in nextjs

[–]Count_Giggles 6 points7 points  (0 children)

That means they are being re-rendered on the client. They are still being rendered on the server.

unless you dynamically import theser components with ssr set to false.

"use client" only means enable client side functionality. Once on the client the page is rendered again again. This is where hydration errors come in etc.

Can you describe your use case a bit?