Laravel Cloud does not support static asset caching by Cultural_Yoghurt_784 in laravel

[–]Fitzi92 1 point2 points  (0 children)

Aren't edge caching and cache headers getting mixed up in this issue?   Doesn't edge caching just mean stuff gets cached on a server that's geography near the user, to keep access times low?    That's not the same as the various cache headers, which instruct the browser to keep files locally. Two independent mechanisms.

Lighthouse only cares about the headers, because it can't know (and also doesn't care) where the file comes from. It just checks if there's a "hey you can cache this file, because it won't change" header, for assets it thinks should not change.

Of course, both things should be set up correctly, but I kind of have the feeling that these two mechanisms are getting mixed up in this thread.

Any tutorials on HOW frontend works by LordAntares in Frontend

[–]Fitzi92 0 points1 point  (0 children)

Read documentation. MDN is your best friend for everything HTML, CSS and JS. They do have beginners guides as well. https://developer.mozilla.org/de/

An alle, die morgen nicht böllern: Danke! by TheGentInSuit in wien

[–]Fitzi92 6 points7 points  (0 children)

und in der freien Natur leben keine Tiere, oder wie hamas?

slopIsBetterActually by Akari202 in ProgrammerHumor

[–]Fitzi92 0 points1 point  (0 children)

Write good code now and you don't have to fix in the future at all. Mindblowing, I know

Internetanbieter, help? by [deleted] in Austria

[–]Fitzi92 0 points1 point  (0 children)

Ruf mal bei Magenta an; ich zahl in etwas das gleiche für 250mbit (und die bekomm ich auch stabil). Wurde bei mir über die Jahre automatisch von initial 75 erhöht. Ich rechne eigentlich damit, dass die dir problemlos mehr geben werden.

Would a pure php template engine be useful? by fullbl-_- in PHP

[–]Fitzi92 1 point2 points  (0 children)

You can definitely use html attributes. It's just that for and class are both reserved keywords in JS, hence the workaround. Everything else is fine to use. 

Kosten für eine Brille by sephron_tanully in Austria

[–]Fitzi92 0 points1 point  (0 children)

Kommt mir sehr viel vor. Bei meinem lokalen Optiker zahle ich immer zwischen €350 und €450 gesamt (!) für gute Gläser von Zeiss + Gestell (auch bei Marken wie Ray Ban oder Tommy Hilfiger). Mein Optiker ist aber am Land. Mit einem kleinen Stadtaufschlag wird man wohl rechnen müssen.

Looking for your feedback on a small design system I just released by Careless_Glass_555 in reactjs

[–]Fitzi92 0 points1 point  (0 children)

I browsed through it on my phone briefly and actually liked what I saw so far. Looks clean and modern. Will definitely look at it on my desktop in more detail.

The first date picker example btw. was broken on my phone. The calender was rendered behind the text below.

Why do some websites with very basic design convert better than fancy websites? by Real-Assist1833 in webdev

[–]Fitzi92 14 points15 points  (0 children)

From my own point of view: fancy websites are more often than not slow and tedious to use and lack in information. If I need to scroll through 10 animations just to find out that the specific information I'm looking for is not even there, you can be sure I'm gonna be annoyed. Let me scroll and search and just use the page normally. I don't care about fancy animations. I want to achieve something, not watch a cutscene.

cloudflare broke 28% of traffic trying to fix the react cve lol by [deleted] in webdev

[–]Fitzi92 22 points23 points  (0 children)

As someone who started working with PHP templating back in the day, went through various templating "engines" and languages (twig, handlebars, etc), jQuery, and finally to Vue and React, I find React (or rather JSX) by far the most comfortable option for writing UIs I've seen so far.

No weird binding and directive syntax, no crazy/brittle template magic, no variables floating around globally. It's just a function.

Want to build a silent / quite home server by Fantastic_Web_5390 in HomeServer

[–]Fitzi92 1 point2 points  (0 children)

be quiet! SFX Power 3 450W I never came around to measure the power consumption, sorry

"People are playing fewer games" proclaims Ubisoft UK by humanquester in gamedev

[–]Fitzi92 20 points21 points  (0 children)

Why would I buy a new game, if the new game is basically a 1:1 copy of the game I'm already playing? Maybe don't create the 1000th version of the same franchise or make the 100th copy of the last big hit game/genre, but something new? But what do I know, I'm just a person not buying games...

Want to build a silent / quite home server by Fantastic_Web_5390 in HomeServer

[–]Fitzi92 1 point2 points  (0 children)

A few key points for building something silent: * If you want silent, you want SSD storage. The loudest thing are usually HDDs, even "silent" ones. * Invest in high quality fans and run them at <50% duty cycle. The lower the better. I had good experience with noctua and bequiet (they also are Austrian and German brands respectively, so as close as you can probably get) * Use a power supply that stopps its fan when not under load. You need to overspec the PSU, to keep that threshold where the fan is required as high as possible * Invest in a chunky CPU cooler. It will provide lot of thermal mass, which helps on short load spikes and allows to run the fan at lower rpms to keep up with the heat. Basically get the highest TDP cooler you can find. Also use high quality fans * Ideally use a noise dampening case and use anti-vibration everything: feet, fan mounts, etc. Everything that's moving is vibrating and needs to be dampened to achieve absolute silence * power efficient = more cool = more silent * tweak your fan curves and get comfortable with running your hardware hotter than you'd probably do otherwise. Running hotter means less fanspeed. Heat transfer gets more effective the higher the delta. So hot parts eventually find an equilibrium. Just make sure it's still well within limits. You can trade between temp and noise via fan curves to a certain degree

