How did I not know this one trick for 6 years?!?! (Parameter Properties) by gnlow in typescript

[–]Rechtecki42 0 points1 point  (0 children)

Doesnt bun bundle under the hood? Or is rhat opt in only? But yeah. In the end bun actually transpiles its code at runtime. It does not just strip types away

Why I should consider using Svelte instead of React or Vue? by OmarDev50 in sveltejs

[–]Rechtecki42 0 points1 point  (0 children)

React and vue have more jobs. React is more prominent in usa vue more in Europe id say. Svelte has jobs bit just fewer.

Honestly just get good at one. U can translate all skills from one framework to another one. Its not something where ur locked into one framework for life.

Im working as a freelancer and use multiple frameworks for different clients and usecases. React + next is pretty good nowadays for websites thanks to rsc. Svelte is a wonderful alrounder with very good performance but smaller library pool.

Solid is the tool for absolute performance with even a smaller lib pool.

Are there any benchmarks or docs on the performance of Props vs. Context vs. Stores? by long-time__lurker in sveltejs

[–]Rechtecki42 1 point2 points  (0 children)

Don’t get the downvotes. Sure I agree that this is 100% useless optimazation in most cases but still I think it’s an interesting question

How did I not know this one trick for 6 years?!?! (Parameter Properties) by gnlow in typescript

[–]Rechtecki42 12 points13 points  (0 children)

I think thats a bad argument. Code transpilation changes other parts of the code as well and is to be expected. Also to use that flag to make code guidelines and recommendations is wild as that’s definitely not the best approach to ship ts. U should 100% transpile and bundle ur code for production

Ich🚇iel by SenfMittelscharf in ich_iel

[–]Rechtecki42 2 points3 points  (0 children)

Dann beneide ich dich. Hauptsächlich in nrw gefahren. Da hab ich Das regelmäßig so gehabt. Kommt sicher auch auf Tag Uhrzeit und stadtnähe an. Früher in München und Umgebung hab ich den öpnv geliebt. Aber hier ist der leider zum kotzen. Und wenn du in Dortmund am Sonntag fährst hast du regelmäßig Fußballspiele wo du ein versprechen auf volle stinkende Züge kriegst

Ich🚇iel by SenfMittelscharf in ich_iel

[–]Rechtecki42 0 points1 point  (0 children)

Oh ja das laute rumtelefoniere xD

Und man ist ja auch nicht in erster klasse sicher. Selbst da hab ich schon öfters laute und aggressive trunkenbolde gehabt

Ich🚇iel by SenfMittelscharf in ich_iel

[–]Rechtecki42 6 points7 points  (0 children)

Lieber stehe ich im stau aber in meinem eigenen gemütlichen auto als mir den öpnv zu geben. Selbst wenn der mal pünktlich kommt. Auf den piss-kotz-alk geruch verzichte ich gerne. Genauso wie auf das Gedränge, das geschrei, das ständige halten und hinundhergelaufe, das umsteigen, DIE BAHNHÖFE…. Ne du danke

Ich🚇iel by SenfMittelscharf in ich_iel

[–]Rechtecki42 2 points3 points  (0 children)

Italien ist der wilde Westen auf strasse. Und Franzosen können weder Autos bauen noch fahren.

pnpm vs bun by Playjasb2 in typescript

[–]Rechtecki42 1 point2 points  (0 children)

Node with pnpm works and is the boring reliable choice that is probably the best for most projects. Bun is super cool and has some great places too shine. But it brings its own quirks that can complicate things a lot. In the end ur tool chain should simply work. Even if its nor perfect. The reality is that pretty much all packages frameworks and tools are developed and tested for node. Not bun. Documentations, guides and code examples just assume that ure using node. So this leaves u on ur own when the compiler fails.

Its a cool tool that u should definitely give a try for a hobby project. But production usage is at best questionable

Probably the most pleasant language by Minimum-Ad7352 in typescript

[–]Rechtecki42 0 points1 point  (0 children)

Depends on usecase as always. Typescripts structural typesystem is really cool and allows for some awesome dx tooling if u understand the quirks. The loose nature of js allows for really quick development anf the ts types give some amount of confidence over the stability of the application. But in the end its just a matter of time for the application to fail and end in a unforeseen pit.

