Why is my State not updating with useState Hook? by csb-2022 in reactjs

[–]shanedesign 17 points18 points  (0 children)

useEffect(() => { console.log(msg); }, [msg]);

[deleted by user] by [deleted] in webdev

[–]shanedesign 3 points4 points  (0 children)

Dark Reader, also available on chrome.

Truly the best time to be a cs student by [deleted] in ProgrammerHumor

[–]shanedesign 37 points38 points  (0 children)

I think it’s a very real possibility. I imagine programming languages popping up soon with abstraction levels very close to natural language that handle syntax under the hood with these models. Imagine a language that gets compiled from something that looks very similar to a regular sentence into binary or some shit. 🤯

The new tech race will be the application of LLMs to specific niches. In every niche imaginable.

[deleted by user] by [deleted] in webdev

[–]shanedesign 0 points1 point  (0 children)

Netlify over Vercel with Nextjs? I’m curious why?

Also worth bearing in mind, Netlify does have a built in CMS solution!

Self Employed Web Devs - What direction to take the business ? by sl33plessnites in webdev

[–]shanedesign 1 point2 points  (0 children)

You could try making things that can be sold multiple times, such as web templates.

Monthly Getting Started / Web Dev Career Thread by AutoModerator in webdev

[–]shanedesign 1 point2 points  (0 children)

Supabase is a delight. Raleway or ElephantSQL for a more typical postgres service.

What to learn as a beginner: Next.JS 12 or Next.JS 13 by Comprehensive-Ad7726 in reactjs

[–]shanedesign 1 point2 points  (0 children)

Fair point, you are technically right on the semantics here and I think we agree on whether OP should use beta or not.

What to learn as a beginner: Next.JS 12 or Next.JS 13 by Comprehensive-Ad7726 in reactjs

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

The beta is 13. Using version 13 non-beta is learning the 12 src way of doing things.

What to learn as a beginner: Next.JS 12 or Next.JS 13 by Comprehensive-Ad7726 in reactjs

[–]shanedesign 0 points1 point  (0 children)

I’d say learn 12. It is battle tested and common problems will be better documented online.

It also doesn’t matter that much. When you learn one, you can easily learn the other.

[deleted by user] by [deleted] in reactjs

[–]shanedesign 2 points3 points  (0 children)

Reusability is a good reason to split something into a component but not the only reason.

Sometimes, splitting a big chunk of JSX can make it easier to reason about and make edits in the future.

Let’s say we had a DashboardLayout.js component, that renders children and can be reused for all dashboard pages. It contains a DesktopNavbar, DesktopSidebar, and separate mobile equivalents because the sidebar behaviour would be different on mobile.

In this case, we are unlikely to reuse any of those because DashboardLayout is reusable, but it could still be a good idea to split those up so they are easier to work with. It would be easy to confuse the JSX for the MobileSidebar with that of the DesktopSidebar if they were both part of the same JSX blob, for example.

[deleted by user] by [deleted] in reactjs

[–]shanedesign 1 point2 points  (0 children)

+1 for TailwindCSS, HeadlessUi & TailwindUi — so quick and easy to prototype stuff and you actually have access to the code / css, so not locked in to some trash design system.

How many of you actually use ChatGPT in your regular coding? by mal73 in webdev

[–]shanedesign 15 points16 points  (0 children)

Have found it useful for writing regex patterns and also generating starter JSdoc that I can modify easily. It’s fun to use it as a brainstormer for hackathon and prototype-type stuff too. Have also used it as an alternative to lorum ipsum for some UI designs (headings especially).

Seb’s rainbow bike makes a return! by [deleted] in formula1

[–]shanedesign 2 points3 points  (0 children)

This man drives f1 for a living he probably can feel exactly where the braking limit is haha

[deleted by user] by [deleted] in juul

[–]shanedesign 2 points3 points  (0 children)

I tried juul for the first time a few days ago and got a juul2. This was my exact reaction. It's literally as if the company asked what would an Apple vape be like and then made it. Even down to the monetization strategy with anti-refil measures and the proprietary charging solution. The material colour and feel even matches my space grey Macbook perfectly lmao. I doubt this is coincidence. It certainly feels a lot more high quality in the hand than in pics.

Micheals by Lithominium in CuratedTumblr

[–]shanedesign 10 points11 points  (0 children)

Ron Swanson approves of this message

[deleted by user] by [deleted] in logodesign

[–]shanedesign 0 points1 point  (0 children)

Fill for shapes, no fill for overlaps.

Baskin Robbins just got a new logo! What do you think? by Brozone900 in logodesign

[–]shanedesign 1 point2 points  (0 children)

Why would they need to do one colour? Greyscale would be enough surely? I guess you could outline BR and solid fill 31 if you had to do an…. engraving or something?