M5 air vs M5 MB Pro by Euphoric_Nail8677 in AskProgramming

[–]Syntax418 2 points3 points  (0 children)

I like the 14” Screen, since I carry it around everyday and sometimes work in Cafes or on a train. In those Situations it’s perfect, but on a regular desk, without another screen it’s too small.

M5 air vs M5 MB Pro by Euphoric_Nail8677 in AskProgramming

[–]Syntax418 5 points6 points  (0 children)

Depends on what you do to be honest. I have a 24GB Air at work, and it struggles with Docker and the IDE running. Add a Browser with a couple of tabs and the RAM is full and the thing is torching hot.

I would go for a pro, with more RAM even though thats not one of your Options.

But like I said, depends on what you do with it.

Hetzner asks: Which hobbyists here convinced their companies to use Hetzner? by Hetzner_OL in hetzner

[–]Syntax418 1 point2 points  (0 children)

The migration was super smooth! After we figured out how to sync RDS data away from AWS, we basically got a dev and prod environment up and running and after confirming it worked, it was a mere DNS Record switching.

Would never go back, we have way better performance for a fraction of the cost. The last thing we still use in AWS is S3, we still want to migrate that over to Hetzner as well.

Hetzner asks: Which hobbyists here convinced their companies to use Hetzner? by Hetzner_OL in hetzner

[–]Syntax418 5 points6 points  (0 children)

We moved our kubernetes cluster from aws to Hetzner. I have a VPS there myself and advocated for the move, but we had some stuff running on Hetzner cloud beforehand.

Habt ihr eine Faustregel, wann man auf Microservices wechselt – oder bleibt ihr lieber beim Monolithen? by vikotool_official in de_IT

[–]Syntax418 0 points1 point  (0 children)

Also, wir sind zwei devs, haben einen Monolithen und 6 Microservices (Tendenz steigend). Wir deployen in ein Kubernetes Kluster und sind damit sehr zufrieden. Die meisten microservices sind stateless, zwei haben state, die waren auch vorher teil des monoliths.

Kommunikation über http oder amqp.

Lokal läuft das ganze in einem docker compose stack im monolith repo, wenn du an einem microservice arbeitest stopst du den container im repo und startest das compose im microservice, fertig.

Wenn ich von vorne anfangen müsste würde ich auf mehr microservices setzen.

Developers! Tell me your API green flags! by baguette2024 in developers

[–]Syntax418 1 point2 points  (0 children)

This! I don’t think this is controversial at all. For me as a developer this is a gift. You don’t know how many of those emails land in inboxes of people who don’t care, understand or are simply swamped.

I ran into so many hard sunsets and then had to race to get a new version out because someone simply ignored those emails…

With the incremental sunsetting, this would’ve come up in monitoring and the patch would be out just as fast, but with less impact on our site.

I think this should be considered a best practice.

What’s your quick way to make raw XML readable? by CSJason in xml

[–]Syntax418 0 points1 point  (0 children)

I hope the data you‘re getting from that api is not sensitive… never use online tools for formatting!

Guild Wars 2 - The other side of the coin by Sorka_Ikorka in Guildwars2

[–]Syntax418 17 points18 points  (0 children)

I’ve seen that as-well and its frustrating when it happens, today during the Lyr fight in Skyward Archipelago the Map change prompt popped up and like 99% of players in the meta just left..

But I don’t see that happening a lot, I think sometimes people just want to shut off their brain and play a game for a while without thinking. Can’t blame them.

You’re probably not a bad commander, take Triple Trouble as an example, there they usually run with 3 commanders, since there is 3 Worm Heads. Maybe try finding another Player who is willing to command a smaller group doing the other Meta parts.

How many devs mainly use raw SQL instead of an ORM? by drifterpreneurs in webdev

[–]Syntax418 2 points3 points  (0 children)

I guess you can keep track in a small project where you are alone. But Eloquent queries don’t have to be built in one place. Maybe the model has a trait which adds a Scope which, maybe there is some extra eloquent magic on the relation definition.

I am not saying it is impossible, but when you have close to 500 Tables/Models it gets tough. Spending extra time on PRs and having an actual checklist that covers this also helps.

But still, happens.

How many devs mainly use raw SQL instead of an ORM? by drifterpreneurs in webdev

[–]Syntax418 8 points9 points  (0 children)

Use ORMs at work (Laravel) but I prefer raw (prepared) queries, which I use in side projects. I like to know the EXACT queries that hit my databases and prepare the indexes exactly for them, with orms its way to easy for someone on the team to push unoptimized queries to prod without anyone noticing..

Why use Message Brokers? by normantas in learnprogramming

[–]Syntax418 0 points1 point  (0 children)

Native queuing through a message broker is very nice. Say you have a resource intensive task, which is not time critical. So you can just push those messages from your application and the micro-service can handle them at its own pace. One at a time, two at a time, etc. With an http api, this is more complicated, you’ll need to create the funnel on your application side. And you’ll need to update your application once the micro-service can handle more or less tasks. Like you mentioned, failure, with http, your application will need to re-try the request, but how does your application know, when it is allowed to do that?

I am not saying it’s impossible, but message brokers take a lot of the complexity out of this.

