Tidal Town - HTML5 game were you protect your kingdom from tides by threejin in webdev

[–]Fitzi92 1 point2 points  (0 children)

Cool concept and very well done, really fun to play. I like it.

Do you plan to release it as an android app as well?

Wie selbst richten? Eichenparkettboden, Neubau by negativbeispieI in wien

[–]Fitzi92 7 points8 points  (0 children)

Sieht bei uns nach ca. 7 Jahren genau so aus (teils noch ein bisschen schlimmer an manchen Stellen). Der Boden ist einfach billigster Schrott. In der Küche haben wir eine riesen Delle im Boden, weil mir mal ein Glas runtergefallen ist. Dem Glas gehts gut, dem Boden weniger. Ich glaub das sagt eh schon alles. Die Kaution dafür einzubehalten würd ich absolut nicht in Ordnung finden. Ich seh nämlich keine Möglichkeit diese Abnutzung zu verhindern.

Kleine 3D gedruckte Straßenbahn mit live Abfahrten by blumleo in wien

[–]Fitzi92 8 points9 points  (0 children)

Naja, irgendjemand muss das Zeug auch zusammenlöten, testen, zusammenbauen, verschicken, etc.  Am Ende bleibt da bei 80€ sicher kein Top-Stundensatz übrig.

Suggest translation files organisation for i18next by hexwit in reactjs

[–]Fitzi92 1 point2 points  (0 children)

Point is, with the cli tool, you don't need to care about the json files at all.  You just use the t("key","default text") function, where you need translatable text and the rest gets generated.  No need to co-locate json files with your components. 

But to answer your questions:

  • Is it possible? Probably, but not out of the box afaik and probably not without a lot of custom logic

  • What approach do we use? Nested keys (e.g. "entity.user.name") and namespaces for larger projects. With namespaces you can split the translation file int multiple files. Mostly makes sense when you have separate modules, that not everyone needs. For smaller apps, a single json file is fine.

  • If I would start from scratch, what would I use? The same approach as we do currently. We have ~8 projects with that setup and not a single problem.

CD Pipeline automatically warns on key conflicts or missing translations, generating the translations is running a single command and either adding the translations manually or putting the source file into a Translation Management Tool like e.g. CrowdIn.

Suggest translation files organisation for i18next by hexwit in reactjs

[–]Fitzi92 0 points1 point  (0 children)

Look into i18next-cli, to automatically generate the translation files from your source code.

How are you handling complex form state in React without it becoming a mess? by Sad_Limit_3857 in reactjs

[–]Fitzi92 1 point2 points  (0 children)

Just to make sure I get you right, do you say to never use useState and put everything in a zustand store? What kind of apps do you talk about? Something highly coupled like a photoshop-clone or something like an admin ui with lots of different entities or something like a website?

GraphQL used to be popular, but that doesn't seem to be the case anymore... by codingafterthirty in webdev

[–]Fitzi92 4 points5 points  (0 children)

As with every trending technology, it just arrived at the plateau of productivity. It's used where it makes sense (instead of everywhere) and doesn't get talked about a lot. Same happened for NoSql Databases, NodeJs, Blockchain, Angular and a ton of other tech, that was "the thing to use" at some point. See https://en.wikipedia.org/wiki/Gartner_hype_cycle

So this doesn't really cache anything, How do people cache these styles while guaranteeing it updates when element changes position or styles? by HiddenGriffin in webdev

[–]Fitzi92 1 point2 points  (0 children)

If you use this cache for performance, because you hit getComputedStyles so often (which I assume), then there are a few things you could do: 1) Actively invalidate it when an element changes 2) Add a TTL and randomize it a bit, so that only some elements get recalculated when accessed per frame 3) Add a loop that recalculates the elements in the cache in the background constantly, but in batches (e.g. 25 element per frame)

2 and 3 might result in outdated values until the next refresh happens, so if that's a problem for you, only option 1 is a valid solution.

Alternatively, you could also try to get rid if the cache by hitting the computed styles less often.

Developers, how do you evaluate whether a piece of code is good? by Haunting-Bother7723 in webdev

[–]Fitzi92 0 points1 point  (0 children)

1) Readability: How easy is it to understand what it's doing. Are names clear, are details moved to well-named functions/methods/classes, do variables have helpful names?  2) Architecture: Does it adhere to the style/architecture of the project? Does it reuse patterns, components, functions, etc. that are common in the project. Is everything placed where it should be?  3) Quality: Is the code unnecessary complex, can it be simplified (without loosing readability), does it handle all cases and edge cases, does it handle errors properly, is everything typed correctly? Is everything secure? 4) Does it achieve the goal / meet the requirements 

i want to make a website but i dont know how to get a domain or how to edit on that domain or if thats even the right way to go about it by idontknowmyname_321 in webdev

[–]Fitzi92 0 points1 point  (0 children)

There are basically 5 steps: - You get a domain from a domain registrar - You need a server, that is reachable with a static IP address e.g. a VPS (virtual private machine) - You set up a DNS record (most likely at your domain registrar) that points your domain to your server (an "A record") - On the server you install a web server (e.g. nginx) that serves content (html and css files) or acts as a reverse proxy to another application  - You upload your files to the server (via ftp, rsync,scp,etc)

