Crell@phpc.social
Crell@phpc.social

Why is it the language-agnostic formats for defining data models are either

1. Grossly over-engineered for one purpose
2. Grossly over-verbose
3. Both

Where's my clean, easy syntax for defining data classes that can be generated into *simple* PHP, JS, Kotlin, etc? Where's my DTO-maker format?

#Programming #Rant #Protobuf #Openapi #jsonschema #PHP #Javascript

|
Embed
Progress spinner
artusamak@piaille.fr
artusamak@piaille.fr

@Crell apps.kde.org/fr/umbrello/ does something like that *ish*.

Generate your classes objects in diagram class graph and then you can generate the code related.

Not perfect but can be a starting point?

|
Embed
Progress spinner
Crell@phpc.social
Crell@phpc.social

@artusamak Maybe, but I would prefer an easy text format, not a GUI. Plus, I'm the only Linux user on the team. 🙂

|
Embed
Progress spinner
In reply to
oddevan
oddevan

@Crell basically an object definition language?

|
Embed
Progress spinner
iamnmm@mastodon.social
iamnmm@mastodon.social

@Crell As much as I dislike myself for saying this, but ... this sounds like something LLM's might actually be good at.

|
Embed
Progress spinner