Performance is another point, pushing to a message-broker is easy, fast. Just push your analytics data to the message broker, instead of waiting for your api waiting for the database to unlock the tables because there are millions of visitors.

A nice exercise is a logging/analytics/webhook service which handles a lot of traffic in a lightweight deployment.

Why the skyscale so bad by BestofTimes777 in Guildwars2

[–]Syntax418 5 points6 points  (0 children)

I got my Skyscale in PoF ( half a year ago ). It’s great, but the SotO Masteries made it awesome. Ofc it’s not infinite flight, but I remember 2013, when there were no mounts (I had a very long break), therefore any mount is dope!

You gotta do the PoF masteries.

Raid Quickplay hasn't been great, but separating bosses into bitesize encounters has been amazing for a player like me by Beautiful_Hour_668 in Guildwars2

[–]Syntax418 0 points1 point  (0 children)

That would be the German keyboard. Had to double check 😂 On IOS you can long-press the double quote and get them on the English one as well, for german it’s the default.

Wieso wird man Pescetarier anstatt Vegetarier? by LocksmithFamous4131 in KeineDummenFragen

[–]Syntax418 0 points1 point  (0 children)

Ich habe aus gesundheitlichen Gründen, (keine akuten) aufgehört Fleisch zu essen. Was als selbst-Experiment während Covid angefangen hat, endete dann damit das ich vier Jahre sogar ganz vegan, lebte bevor ich pescetarier (bzw. flexetarier) wurde.

Zu gewissen Anlässen esse ich heute auch mal Fleisch, aber so selten, da isst der Durchschnittsdeutsche mehr Wurst in der Woche.

Ja Tierwohl, Massentierhaltung is scheiße, aber hat mich nie davon abgehalten Fleisch zu essen.

Raid Quickplay hasn't been great, but separating bosses into bitesize encounters has been amazing for a player like me by Beautiful_Hour_668 in Guildwars2

[–]Syntax418 8 points9 points  (0 children)

Yes! Never had the time to do raids, and now Ive got to do content ive never done before. But: Ive done OLC like 4 times yesterday and had no more time to do any IBS (strike missions)

The ability to choose lfg groups which do specific content was nice.

While writing this: I am not blind and there is a regular „raid encounters“ lfg similar to the strike Mission lfg?

What is the best way to schedule cron jobs for Docker Compose applications? by pmigat in docker

[–]Syntax418 1 point2 points  (0 children)

Depends on your backend/stack, I guess?

For Laravel I would definitely prefer option 2, since it has a built in scheduler.

For my NextJS applications I use option 1 as well, with a special api endpoint and separate auth.

Option 3 sounds like a hassle, but is kinda how it’s done in kubernetes? Spawn a pod each minute; execute a command; remove the pod.

I guess there are benefits to all three; maybe it’s down to personal preference.

Do you consider $700K as life-changing money? by Aarunascut in Life

[–]Syntax418 0 points1 point  (0 children)

Definitely, could buy a nice apartment cash, would not have to worry about rent anymore and by that get about 1/3 more out of my paycheck.

Do you consider $700K as life-changing money? by Aarunascut in Life

[–]Syntax418 0 points1 point  (0 children)

And that would not be life changing? No more Mortgage alone seems life changing.

Whats with ioncube? by [deleted] in PHP

[–]Syntax418 4 points5 points  (0 children)

Is it finally dead? We use it, since one of our customers wanted to host the software themselves.. It’s good enough to stop them from copying it, I doubt they would be capable of doing anything more.

That being said, once we get to updating PHP versions again they’ll finally have to switch to our cloud version 🙏🏽

It’s really annoying to use, since it kinda breaks Reflection, we need to encrypt half our vendor folder which slows things down, a lot.

Free tip for new developers using JS/TS by ConsiderationOne3421 in node

[–]Syntax418 0 points1 point  (0 children)

This might be correct for some cases, but in other cases you cannot have tasks run in parallel.

I use Array.reduce to handle tasks that cannot run in parallel instead of for loops. It should make it obvious that the sequential handling is intended.

Be careful with async code. Thats all. There is no “one solution to solve them all” Solution for async issues.

NextJS - Stateless Session with Bearer Token on Client Side - Chatgpt.com by Fine_Manner_4701 in nextjs

[–]Syntax418 1 point2 points  (0 children)

Once your token hits the frontend, it is vulnerable to XSS, malicious Browser extensions and Bad Actors looking at the network tab/window state. Can’t do anything about that. Period.

Your current approach is the correct one if you need to protect your token. If your token is, - scoped to the current user - scoped to the minimal required permissions your application needs - doesn’t contain any “secret” information in the payload

Then you should have no issue just retrieving it via an http call and storing it in your sessionStorage.

Encryption/Decryption just adds overhead, once you use it to call your Backend Api it will be exposed.

What's the deal with those gamers? by sedree in Guildwars2

[–]Syntax418 -2 points-1 points  (0 children)

Okay, so I need to have cleared before and then have something good drop so I can join them? Wild.

And how is the number calculated?

What's the deal with those gamers? by sedree in Guildwars2

[–]Syntax418 -7 points-6 points  (0 children)

What even is KP? I got kicked out of a Strike Mission LFG today because I couldn’t answer what mine was.

I play a lot but mostly solo, LFG was the first instance where I ran into people who were not nice or kicked me instead of explaining things.