sunflowerseed

sunflowerseed @sunflower

About: Front End Dev

Joined:
Jan 15, 2020

sunflowerseed
articles - 29 total

A 5 minute guide to nvm

To have multiple versions of node and npm on our machine, we can use nvm. The official docs of nvm i...

Learn More 8 0Mar 28 '21

Don't run `sudo npm install -g` -- the simplest way to make it work

When we do npm install --global something Enter fullscreen mode Exit fullscreen...

Learn More 5 0Mar 28 '21

The only two values in JavaScript that is a === b, but operation using them give different results

This is the quiz for today... a === b gives true yet if you use them for the same operation, they gi...

Learn More 4 0Mar 16 '21

How to get data from API and show static data from server using NextJS?

It'd be simple to write a React app in 3 minutes to get the weather data from https://api.weather.gov...

Learn More 3 3Mar 11 '21

Do we really use useContext() in React?

It was once said that we either just React and state, or React with Redux or MobX, and that we really...

Learn More 1 0Mar 3 '21

Why do programmers say when they use tmux, their productivity shoot up the roof?

Isn't tmux just a tool so that when you get disconnected, you still can come back to the process or c...

Learn More 1 1Apr 8 '20

Sharing a story how chaotic your small company was?

In the old days, a hi-tech company was really a hi-tech company. These days, I found that it can be a...

Learn More 3 0Mar 27 '20

It is better to write something complicated that people find it hard to understand

I found that if I don't understand something that well, I can write some blog post, and people find i...

Learn More 10 10Mar 24 '20

I noticed being a contractor earn 40% to 50% less, and no 401K, no ESPP, no insurances, no vacations

So who wants to be a contractor really? I noticed there are some cases but beyond that I don't under...

Learn More 6 4Mar 24 '20

Why delete my comment?

Once I wrote something and it worked well in Chrome and Firefox, but Internet Explorer had some behav...

Learn More 8 7Mar 19 '20

One of the most evil things: let the user type for 15 minutes and blank out his textbox

That's one of the most evil thing a webpage can do to a user. Let the user type for 15 minutes for t...

Learn More 4 1Mar 18 '20

Should Web API be limited to RESTful?

Actually, should Web API be limited to RESTful? I remember in 2008, it was more like custom-made API...

Learn More 7 1Mar 17 '20

Poll: Do you know in JavaScript, what `a == null` is for, exactly?

Poll: what does a == null do exactly in JavaScript? I know exactly what it does. I have some ideas,...

Learn More 5 3Mar 17 '20

If you use a Google Map API Key, don't you need to put it in JavaScript and anybody can see it and use it too?

The Google Map API needs an account with billing to be able to try it. That mean we need to have an a...

Learn More 5 1Mar 16 '20

Any developer out there can tell us how you use RxJS?

For example, do you use it all by itself? Or use it with Angular? Is it a standalone framework that...

Learn More 4 2Mar 16 '20

Is RxJS more popular than React?

I saw the comparison of npm package installations: RxJS is double that of ReactJS. At first I tho...

Learn More 6 1Mar 15 '20

I don't know why React users downvote my StackOverflow questions just like PHP users

I used to asked PHP questions and Ruby questions on StackOverflow and the users responding came from...

Learn More 6 4Mar 15 '20

I am applying for front end dev but the interview will have one hour of "scaling web app", what does it involve?

If I develop just the webpage or webapp (such as using React or Vue), how does "scaling" the webapp h...

Learn More 6 7Mar 13 '20

Is it true that components in a ReactJS app should be divided into container components and presentational components?

I guess it is "you don't have to do that", but is it actually good or best practice to actually do th...

Learn More 7 5Mar 7 '20

If we don't use redux-thunk or redux-saga, what do we use?

Only a portion of people who use React uses Redux, and only a portion of that uses redux-thunk or red...

Learn More 7 4Feb 26 '20

I feel a little overwhelmed by middleware, redux-thunk, redux-saga

I was a little bit shocked by Promises, Await / Async, Generators, a function that can "stop" in the...

Learn More 5 2Feb 26 '20

How come job interviews turned in LeetCode familiarity?

There are some big companies, in which the interviewer told me secretly "if you don't do tons of L...

Learn More 5 4Feb 24 '20

How to make a React / Redux App able to get a value from a sub-component?

I have this simple Counter using React / Redux: https://stackblitz.com/edit/react-kkcgza?file=App.js...

Learn More 3 1Feb 24 '20

I can't understand Redux's `store.dispatch()`. Is it `store.takeAction()`?

Sometimes I have a hard time understanding the "verbs" or method names of OOP these days. Note the f...

Learn More 5 3Feb 24 '20

Does Redux minimize re-rendering?

Is it true that one big advantage about Redux is, it can minimize the re-rendering of components? If...

Learn More 4 3Feb 24 '20

How is GraphQL different from the old days?

In the old days we have API to get data, and then later we have RESTful, and then now we have GraphQL...

Learn More 42 20Feb 23 '20

ReactJS -- If it is setting a state with the same value, will the component be re-rendered?

Function component -- setValue(v) if v is the same value as before, then the function comp...

Learn More 24 18Feb 22 '20

What if a ReactJS app is structured so that App State is the App container, and App and all components are context consumers?

I wonder if a ReactJS app is structured this way, will it work properly: All the app state is insid...

Learn More 3 0Feb 15 '20

The only two values a and b in JavaScript that is a === b, but operation using them give different results

This is the quiz for today... a === b gives true yet if you use them for the same operation, they gi...

Learn More 4 0Jan 15 '20