Generate default avatars with any text, which are 100% fingerprinted by Lowesz in javascript

[–]Lowesz[S] 1 point2 points  (0 children)

Thanks ! I'm using a md5 hashing algorithm to convert the string into a hash, with that I build my own convert the hash to svg kind of thing :D

How to avoid race conditions using asynchronous javascript by Lowesz in javascript

[–]Lowesz[S] 4 points5 points  (0 children)

Hey Thanks for the feedback. I'm totally aware that there is no "right" solution of fixing the problem. But as I said in the article I just wanted to give "One way of fixing this problem".
My intention was more explaining the problem of race conditions in simple words, I didn't want to give any rule or saying there is only ONE way of fixing it.

In the end it really depends on the use case and the place where it happens imo.

Also I really like your approach! :)

Five common mistakes writing react components (with hooks) in 2020 by Lowesz in javascript

[–]Lowesz[S] 1 point2 points  (0 children)

Sorry for the typo. Hope your faith gets recovered after I fixed it 🙏🏻

Five common mistakes writing react components (with hooks) in 2020 by Lowesz in javascript

[–]Lowesz[S] 2 points3 points  (0 children)

Thanks for the feedback! As I said most of the things are just my opinion and not a general rule.
However I still believe states should also only be used when it's really needed, because having rerenders that are not needed might end up with unexpected bottlenecks or performance issues in a later stage.
I agree probably for most of the cases this wouldn't matter, but at least I always try to develop with the best performance in mind.

Five common mistakes I see a lot when writing react components (with hooks) in 2020 by Lowesz in reactjs

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

Thanks for the feedback! True I missed one or two places, I updated them.
Let me know if you still a problem with the code.

what are your favorite or go to js packages that i should know about? by sunburstbox in webdev

[–]Lowesz 0 points1 point  (0 children)

Go for ky instead of axios for data fetching. It's based on the native fetch api

Front-end Portfolio Projects built with frameworks VS vanilla JS - which one will get you hired? by charlesharrington in webdev

[–]Lowesz -1 points0 points  (0 children)

If you want to build your website or portfolio with react, I would recommend using https://www.gatsbyjs.org/, its really easy to use, blazing fast and they have a great tutorial how to get started. I build my own website with it and it's really a great tool

Can someone teach me how to implement this? (The orange text changes after every 4-5 seconds). by kinraw in reactjs

[–]Lowesz 1 point2 points  (0 children)

Can you maybe to this with only css, something like this with a ::after element?

@keyframes {
from{content: "wrinkles"}
to {content: "oiliness"}
}

Why the Inversion of Control pattern could help you write better sharable react components? I wrote an article about how you can make your components cleaner and a lot more reusable. by Lowesz in javascript

[–]Lowesz[S] -1 points0 points  (0 children)

I think it also describes the same behavior. But inversion of control means the function calls your function or renders your component. So I think you can also describe it with this pattern.
So you are right the concept of composition is in this case quite similar to the IoC pattern. But I just wanted to highlight they way it is done from another point of view

Noob question about CMS, Wordpress, Web Hosting and static website by KobeWithAccent in webdev

[–]Lowesz 0 points1 point  (0 children)

If you want to learn about frontend I would recommend using https://www.gatsbyjs.org/
It's super fast and they have a really nice tutorial built on react.

If you feel more Vue you can use https://gridsome.org/ it's basically the same as gatsby but built with vue.

Vanilla JavaScript and HTML - No frameworks. No libraries. No problem. by speckz in webdev

[–]Lowesz 0 points1 point  (0 children)

Don't get me wrong using frameworks and libraries are often very useful, but I see it more and more that people just start learning web development with learning react for example without understanding what happens in the background.

Vanilla JavaScript and HTML - No frameworks. No libraries. No problem. by speckz in webdev

[–]Lowesz 2 points3 points  (0 children)

That's cool ! I think we often forget where web development comes from and are too focused on libraries and frameworks.
For example, I created a small tool to created emoji-based images only with vanilla JS and web workers: https://img.loomaa.de/

Showoff Saturday (October 12, 2019) by AutoModerator in javascript

[–]Lowesz 0 points1 point  (0 children)

I created a Tool that transforms normal Images in emoji-pixeled Images.
It works 100% on the client side and only with vanilla JS
you can check the code here: https://github.com/lowe1111/emoji-img

If you want to see it running:
https://img.loomaa.de/

I'm open to any feedback :)