I've been calling emacs an IDE for a long time. https://news.ycombinator.com/item?id=72895
11,792 karma · joined February 20, 2007
Socials: - github.com/brlewis
--- Bruce Lewis, creator of https://en.howtruthful.com/
I've been calling emacs an IDE for a long time. https://news.ycombinator.com/item?id=72895
>I don't know what this is, sorry
In emacs, try M-x tide-refactor. It's the "extract to function in module scope" option.
Why imagine? I have emacs open and it's doing this with React right now (tide mode).
With prettier, one can make an old style go away.
This comment really looks like it's a reply to some article other than this one.
Realistically, do you think JS programmers are going to form two camps?
x ** y
Math.pow(x, y)
I don't think so. I think people will just stop using Math.pow.Nor do I foresee a big problem with some numeric constants being written with separators and others not.
In the unlikely event there's a problem with either addition, prettier can be enhanced to make it so developers don't need to be up to speed on them.
Hi. Fellow emacs enthusiast here. We can evangelize emacs tide mode and slander vim on other TypeScript articles, but I think it's best not to do so on this article, because it specifically mentions vim in the editor support section.
https://svelte.dev/blog/svelte-and-typescript#2_Editor_Suppo...
EDIT: "This is dangerous" is also the wrong label for the 2nd example. Should be "This is not the cleanest way"
EDIT2: "This is dangerous" is also the wrong label for the 3rd example. Should be "This is not the most readable". I'd also note that I'm surprised the author has seen this mistake a lot; the "solution" looks like the happy path most people would follow in the first place.
EDIT3: "This is dangerous" in the 4th example should be replaced with "This could be simplified"
EDIT4: "This is dangerous" in the 5th example should be "This makes redundant API calls". I'd also note that I'm surprised this example is even included. How could anyone miss that fetchData() is being called every time updateBreadcrumbs() is called?
Asking "Got evidence for that?" is sufficient refutation for baseless claims.
Being grumpy and bad-tempered are predispositions toward having negative emotions in more situations than most people would.
There are two classes of evidence in the article.
The first is evidence that negative emotions are useful in certain situations. One does not need to be grumpy and bad-tempered to recognize such situations and act appropriately.
The second is anecdotes where successful people had emotional outbursts. I assert that the outbursts did not cause the success. Passion caused both the outbursts and the success, separately. Thus there's correlation between outbursts and success but not causation.
You aren't saying it's impolite so say anything less, right? I've lived in the US all my life and that's not my expectation...it could be that cultural expectations are not uniform.
I want to be on the JavaScript and baking forums that he's on.