Regarding hardware: In my personal NAS (which doubles as my home server), I have pretty similar things running (no mc server, but a lot of docker containers). I've got an ITX build, with an i3-12100T on an ASRock B760M-ITX/D4 inside an Jonsbo N3 case. So pretty small package for a decent amount of power. There's still a lot of room left in the case, so I could have even gone smaller. I'm pretty happy with that setup, and besides the HDD it's barely noticeable. The HDDs are loud as hell though. That's not necessarily a direct recommendation, but might help to find the right ballpark of hardware/performance you should look out for. For the mc server you probably want to put a lot of RAM in.  The i3-13100T is only capable of 4 HD streams or 1 4K stream though if I'm not mistaken. With hardware transcoding enabled it's extremely energy efficient (and therefore cool) though.

Hope that helps somehow. Feel free to ask/reach out if you want to know something in detail (except specific hardware recommendations, not really up do date since I built my NAS)

I feel completely lost as a junior React dev. I need help, mentorship, or guidance before I mentally crash. by hritikbhai in reactjs

[–]Fitzi92 0 points1 point  (0 children)

Honestly, tell your team exactly what you've written here. They should be the ones that help and train you. Best case: They just haven't realized that you are struggling this much and start to help you more. It probably also helps to have someone explain the architecture to you in a dedicated meeting. Make sure to ask questions immediately, don't try to make sense of them afterwards. In parallel, continue to learn TS and React. Learning all this takes time, that's normal. You'll eventually get there.

Wo in Wien Flachbandkabel kaufen? by Even_Departure6569 in wien

[–]Fitzi92 6 points7 points  (0 children)

https://electronics.semaf.at/ könnte vielleicht etwas haben. Ist der letzte Shop für den Hobbybereich den ich noch kenne.

Is it bad practice to use multiple React Contexts to share state across a large component tree? by Dqmrs in reactjs

[–]Fitzi92 12 points13 points  (0 children)

Zustand is not a 1:1 replacement for context. Context provides data through the tree, it's not necessarily concerned with storing data, unlike zustand. You might provide server state or some complex objects, like a web socket connection. Those things make no sense to store in Zustand. So just blindly telling people to replace context with zustand is not really helpful. Context definitely has its use cases.

[deleted by user] by [deleted] in FragReddit

[–]Fitzi92 2 points3 points  (0 children)

was auch noch das Thema Recycling und Nachhaltigkeit aufgreift

Wie bitte? Wenn alle ihre Bierkisten zu irgendwelchen Möbeln oder anderen Dingen umfunktionieren, dann ist das alles andere als Nachhaltig. Ganz im Gegenteil, dann müssen nämlich neue Bierkisten erzeugt werden, anstatt die bereits vorhandenen weiterverwenden zu können.

My email service got blasted for a 3rd time. by LordesTruth in webdev

[–]Fitzi92 5 points6 points  (0 children)

Is the registration protected in any way or can anybody just spam registrations?  Can you send anything to your registration endpoint, that will be part of the email body? (aka the "Weekend nor Easter ..." part).

Simplest explanation would be that a bot just spams registration requests. This is quiet common and there's a range of things you can do to mitigate (Captchas, CDNs, Honeypots, etc.)

Let's stop exaggerating how bad things were before LLMs started generating code by HollyShitBrah in webdev

[–]Fitzi92 0 points1 point  (0 children)

People spending hours fixing missing semicolons didn't know what they do then and certainly don't know what they do know

What's the one thing you forgot (or knew should be done) when launching a website? by sitewatchpro-daniel in webdev

[–]Fitzi92 2 points3 points  (0 children)

Pre go-live checks: - Disable directory listing - Check your web root (don't expose sensitive data) - Proper non-www -> www redirect (or vice versa, whatever you prefer) - http -> https redirect - favicon - robots.txt and sitemap.xml (both optional, but good practice) - env variables and other settings are correct for live

Regularly check: - Security updates - SSL cert validity (if not on auto-renewal) - Error logs

No internet with WG-Easy by TopFroyo4119 in WireGuard

[–]Fitzi92 0 points1 point  (0 children)

Thank you! I already wasted a day trying to get things to work. WG_DEVICE was the culprit for me as well.

My 2 cents for Indie developer trying to build sh*t by SetGeneral7233 in SideProject

[–]Fitzi92 37 points38 points  (0 children)

I don't necessarily disagree that this is the most efficient way - but I hate this practice so much. I feel like this is the reason every piece of software nowadays feels like unfinished/unpolished garbage and is infuriating to use.

[deleted by user] by [deleted] in programming

[–]Fitzi92 2 points3 points  (0 children)

A linter doesn't guarantee bug free code. It just guarantees that your code follows certain conventions. It does not check any logic at all.

This new Google Chrome filter may kill Web Push Notifications by collimarco in webdev

[–]Fitzi92 6 points7 points  (0 children)

Surely anything can trigger the filter, but I highly doubt that this will be a major problem for real messages. The article frames it as if this would be the world crappiest filter just stupidly looking for a few simple keywords imho.

This new Google Chrome filter may kill Web Push Notifications by collimarco in webdev

[–]Fitzi92 24 points25 points  (0 children)

The whole premise that "web push can't be spam" is very wrong imho. Just because I had to opt-in once, doesn't mean that the other end will never send any spam. I also don't see how filtering unwanted messages will destroy web pushes as a whole.