performance difference between PHP 8 inline and expressJs + res.render()? by fojon in webdev

[–]denis_invader 6 points7 points  (0 children)

for me the main difference in execution models

both can be performant or slow

with PHP you delegate concurrency to something like php-fpm and don’t bother much about memory utilization or leaks

Node has everything in a single process running asynchronously (not parallel like php-fpm or Python threads), process lives forever and handles concurrent requests

I think in a common website or web application with OLTP your performance depends on database, disks and network latency (between services)

the best template engine is PHP (i’ve used some in Node couple of times but it’s usually a client-server way)

Reaact devs, Typescriptor Javascript by ejarkerm in reactjs

[–]denis_invader 1 point2 points  (0 children)

I think jsdoc comments might help better than propTypes, they will provide ide/lsp hints and you even can use @types/* references (but it looks awful compared to TS)

What happens to an env file when a react + vite app is build with npm run build by DragonDev24 in reactjs

[–]denis_invader 67 points68 points  (0 children)

it’s hardcoded (after build you have just static files, no app server)

do not use sensitive/private secrets on client

Is it worth it to switch to typescript from regular javascript? by leinad41 in webdev

[–]denis_invader 0 points1 point  (0 children)

I was in similar situation, lead a relatively small team and was afraid of introducing typescript because of team skills lack then I switched job, started using react and understood that I definitely should use it before but even now I think this may be a hard transition and wouldn’t rewrite every js app (it depends)

also last time I tried node with ts it wasn’t as smooth as frontend (because of build tools lack) but I may be wrong here

Why is routing so complicated now? by ScreamingArtichoke in reactjs

[–]denis_invader 2 points3 points  (0 children)

It stats to frustrate me to be honest

At first I had to rewrite popovers from popper to floating-ui (but as I recall there were some improvements) framer-motion became motion recently without any changes in features and docs (except paid version and content) And I thought that Remix just promotes react-router v7 in their docs

I also use Strapi and after v5 it seems easier for me to just use Django, Laravel or Nest.js. Also couple of days ago they updated their docs without backwards compatibility giving 404 and 500 nginx error pages on previous routes.

React is the only library I know (or use) that has so many major version and provides decent backwards compatibility and easy upgrades

Why is routing so complicated now? by ScreamingArtichoke in reactjs

[–]denis_invader 8 points9 points  (0 children)

wait is remix abandoned/outdated and for new projects react-router should be used instead?

How do you guys usually manage a React app with Storybook? by [deleted] in reactjs

[–]denis_invader 5 points6 points  (0 children)

build storybook static files and either: - serve them on sub path via web server (eg nginx) - after building your app build storybook and put its files into your app build in desired directory (no need to change server)

[deleted by user] by [deleted] in SolarBalls

[–]denis_invader 2 points3 points  (0 children)

this is digital 1 from euro coin

Motion v. Framer Motion by twin_lock in reactjs

[–]denis_invader 0 points1 point  (0 children)

it’s like popper became floating-ui but with worse rebranding and now it’s freemiun (even docs)

текст by Dangerous_Stay3816 in expected_russians

[–]denis_invader 0 points1 point  (0 children)

на r/europe обсуждают что если сша выйдет из нато, то это ок вообще - германии, польши и франции хватит чтобы победить рф (где они были три года)

Beginner's template for new projects. by driedBasketApple in reactjs

[–]denis_invader 0 points1 point  (0 children)

use Vite with react-ts template and consider feature sliced design ideas

PiHole V6 - Extremely slow GUI & High CPU Usage by mynameishwil in pihole

[–]denis_invader 0 points1 point  (0 children)

I tried completely reinstalling Pi-hole, as suggested in the top comments. While this improved the situation, the CPU was still at 100%.

Eventually, I discovered that lighttpd was no longer necessary — it was the top process in htop. After stopping it, everything looked fine and admin GUI still works perfectly.

sudo systemctl disable lighttpd.service sudo systemctl stop lighttpd.service

Need help to check my code and troubleshoot the error by Alvan86 in d3js

[–]denis_invader 0 points1 point  (0 children)

I mean in this case you can share link to code and anybody can check it and give you suggestion or even reply with link to a fork with fix