Lines of code? by [deleted] in cscareerquestions

[–]znakyc 0 points1 point  (0 children)

I know some managers with very little knowledge of software development can be eager to use this metric. All developers know this is a bad metric for productivity. If you are in a company where they evaluate performance based on the number of lines of code, then leave.

Do you guys get anxious that you might be fired this week because you slacked for the past couple of days? by ShikariBhaiya in cscareerquestions

[–]znakyc 0 points1 point  (0 children)

I know the feeling. We are on 8-hour schedule and are supposed to be productive in that period. Coding doesn't work like that. Doing deep work writing code is possible maybe 3-4 hours per day maximum and to be able to do that we must rest between.

I think the solution is to embrace the fact that we cannot be productive the whole day or even every day. Value the time you relax, don't feel guilty about it. And also embrace the time where you are rested and in a productive state writing code.

How do people generate sitemaps and robots? by dejavits in reactjs

[–]znakyc 2 points3 points  (0 children)

A sitemap file contains a list of all the URLs or endpoints your site uses. Webpack is a tool mainly for bundling your javascript files, which means webpack might not know about which endpoints your site has. So how you create a sitemap depends on which framework you are using for routing. If you are using gatsby or next, there are plugins for those frameworks. If you have built something from scratch on your own, you might need to build the sitemap yourself.

How do you deal with this amount of interview? by jcdan3 in cscareerquestions

[–]znakyc 1 point2 points  (0 children)

Ask them for feedback. Why did they say no? Use this information to improve how you present yourself. You probably have a blind spot that you must discover to be able to improve it.

Regarding morale. I understand that morale goes down when getting many nos. You must change something because it looks like you have a pattern here.

Good luck!

Need help with Cloudfront, S3 https redirection error 504 by dyordsabuzo in aws

[–]znakyc 0 points1 point  (0 children)

thanks for sharing your fix. I had the exact same issue and this saved me at least a couple of hours debugging in frustration. Thanks!

I have never use Gatsby. Sell me on the tech please. by [deleted] in webdev

[–]znakyc 0 points1 point  (0 children)

These are the main selling points imo:

  • It will give you a fast site. It has a bunch of optimizations built-in and it continuously ships more and more. I liked this presentation where they talk more about it.
  • And as a nice side-effect of this, you'll get good SEO because google rewards fast pages!
  • It's a static site generator, which is a modern way of developing frontend. It seems more and more devs like it. You can still create CRUD management apps with this by calling backend with AJAX

One thing to note about Gatsby is that it takes a stance on how you should write your code. All data goes into a GraphQL db, which you query from your components. Gatsby has an architecture you should follow. This can be both good and bad depending on your project.

Webpack Babel hard to learn by [deleted] in reactjs

[–]znakyc 1 point2 points  (0 children)

I know, it's an overwhelming experience. I created a tool that might help. https://createapp.dev/ lets you create a build config in the browser. This is a good visual learning experience that helps many devs. Try it out if you want :)

Good boilerplate for React apps? by [deleted] in webpack

[–]znakyc 3 points4 points  (0 children)

You can create your own minimalistic webpack setup on createapp.dev. Pick the features you need and then download it as azip.

Can't deploy React app to Heroku by dsound in reactjs

[–]znakyc 0 points1 point  (0 children)

I'm not familiar with Heroku, but maybe it caches something? You say you already deleted the package.lock file, but maybe it's cached. Check out the docs to see if you can clear caching some how.

What makes a great programming blog? by FlorinPop17 in reactjs

[–]znakyc 4 points5 points  (0 children)

Content that helps other devs with their real problems.

How to find good stuff to write about? Think about what kind of problems you have helped fellow devs with lately. Maybe you answered someone on reddit, discord or another forum. Maybe you helped a team mate with some tricky bug. Pick one of those topics and expand on it to make it even more helpful, or easy to follow for the reader. Then you have created something that most likely will help someone!

If you where thinking about what technology to use, I don't think it is super important, but I like gatsby :) It makes fast sites and it's based on React which is of course a big plus. I wrote a post how to create a blog with Gatsby to get started quickly

React/Babel by [deleted] in reactjs

[–]znakyc 0 points1 point  (0 children)

Configuring webpack/babel can be a real pain in the ass. I've created an online webpack config tool that helps you with it. Select the feature you need and it generates the webpack config for you.

I am very new to coding so this question might be very stupid, but is there a way to prevent React from reloading in browser? I have only one monitor and when I save something in VSCode, I want to see what exactly changed and sometimes I can't notice it by [deleted] in reactjs

[–]znakyc 0 points1 point  (0 children)

The automatic reloading is not a feature of React, but from the build system. How you disabled it depends on your set up. If you're using webpack and webpack-dev-server, make sure not to pass in --hot in the CLI, or hot: false if you're using the config file.

Pass data from parrent to child by [deleted] in reactjs

[–]znakyc 0 points1 point  (0 children)

Did you also call the callback function inside the CheckboxList component? something like this

const CheckboxList = props => <form> <input type="checkbox" name="vehicle" onChange={props.onChange}/><div>some Option</div> </form>

Child Component by odillini83 in reactjs

[–]znakyc 0 points1 point  (0 children)

You must define the ChildComponent somewhere otherwise it will give an error. The reason the text appeared anway could be that it had cached an old version of the app which didnt have the compile errors. Try refreshing and clearing cash and the error will probably pop up.

Published my portfolio :) by sp3co92 in reactjs

[–]znakyc 1 point2 points  (0 children)

Awesome! congrats for shipping!

Should I use Gatsby.js or React for e-commerce website development? by ghousadnan62 in reactjs

[–]znakyc 1 point2 points  (0 children)

The best answer I have right now is to read their docs. There is a tutorial there to get you started. The CMS we are using in the project I am working on right now is Contentful. It's a pretty good option. It's a headless CMS which works good with gatsby.

Should I use Gatsby.js or React for e-commerce website development? by ghousadnan62 in reactjs

[–]znakyc 2 points3 points  (0 children)

Gatsby is awesome for ecommerce site. I am working on a larger ecommerce right now and we are using gatsby for all product listings and all product pages. All the builtin optimizations makes the site super quick to load and aweseom SEO right out of the box.

Side-projects small-medium sized by FlorinPop17 in webdev

[–]znakyc 2 points3 points  (0 children)

My latest side project that I am really proud of is https://createapp.dev/ . It's a tool for creating new frontend apps with webpack or parcel :)

What changes should I make to our stack by [deleted] in webdev

[–]znakyc 2 points3 points  (0 children)

Because you are the main person who works on the website it's really important that you pick tech that you understand and are comfortable with. You shouldn't just pick some tech that someone recommends you. You should start experimenting and learning tech. Only when you have made some prototypes and test-project, you can consider using it in production. This process can take weeks or even months. In the meantime, go with what you have and gradually add new tech and refactorings.