HNHacker News
TopNewBestAskShowJobs

DogLover_

291 karma · joined July 30, 2018

submissionscomments
DogLover_··on Things People Eventually Learn About JavaScript Projects
Yes, I personally like this style.

Its not a lack of thinking or laziness. Its just easier to read.

DogLover_··on Things People Eventually Learn About JavaScript Projects
1. I did say sometimes that single letter variable are okay not always. The example you mentions are good cases. Especially lambda functions. If its not mentioned some will interpret that single letter variables are always bad.

2. My experience says that is too static way of thinking. Maybe I work in too fast paced place, but usually we learn that previous written software is not good today and we need to rewrite the code to make it better. Rarely have I seen that interfaces stays the same forever.

3. Whats the difference here? Squashing on a development branch vs on merge? Btw I do commits daily with good messages, but I am just wondering what I get from this if I loose it later anyway.

DogLover_··on Things People Eventually Learn About JavaScript Projects
Are you sure its considered a no-no? Gitlab has it integrated as part of the PR interface. https://docs.gitlab.com/ee/user/project/merge_requests/squas...

> Do you mean linters that enforce maximum line widths? That seems increasingly rare these days.

Yes, that is what I mean, and I see it more and more because some think passing a linter test will make your code good.

DogLover_··on Things People Eventually Learn About JavaScript Projects
Same old recommendations.

Some things to consider imo:

1. Using x as variable name can sometimes increase readability. For generic functions that are close to mathematics it is not a sin to use such variable names. Though way to often I get pointed out to rename it to something more descriptive. Longer variable names can also leads to worse readability since a linter will now make 1-liner split into a 4-liner.

2. Tests: "With increasing complexity your codebase will become much harder to maintain and control — tests will do it for you." Good intentions here but be careful. Tests can cause people not wanting to refactor/fix because now they have to fix the structure of the tests. Refactor means more than changing the implementation of functions.

3. "Commit daily,... . Give meaningful commit messages." I am starting to see a trend where PRs get squashed into one commit. Thus making such advice not very useful.

DogLover_··on Why isn’t someone using my software product or open source tool?
For me it is about seeing how a tool can be used and if it is worth installing. I am not going to bother install a tool and then try a command to see if it is worthwhile to have on my computer. I try to keep my computer junk-free so I only install something if I believe if its any worth for me.
DogLover_··on Why isn’t someone using my software product or open source tool?
My pet peeve: Not providing screenshot, gif or video.

Some developers even do that with themes. Yeah, I am not going to DL a theme file only to find out I don't like.

← PreviousPage 4 of 4