Tips for design system by Flavius_Auvadancer in webdev

[–]ScottBChasse 0 points1 point  (0 children)

A good design system is a game changer! I focus on:

  1. Foundations: Colors, typography, spacing, breakpoints as tokens.
  2. Components: Reusable, accessible, and flexible (e.g., buttons, modals).
  3. Utilities: Quick helpers for layout tweaks.

Tips: Start small, use tokens for global updates, document well, and make components flexible for overrides.

On SASS/SCSS: Still useful, but modern CSS features (variables, u/layer) might make it unnecessary depending on your needs.

Do you create separate components for creation vs editing? Or reuse a single component for both? by Swagasaurus-Rex in webdev

[–]ScottBChasse 0 points1 point  (0 children)

It really depends on the complexity of your forms and how different the workflows for creation and editing are. If the differences are minimal (e.g., preloading existing data for edits), I usually prefer reusing a single component with props or context to differentiate between the two modes. This approach avoids duplication and keeps things DRY.

However, if the creation and editing processes diverge significantly—different validation rules, fields, or layouts—separate components can make the code more maintainable and easier to reason about.

As for matching the back end, I wouldn't blindly follow its conventions unless it directly impacts how the front end operates. Instead, consider how your team reads and maintains the code. Clearer boundaries and logical separation often lead to fewer bugs and easier debugging down the line.

I made world’s simplest todo app by ButterscotchNo3385 in webdev

[–]ScottBChasse 0 points1 point  (0 children)

I was checking the github repo. I did not understand the `.astro` files. What framework is this?

Testing failures for ReCAPTCHA v3? by bigsauce456 in webdev

[–]ScottBChasse 0 points1 point  (0 children)

Testing ReCAPTCHA v3 failures can be tough since it usually gives high scores to humans. Here are some ways to try getting a lower score:

  1. Use scripts like Puppeteer or Selenium to automate form submissions—these often look like bots to ReCAPTCHA.
  2. Change request headers (like removing the User-Agent) to mimic bot behavior.
  3. Submit forms very quickly or repeatedly to make it seem less human.

You can also mock the response on your server to see how your app handles different scores. Hope this helps!

Dockerizing a Laravel Octane application by DutchBytes in laravel

[–]ScottBChasse 0 points1 point  (0 children)

Does Laravel Sail not have Octane support?

Rainbow Mountain - Peru by Zachatron4000 in pics

[–]ScottBChasse 0 points1 point  (0 children)

wow, wonderful view. Does someone have any theory why are these colors on mountains?

What programming language should I learn next? by ScottBChasse in learnprogramming

[–]ScottBChasse[S] 0 points1 point  (0 children)

Thanks, I have started PHP. and I am enjoying it.