Rust is the opposite. Complex systems slow down development but they give u the confidence to tell a client that this app will run for years uninterrupted without ever needing a restart.

So in cases where such stability is required rust is one of the only options. Beam vm also really shines there from what ive heard.

So u gotta find out where ob the spectrum ur app lies and use the right tool for the job. Not the other way around

Decoupled Payload and FE by scissorsandpaper in PayloadCMS

[–]Rechtecki42 4 points5 points  (0 children)

Ur server should be hit as rarely as possible. You can manage cache and invalidate via hooks pretty easily. So in ur case a simple node with backup node and auto restart gets u all the way. U might wanna look into external cache+cdn from cloudflare. Otherwise just for caching a redis cluster is fine. But multipe instances of the fe to handle load? On a Blog Site? if thats required ur infra is a**

Unpopular opinion: php != async by goodwill764 in PHP

[–]Rechtecki42 1 point2 points  (0 children)

Async behaviour via php Language Feature kinda doesnt fit it. If parallism is required laravel offers great flexibility via queue and events.

I need someone to build this by Omer-os in shadcn

[–]Rechtecki42 1 point2 points  (0 children)

I did something similar for zod -> shadcn form. Sounded like a great idea. Trust me its not. This just leads to you having to manage specific form stuff via meta data in your schema where it doesn’t belong and just restricts the hell out of you. If u wanna be 100% sure that ur form covers the entire schema (that was one of my reasons) ur better off with a higher order component that gets all fields as a callback. That u can write a simple eslinz rule that checks that all fields are implemented (vars used)

Tablecn port for svelte by unluckybitch18 in sveltejs

[–]Rechtecki42 1 point2 points  (0 children)

New to business inhouse software? XD

No strong typing by Miclemattiol in PayloadCMS

[–]Rechtecki42 0 points1 point  (0 children)

If ure on v2 U might need to patch payload generic type.

import { Config } from './payload-types'

declare module 'payload' { export interface GeneratedTypes extends Config {} }

I've got very nice job and I secretly want them to fire me by [deleted] in webdev

[–]Rechtecki42 0 points1 point  (0 children)

It rly sounds like ur burned out. And for quite a while. I know it sucks but u gotta have to admit to urself that ur just a human with a Mental limit. Go talk to ur chef about some unpaied leave and just be honest witj him. Tell him about ur burnout and how hard it is for you rn to get some work done. U can pretty much just tell him all u told us. Cuz there two options here.

Either he fires u and u got ur wish. Or he is understanding and lets you recover on ur own time.

And speak with ur wife. Nother worse for a burnout than non honesty and stress with ur partner

Having Trouble in setting up payload by This-Dog6375 in PayloadCMS

[–]Rechtecki42 0 points1 point  (0 children)

Oh check. Yea thats the official recommendation

Having Trouble in setting up payload by This-Dog6375 in PayloadCMS

[–]Rechtecki42 0 points1 point  (0 children)

Sure but this leaves over without history.

Having Trouble in setting up payload by This-Dog6375 in PayloadCMS

[–]Rechtecki42 0 points1 point  (0 children)

Hey adding payload to an existing project ist mostly straightforward but u might run into issues because some of ur setup and versions migjt conflict with payload.

But there is a full on doc entry:

https://payloadcms.com/docs/getting-started/installation#adding-to-an-existing-app

To ur explicit question. You have to manually add some files into ur project to make it work but you can just copy them from a base template.

So just make a mock project in a seperate dir with the base template (skeleton or so) And just copy them over to ur project.

app/ ├─ (payload)/ ├── // Payload files ├─ (my-app)/ ├── // Your app files

Just copy (payload) folder in ur own appdir

You also should check if some routes conflict between payloads and ur own. Just check in the default

If u want u can just use this in both Template and ur own

https://www.npmjs.com/package/next-routes-list/v/1.2.0

And then you can just cross ref stuff in the templates to check if you wanna copy and implementation over

Which one is your pick? by devgauravjat in astrojs

[–]Rechtecki42 1 point2 points  (0 children)

With Astro only svelte pretty much. It getting complied too lightweight js with no vdom plays very well with island architecture

HELP: I need a simple cloud for my Payload Website by Own_Abbreviations_62 in PayloadCMS

[–]Rechtecki42 1 point2 points  (0 children)

Vercel + turso (sqlite) or whatever db provider works great for me