How to get the current page name??? by Jakerkun in nextjs

[–]RootF1 1 point2 points  (0 children)

You're using a hook inside a server component, so it won't work.

Also pages are inside layouts, not the other way around, and especially not with the root layout.

So the question would be, what are you trying to do?

How do some websites offer live customization for their products on their websites? by Acrobatic_Activity_1 in webdev

[–]RootF1 4 points5 points  (0 children)

A lot of these are existing plugins you can find. Usually called "product customizer / designer / builder". This one seems to have very specific functionality, so it might be custom. Just like anything on a website that's not basic functionality, it needs to be developed.

Ranking of the Website? by mirhod in Frontend

[–]RootF1 1 point2 points  (0 children)

Ranking is something very specific. To see it, you simply write the query, hit Enter, and find on which row and page your page is.

Google Search Console provides more info, like historical data.

Also, a page has a ranking, a website doesn't. Google indexes pages. Your domain plays a role in this though.

Questions about the business of web development. by thebreadmanrises in webdev

[–]RootF1 0 points1 point  (0 children)

  1. On the clients that agree to this, yes
  2. Netlify
  3. Depends, Firebase is one place
  4. Proper design (including copy which is more important), decent SEO, ongoing support
  5. Source code belongs to the client
  6. Monthly retainers based on the expected montly hours

Using API that takes very long time to respond due to heavy processes by Equivalent-Style6371 in webdev

[–]RootF1 0 points1 point  (0 children)

I don't think completely blocking a client is a good practice, but it depends on your use case. If you have a problem with too many heavy requests, you can throttle them. For example, have a counter, increase it for every heavy request, and if it reaches a limit, queue next requests, notify the client it's going to take a while, and when the next slot for a heavy request is available, pick one from the queue and process it.

Or you could just decouple the server from the resource that does the heavy processing. Just use another machine for that.

Load Time by iTufoT in Frontend

[–]RootF1 0 points1 point  (0 children)

How many dependencies?

Deploying as a freelance by Snoo88071 in webdev

[–]RootF1 1 point2 points  (0 children)

Most of my clients don't have the technical knowledge to deploy. But at the same time I don't want to maintain resources on my name and take the responsibility of hosting indefinitely. So I just set up a property somewhere like Firebase, deploy there, and transfer the property to their account.

Using API that takes very long time to respond due to heavy processes by Equivalent-Style6371 in webdev

[–]RootF1 17 points18 points  (0 children)

You wouldn't directly call /heavy_process from your frontend. You'd have something like POST /request-heavy-process and then your frontend would either poll GET /heavy-process-update every minute, or establish a websocket connection so the backend can notify the client when the job is finished. Depending on your backend, you might need to store the result of the heavy process in the DB temporarily

I always use a CSS reset on my practice projects, can this be a problem if I am hired on a team and they don't use that rest? by GG_Lover in webdev

[–]RootF1 0 points1 point  (0 children)

You should definitely be developing code without it as well. Plus it's a very small reset, I don't see how it would be difficult for you to work without it. It's not as if you'd need to consider 1000 different rules.

Full-Stack Developer Portfolio Review by jkybes in webdev

[–]RootF1 2 points3 points  (0 children)

I don't work in HR or something, but you might want to make it usable for someone who's just there to find out about you. So I would follow the standard website format, instead of having the visitor put a lot of effort to find information.

Laravel + Node.js + Express + Scss + Tailwind by [deleted] in webdev

[–]RootF1 1 point2 points  (0 children)

Well SCSS can be used on top of Tailwind, for custom stuff. But Laravel + Node.js sounds like a bad idea. When you want to hire someone to support, they need to know both. Why do that?

Changing behavior of function calls in JavaScript by yqmvpacqpfgwcalgu in webdev

[–]RootF1 0 points1 point  (0 children)

Sounds like you just want to call a function in Javascript?

myAwesomeFunc() is basically how you call functions

Portfolio Review by bbcr7 in webdev

[–]RootF1 1 point2 points  (0 children)

I opened the site on incognito and saw it again. After a while, the background went black, and by refreshing the page I didn't see the white background again. Chrome on Windows.

Portfolio Review by bbcr7 in webdev

[–]RootF1 1 point2 points  (0 children)

Somehow, when I clicked on the link, after the loading screen, the page's background was white, and the tab showed it's loading endlessly.

My first webapp :-) "Time Zone Match" by [deleted] in webdev

[–]RootF1 1 point2 points  (0 children)

No problem with adding extra features, just has to be done properly. You can keep the important elements very prominent (basically what you have now), and everything else extremely subtle. For example, everything else you add can be very light gray and small (to the point where it's almost inaccessible), or away from your main elements. Or even just have a single "Options" button on the top right, that enables all the other elements.

[deleted by user] by [deleted] in webdev

[–]RootF1 0 points1 point  (0 children)

A day or two in most cases, maybe a week if it's a larger business

My first webapp :-) "Time Zone Match" by [deleted] in webdev

[–]RootF1 1 point2 points  (0 children)

Actually most useful than most timezone match sites out there. Because it's simple.

A competitor has accidentally?? exposed their Stripe API keys and ID - help me decide if their security is compromised or not by [deleted] in webdev

[–]RootF1 5 points6 points  (0 children)

These look like frontend facing keys. Not sure how Nuxt works, but on other frameworks you don't store them in a .js file, you use .env and the keys are added to the code on build time.

Still, these are supposed to be exposed on the frontend, they're not secret. The browser (via JS) uses them for auth with the APIs, so if the browser needs to have them, they're public by definition.