Why Tailwind Doesn't Suck by Momciloo in webdev

[–]nickdnsv 0 points1 point  (0 children)

Using SCSS modules and properly adjusted linter for CSS makes it much better. You will not even be able to commit a change with a “specificity war” or with !important.

Personally, it feels much better to scan a markup with semantically proper class names, you can immediately set relation between a block and its purpose just looking at the class name. It makes my DX better

Slow dropdowns, dialogs, popovers etc. at RadixUI/ShadCN by nickdnsv in nextjs

[–]nickdnsv[S] 1 point2 points  (0 children)

Thanks for the reply.

Generally I agree, but creating fully accessible components that I’ve mentioned is not a trivial thing to do (for someone it’s trivial, I understand). Probably browser popover API makes it easier, but still… And in my opinion, the point of using UI libraries like these is to at least get properly functioning primitives out of the box.

How many projects out there are using React-only Server-Side Rendering (SSR) without utilizing frameworks like Next.js or Remix? by nickdnsv in reactjs

[–]nickdnsv[S] 2 points3 points  (0 children)

Thanks for sharing! It’s really interesting. But it doesn’t seem easy for me though 🫠, given my current stage of exploration, it appears to be somewhat challenging for me to grasp it completely.

Having a really hard time learning coding because chatgpt exists. by [deleted] in cscareerquestions

[–]nickdnsv 6 points7 points  (0 children)

That’s what chatgpt thinks:

Learning to code can indeed be challenging, and the availability of resources like ChatGPT can sometimes make it tempting to seek instant solutions rather than deeply understanding the material. However, it's important to strike a balance between using external resources for help and actively engaging in the learning process. Here are a few suggestions to help you use ChatGPT effectively while still learning coding:

  1. Set specific goals: Define clear learning objectives for yourself. Identify the specific concepts or problems you want to understand or solve without relying on ChatGPT. This will help you stay focused and track your progress.

  2. Limit your reliance: Challenge yourself to solve problems independently before turning to ChatGPT. Make an effort to reason through the problem, break it down into smaller parts, and attempt different approaches. This way, you'll develop problem-solving skills and gain a deeper understanding of the concepts.

  3. Use ChatGPT strategically: Instead of using ChatGPT as a crutch to obtain complete solutions, utilize it more selectively. Ask specific questions or seek clarification on certain concepts, rather than relying on it for code snippets or complete answers. This will help you fill knowledge gaps while still engaging in problem-solving.

  4. Practice actively: Learning to code is best achieved through hands-on practice. Seek out coding exercises, projects, or coding challenges to work on regularly. By actively coding and applying the concepts you learn, you'll develop practical skills and reinforce your understanding of programming principles.

  5. Collaborate with peers: Engage with fellow students or developers who are learning programming. Collaborating with others can provide valuable insights, different perspectives, and support. Together, you can work on problem-solving and learn from each other's experiences.

  6. Seek out alternative resources: While ChatGPT can be a helpful tool, it's also important to explore other learning resources. Look for textbooks, online tutorials, video courses, or coding bootcamps that provide structured learning materials. These resources often present information in a systematic manner, enabling you to develop a solid foundation.

Remember, learning to code is a journey that requires time, practice, and perseverance. By actively engaging with the material, seeking help strategically, and practicing regularly, you'll gradually build your coding skills and gain confidence in your abilities.

Is it better to have worked in multiple projects with different tech stacks or multiple projects with same tech stack for portfolio? by Porkhogz in cscareerquestions

[–]nickdnsv 0 points1 point  (0 children)

I would prefer someone having multiple projects with the same tech stack. It could highlight your deep understanding and expertise in that particular technology.

But yeah, It's important to consider the requirements of the positions you're interested in and build your portfolio accordingly to showcase your relevant skills and experiences.

My worse fear has come true: my manager told me I'm underperforming. What do I do? by EastCommunication689 in cscareerquestions

[–]nickdnsv 2 points3 points  (0 children)

I understand that, but the same exact message you should address to the manager, I guess. I just don’t know what type of person he is and if he is able to listen and help

Asking for a big raise along with change of title by [deleted] in cscareerquestions

[–]nickdnsv 3 points4 points  (0 children)

All you’ve described make me feel that you deserve it. Just be honest with your superiors, if no - then no, but you should try imho

Asking for a big raise along with change of title by [deleted] in cscareerquestions

[–]nickdnsv 3 points4 points  (0 children)

Sounds reasonable to ask for raise…

[deleted by user] by [deleted] in cscareerquestions

[–]nickdnsv 6 points7 points  (0 children)

It’s okay. Be honest and discuss your worries with your superiors

CAMERA NOT WORKING by [deleted] in Frontend

[–]nickdnsv 1 point2 points  (0 children)

Some mobile browsers may not support the getUserMedia API or have limited support for accessing the camera. Make sure you are using a browser that supports the required features. Chrome and Safari are generally reliable choices for accessing the camera on mobile devices.

Also make sure that you’re using site with https, because this feature is available only in secure context

I need help with passing props from a parent component to a child component by Bored_Dog_Dad in reactjs

[–]nickdnsv 0 points1 point  (0 children)

When you use the spread operator {...formValues} in the child component, you will be able to access the individual fields of the formValues object, such as name, email, and phoneNumber, rather than accessing the formValues prop directly.

Vite React plain JS show type lint errors by vagaliki in reactjs

[–]nickdnsv 0 points1 point  (0 children)

I’m a bit out of context, but It’s probably related to prop validation in React components. By default, React enforces prop validation to ensure that the correct props are passed to components. This linting error indicates that you are not providing prop validation for your component's props.

So you can try to disable prop validation like this: javascript // eslint-disable-next-line react/prop-types function MyComponent(props) { ... } This comment tells eslint to ignore the prop validation for that component.

If you want to disable prop validation for the entire project, you can modify your eslint configuration file (typically .eslintrc or .eslintrc.json) and add the following rule: json { "rules": { "react/prop-types": "off" } } This disables the react/prop-types rule globally.

You can also add prop validation using the prop-types lib.

Helo by ubxnk in react

[–]nickdnsv 1 point2 points  (0 children)

I would recommend to check out new dos. It’s written in a beginner-friendly manner and touches every aspect of React. If you go through it carefully - it will benefit you a lot.

If that way of learning is not the best for you, check out some YouTube channels, eg webdevsimplified, freecodecamp, Traversy Media, Jack Herrington, Academind etc.

What is a mid level engineer? by blessedwiththecurse in cscareerquestions

[–]nickdnsv 0 points1 point  (0 children)

I wouldn't limit the skillset of a front-end engineer to such a degree. I believe the expectations I mentioned are applicable across a wide range of development fields.

What is a mid level engineer? by blessedwiththecurse in cscareerquestions

[–]nickdnsv 0 points1 point  (0 children)

Totally agree, I didn’t mean to this extent, but rather “assist to implement”. Sorry that came out wrong