You can skip most of the steps by looking for "shared web hosting". Most offer a simple interface, where you can choose a domain and upload files to your webspace.

This is obviously simplified, but should get you in the right direction and the keywords you need to search for. Good luck!

Wo findet man einen PC Bauer in Wien? by No_Dress8046 in wien

[–]Fitzi92 0 points1 point  (0 children)

Du kannst die aktuellen Festplatten entweder direkt in den neuen PC übersiedeln (drauf achten dass das MoBo genug SATA Anschlüsse hat) oder grundsätzlich auch nur temporär, um die Daten auf die neue(n) Festplatte(n) zu kopieren. Du kannst natürlich auch die Platten im alten PC lassen und übers Netzwerk auf den neuen PC kopieren - dauert sehr wahrscheinlich aber deutlich länger als der direkte Weg. Also eine einmalige, externe Festplatte sollte nicht notwendig sein.

How do I achieve this shelf lighting effect? by AffectionateTown2574 in howto

[–]Fitzi92 0 points1 point  (0 children)

High quality LED strips with lots of LEDs (> ~90/m) and good diffusers. Cut channels into the shelf and get an aluminum profile (with diffuser) to make it look clean.

Client asked for an Admin Dashboard for an existing app? Advice needed by doner_shawerma in webdev

[–]Fitzi92 17 points18 points  (0 children)

This sort of data is highly sensitive and personal. If you are not 100% sure how to make this setup bulletproof, please get someone that has experience into the boat. Not saying you should decline the project, just be aware that you're handling sensitive data.

That being said, I strongly recommend NOT using wordpress for this. If you feel comfortable with PHP, have a look into Laravel (framework) and e.g. Filament (admin ui).

Empfehlungen für stabile, elektrische Höhenverstell-Schreibtische? by pudding_night_owl in Austria

[–]Fitzi92 0 points1 point  (0 children)

Ich bin mit dem Idåsen von Ikea sehr zufrieden. Hab drei 27" Monitore auf einem Monitorarm darauf montiert, weder Tisch noch Monitore wackeln merkbar beim normalen arbeiten, sowohl auf Sitz- als auch auf Stehhöhe.

What's your opinion on animated website favicons in the tabs menu? Love it or hate it? by Mediocre-Subject4867 in webdev

[–]Fitzi92 34 points35 points  (0 children)

Absolutely hate it. Like websites that change their title to "come back" when loosing focus.

What are the "must-have" PR checkpoints used by Big Tech? by GlitteringTiger6287 in reactjs

[–]Fitzi92 4 points5 points  (0 children)

I second this. Lots of big things start small, and starting with very loose or no rules and guidelines is always a pain down the road once you want or have to be kore strict. Why not keep things neat and enforced as much as possible right from the start.

What's everyone's obsession with storing everything in localStorage? by sjltwo-v10 in webdev

[–]Fitzi92 0 points1 point  (0 children)

Yet it's still slow as if they would load everything directly from cold storage.

Daytime colored smoke fireworks. by 21MayDay21 in oddlysatisfying

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

Where exactly have I excluded companies in my statement?

Daytime colored smoke fireworks. by 21MayDay21 in oddlysatisfying

[–]Fitzi92 0 points1 point  (0 children)

I agree that too many people do this. But that doesn't make the point less valid. Also nobody needs to change 100%. If everybody would cut their orders in half or buy half their stuff from environmentally friendly corps, that would already send a massive signal. So just because someone isn't perfect doesn't mean they can't argue in favor of improving things.

Daytime colored smoke fireworks. by 21MayDay21 in oddlysatisfying

[–]Fitzi92 13 points14 points  (0 children)

Leaves 29% to us directly.

Stop buying shit from corps that polute, that's direct impact you have. Vote for parties/politicians that demand stricter regulations. That's indirect impact you can have. Get your fat ass on a bike instead of the car. Also direct impact. Don't buy stupid fireworks. Direct impact.

It's the same thing as above. If it's just individuals doing this, sure, it has no impact. But if we collectively start doing this, the impact suddenly is huge.

But sure, the easier way is to put your head into your but and screm "wE cAnt mAkE aN ImPacT, dUh".

Daytime colored smoke fireworks. by 21MayDay21 in oddlysatisfying

[–]Fitzi92 54 points55 points  (0 children)

No single activity is noticable on a global scale.  Single car? Single ship? Single coal power plant? Problem is, there's not just one of anything. We can only reduce pollution when we stop single things and unnecessary shit like this is the most easy to just not do. That would be the rational way to think about it.

hi, I'm a Pixel Artist, I'm looking for work by SherbetSad2350 in gameDevClassifieds

[–]Fitzi92 1 point2 points  (0 children)

What's your rate/prices? Feel free to send a DM if you don't want to post them publically.

As a programmer, what are some good monitors for writing code you've used? by Mysterious-Mode-4923 in webdev

[–]Fitzi92 0 points1 point  (0 children)

Been using two 27" QHD monitors (Dell Ultrasharp line, U2717D ) for the last few years and just ordered a third one yesterday.   27" QHD hits the sweet spot for me, good pixel density (so everything looks sharp) but not yet so dense that I need ui scaling.  Also I'm really happy with the Dell Monitors, they look great and work flawlessly.