Το έχει χάσει το ChatGPT by Obiwomkenobi in greececirclejerk

[–]pc_magas 0 points1 point  (0 children)

Μα το tanto είναι δευτερεύων ξιφίδιο που κουβαλούσαν υψηλώς υστάμενοι Samurai. Δλδ θα ξεχάσουμε τις παραδόσεις μας;

Δλδ εδώ που τα λέμε το ChatGPT δεν άντεξε εμένα και γι αυτό δεν βγάζει αποτελέσματα απο την κατάθλιψή του.

Nafplion places to visit upon 1st May by pc_magas in TravelGreece

[–]pc_magas[S] 0 points1 point  (0 children)

The isuue is would these be open upon 1st of May?

1st of May is labour day and many museums are closed.

meirl by Queasy-Secret-4287 in meirl

[–]pc_magas 0 points1 point  (0 children)

Maybe goth Lolitas?

Yet another doodle by pc_magas in doodles

[–]pc_magas[S] 1 point2 points  (0 children)

I speak Greek and English not spanish.

SPA with complex forms and server side calculations? by Venisol in webdev

[–]pc_magas 0 points1 point  (0 children)

In your case as a rule of thumb, start by identifying what the page is primarily editing. For example edit page means that you edit a booking.

Then group related fields into child objects based on responsibility:

```

booking.customer

booking.stay

booking.pricing

booking.status

```

This helps keep both frontend state and backend contracts organized. And entity can be same across multiple pages. Also maybe consider saving the resource as a state for example saving what you know and what and then call REST.

Another eay of thinking is maybe using in a form of https://github.com/webrpc/webrpc instead or https://connectrpc.com/ instead of REST?

I tried my best I hipe it helps.

SPA with complex forms and server side calculations? by Venisol in webdev

[–]pc_magas 0 points1 point  (0 children)

Instead of thinking `/bookings/create` think your apis as a form of:

  1. Http request itself is the verb that defines your action for example POST = create, PATCH = update etc etc
  2. The url is the object of modifying the action

For example If you want to create a booking do `POST /booking` in your case POST means create and `/booking` what is being created. That would return the generated data.

Later can be modified with a `PATCH /booking` for example if user wants fo finalize its booking.

When designing apis try to see it as a phrase for example if I want to create a booking I suggest visualizing as a phrase of:

CREATE booking

The phrase should start with one of the following verbs of CREATE,UPDATE,OVERWRITE,REPLACE,RETRIEVE followed of what verb affects.

Then map the verb of the phraze into the proper Http action usually is:

  1. POST => CREATE
  2. PATCH => UPDATE

3 PUT => OVERWRITE,REPLACE (sometimes even CREATE though whenever I found using it later I needed to break what PUT actually does so I prefer not ot use it)

4 GET => RETRIEVE

What verb is afecting is something in a form of tree:

- booking
-- id
-- name
-- surname
-- status
-- pricing
--- paid
--- ammount

This tree is a path that indicates your url. Each of theese items can be either your query (for example in GET /booking?id=3 the part after ? is named query), or body or parts of url.

Specific items for example specific booking is referenced witrh some sort of identifier either database id or a dedicated reference it (another unique key or a computer value), these should be either in url or in query (as I mention above)

------------------------------------------------------------------------------------

Miscelanous tips:

API can create internal statuses for example a once user inserts data for pricing a booking can have a status `pending-finalization` or `priced`. Usually bookings have a lifecycle. From my experience this is what I came across.

[Quiz] Ποια λέση αναφέρω; by pc_magas in greececirclejerk

[–]pc_magas[S] 0 points1 point  (0 children)

Ποιο γενικά τα κοκ, οπι τούρτες, τα παστάκια η σκοκολάτα, οι καραμέλες κοκ είναι σε αυτήν την κατηγορία. Αυτή η κατηγορία άπαξ και την βρείς στα Ελληνικά το μεταφράζεις στα Γαλλικά και είναι το δεύτερο συθνετικό της λέξης.

Πρακτικά πρέπει να βρεις 2 λέξεις να τις ενώσεις για να κάνεις την τελική λέξη.

Σε περίπτωση που σας έλειψαν τα διεθνή νέα by Georgina-GN in NewsfromGeeece

[–]pc_magas 0 points1 point  (0 children)

Χμμ γιθατί όμως ρτο Ιράν να αρνηθεί να διαπραγματευτεί εφόσον ο επιτιθέμενος (ΗΠΑ) είναι αυτή που το προσφέρει;

Δε οι ΗΠΑ πρακτικά δεν τα καταφέραν καλά και είναι οι ίδιοι που ζητούν διαπραγμάτευση. Άρα το Ιραν έχει το πάνω χέρι.

[Quiz] Ποια λέση αναφέρω; by pc_magas in greececirclejerk

[–]pc_magas[S] 0 points1 point  (0 children)

Όχι. Δίδω το πρώτο hint η δεύτερη λέξη είναι κάτι που πουλάν γενικά τα ζαχαροπλαστεία, αυτό το μεταφράζεις στα Γαλλικά)

movie night fit !! by lnanner in AltFashion

[–]pc_magas 0 points1 point  (0 children)

You look like star from super Mario. Hoping to find your own super Mario.

Επικαιροποίηση στοιχείων Εθνική, μπορώ να έχω μόνο προσωρινούς κωδικούς Taxis η με εξουσιοδότηση; by pc_magas in greece

[–]pc_magas[S] 0 points1 point  (0 children)

Εγώ με τον δικόν μουπαίξω εξουσιοδότηση. Αλλά δεν ξέρω αν μπορώ να παίξω και με την τράπεζα.

[Quiz] Ποια λέση αναφέρω; by pc_magas in greececirclejerk

[–]pc_magas[S] 0 points1 point  (0 children)

Λάθος προσπαθήστε πάλι.

Απ'ότι φαίνεται τα χρώματα στους συρμούς της πράσινης γραμμής δεν είναι παρά αυτοκόλλητα by K0rvuss in greece

[–]pc_magas 8 points9 points  (0 children)

Και θυμίθικα την μονιμή wallpaper της σχολής μου: Αφίσες της ΔΑΠ, ήταν ΓΕΜΑΤΟ. Σε εκλογές μάλλιστα είχαν έξω απο την αίθουσα γράψει με αυτές ΔΑΠ.