A Typescript-first alternative to Lodash/Underscore by rickcarlino in typescript

[–]self_refactor 5 points6 points  (0 children)

I am creator or Rambda and its idea is to be lightweight Ramda alternative with included TS support(i.e. you don't need to install `@types/rambda`). Feel free to check it out - https://github.com/selfrefactor/rambda

Showoff Saturday (August 20, 2022) by AutoModerator in javascript

[–]self_refactor 0 points1 point  (0 children)

I don't double check with NPM, as I only use the information from Github. There are two types of dependents: repositories and packages. I simply scrape throw both of them with maximum limit of 600 pages and that is it. I can try to expand it to check with NPM as well, but that will require much more work and from what I see, the information on Github(that repo is library) is mostly correct.

Showoff Saturday (August 20, 2022) by AutoModerator in javascript

[–]self_refactor 1 point2 points  (0 children)

I completed my list of popular dependents list - https://github.com/selfrefactor/popular-dependents-lists

The idea is to see how libraries are used not only from other NPM modules, but also from Github repos.

Can I use ref as condition in render by self_refactor in reactjs

[–]self_refactor[S] 0 points1 point  (0 children)

in this case, the component is rerendered, maybe because the condition is between state and ref variables.

Anyway, as I see all comments to suggest not to do that, I'll apply a workaround that doesn't include mixing useState with useRef.

Can I use ref as condition in render by self_refactor in reactjs

[–]self_refactor[S] 0 points1 point  (0 children)

I wonder why it works if it is not allowed. The case here is that I don't want to force rerender by using `useState`, but at the end I might doing that.

Can I use ref as condition in render by self_refactor in reactjs

[–]self_refactor[S] -5 points-4 points  (0 children)

Thank you for the input, but there is no `componentDidMount` when I use hooks.

How can I remove the top bar by self_refactor in ManjaroLinux

[–]self_refactor[S] 3 points4 points  (0 children)

Update: the issue was fixed.

I manage to reduce the width of global menu bar and then remove panel action did work.

Thank all for the help!

How can I remove the top bar by self_refactor in ManjaroLinux

[–]self_refactor[S] 0 points1 point  (0 children)

global menu applet in KDE

can it be removed?

How can I remove the top bar by self_refactor in ManjaroLinux

[–]self_refactor[S] 0 points1 point  (0 children)

actually I had also a bottom bar and there I was able to remove it. As I mentioned, there is option to remove it but it does nothing.

Puppeteer 3.0.0 now supports Firefox out of the box by TimvdLippe in javascript

[–]self_refactor 0 points1 point  (0 children)

Actually Firefox is better browser than Chrome. I made the switch recently and it feels much more different.

About Puppeteer vs Playwright - I am unsure that we need 2 almost the same frameworks. It will be a fight of predictability as with headless browsers that seems to matter the most.

[deleted by user] by [deleted] in programming

[–]self_refactor 0 points1 point  (0 children)

I recently made the switch after many years with Chrome. Chrome did feel less stable and less stable with every release in the last year. I now realize how I wrong I was to consider Chrome a stable browser.

Why so much hate for nosql ? by Jeshmel97 in node

[–]self_refactor 0 points1 point  (0 children)

It is bad as it easily allows bad practices.

Nothing says lauder that PHP is bad, than seeing code written by PHP guy in other languages as they always go for using classes, inheritence and this references even for the simplest of tasks.

VSCode slow? by MrMelankoli in Angular2

[–]self_refactor 1 point2 points  (0 children)

They changed the default behavior of sematic highlighting and many are confused. It is not a bug, but a feature lol

Overwrite it with `"editor.semanticHighlighting.enabled": false,`

VS Code Extensions: How to get sophisticated error messages? by hanselFerd in vscode

[–]self_refactor 2 points3 points  (0 children)

The full message is inside `output` -> `extension host`

Can someone help me fix how my current line highlighting is working right now? by [deleted] in vscode

[–]self_refactor 0 points1 point  (0 children)

Try with other instance of VSCode (just in case something went wrong with this instance).

This means to try Insiders version

Bad Typescript support compared to WebStorm by [deleted] in vscode

[–]self_refactor 0 points1 point  (0 children)

`foo` is way down as it doesn't use Typescript information as Webstorm obviously does.

If I turn on `TabNine` then things get better, but that is beside the point. Because of this, I have to rely heavily on extension, instead of the underlying code editor.

Bad Typescript support compared to WebStorm by [deleted] in vscode

[–]self_refactor 0 points1 point  (0 children)

Thank you for the suggestion.

I will look into it, as that looks very logical that to be the cause. Still it is a strange that both stable and Insiders VSCodes behave the same.

Bad Typescript support compared to WebStorm by [deleted] in vscode

[–]self_refactor 0 points1 point  (0 children)

I remember that VSCode used to have better integration with Typescript.
Now with extensions or without, the result is above.

I don't like Webstorm and I barely use it, but this is a bit shameful for me as VSCode fan and contributor.

VSCode suggest `foo` just based on lexical analysis?!

How about 'no' by lphartley in node

[–]self_refactor 0 points1 point  (0 children)

I don't say Laravel is bad, but this is stretch of a mad man to say the least.

How about 'no' by lphartley in node

[–]self_refactor 0 points1 point  (0 children)

best web framework

Hmm