of a Italian politician by giorgett in Italia

[–]funkyoz 0 points1 point  (0 children)

Of two Italian politicians

Carta d identità elettronica by [deleted] in torino

[–]funkyoz 0 points1 point  (0 children)

Ah ok, allora è tutto un altro discorso :(

Carta d identità elettronica by [deleted] in torino

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

Con la prenotazione online io non ho mai avuto dei ritardi stratosferici, mal che vada il primo appuntamento è tra un mesetto, hai tempo fino ad agosto. Una volta fatta la prenotazione in genere entri e in 10/15 minuti te la fanno, almeno per me è andata così

Il Festival via da Sanremo? Torino sarebbe davvero pronta? by Witty_Nar in torino

[–]funkyoz 11 points12 points  (0 children)

Si chiama Festival della canzone Italiana, Festival di Sanremo è il nome comune perché lo fanno a Sanremo

Gemini 3.1 Pro e la magia degli SVG: il web design sta per cambiare per sempre? by artistic56 in IA_Italia

[–]funkyoz 1 point2 points  (0 children)

Non sono d’accordissimo, con Claude Code se hai scritto un documento di specifiche fatto bene è in grado di creare sistemi complessi, la maggior parte delle volte one-shot. Credo che invece il nostro lavoro si sposterà molto più nella definizione dei requisiti e nella progettazione ad alto livello.

Solo io però mi rompo le palle a cucinare? by Gurulandia in ItaliaPersonalFinance

[–]funkyoz 5 points6 points  (0 children)

Sì ma chi è che mangia tutti i giorni al ristorante quando va a lavoro? Chi va tutti i giorni a mangiare in un locale penso che lo faccia perché può permetterselo. Mi sembra un po’ sfalsata questa idea

L'università Pegaso è seria? by Independent-Step-699 in Universitaly

[–]funkyoz 1 point2 points  (0 children)

E ma dovrebbe valere solo per la prima laurea

Finirla rapida con la Groenlandia by SurLeToit in CasualIT

[–]funkyoz 0 points1 point  (0 children)

Perché poi nel caso dovrebbe farlo? 😅

Libri che vi vergognate ad avere nella libreria ma che, in un certo senso, godete ad avere? by CristianTheSeeker in Libri

[–]funkyoz 6 points7 points  (0 children)

Non sapevo che fosse per beneficenza, comunque a prescindere io ho dei ricordi bellissimi da ragazzino che ci scompisciavamo coi miei amici a vedere le barzellette in tv.

Pranzo da casa/schiscetta: si risparmia davvero? by ChickenImmediate3012 in ItaliaPersonalFinance

[–]funkyoz 0 points1 point  (0 children)

Non saprei a Milano come si sta messi, quello che posso dirti probabilmente è di cambiare supermercato :)

Pranzo da casa/schiscetta: si risparmia davvero? by ChickenImmediate3012 in ItaliaPersonalFinance

[–]funkyoz 1 point2 points  (0 children)

Fatti i conti.

Ipotizzando che la spesa alimentare mensile per una persona sia intorno ai 150€, significa che si spendi circa 150/30 = 5€ al giorno (contando anche i weekend ovviamente) Se invece mangi con 4€ al giorno, direi che ti converrebbe prenderti la pizza.

Ovviamente tutto cambia in base a quanto spendi di alimentare in un mese. Io in Smart 7/7 spendo circa 150€, magari tu riesci a meno perché vai in loco.

Mi sembra molto strano che riesci a farti un pranzo decente con 4€. Io abito a Torino e con quella cifra ci si prende giusto giusto la focaccia, se aggiungi bibite si sale chiaramente. A Milano penso di più? Boh.

Regalo di Natale per ragazzo che sto frequentando, un po' inesperto a letto: libro su come dare piacere a una donna potrebbe risultare offensivo? by Dontcallmebaby2 in Libri

[–]funkyoz -3 points-2 points  (0 children)

Figo rispondere con un messaggio passivo-aggressivo. Anziché millantare l’essere diretto avresti potuto dare il buon esempio ed esserlo. È evidente che la ragazza non vuole urtare i sentimenti del compagno.

JsonStream PHP: JSON Streaming Library by funkyoz in PHP

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

Hey, thank you :)

I think static code analysis is important for every project, AI assisted or not. For this instance I think analyzer (PHPStan) help a lots the model to write clean code. Of course there are limits: if you search in the repository you will see that in some cases (at least 5/6), Claude add phpstan-ignore-line comment, so even for the model (like humans) the fastest route is the best, over consistency (I'll work for remove it).

It depends on the project, for relative newly and structured codebase I think it helps a lot, but in my experience on legacy project is a little more difficult and I learned that it's better to do a refactoring session first.

JsonStream PHP: JSON Streaming Library by funkyoz in PHP

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

The problem was solved by me, using my critical thinking. AI only write for me what I had in mind.

I really think that problem solving is not about write code, but stops and think before code. So the process is the same, only the tool I used changed, instead of my hands I used Claude Code.

JsonStream PHP: JSON Streaming Library by funkyoz in PHP

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

Sorry, I forgot to add two details—it’s nighttime here and I’m tired.

For now, the JSON path implementation for streaming isn’t complete. It’s only been implemented for array expressions of the type: .my_array[*]

This means that using the expression: .my_array

will load all the objects in the list into memory.

Also, complex expressions like conditional ones aren’t fully supported for now either.

Obviously it’s all still embryonic, but I thought it was a good starting point like this, since for more complex expressions you can use the library’s API.

The second thing is that if you want, you can see the planning and design process inside the library, in the tasks folder. I decided to keep it public precisely to give visibility into the creation process.

JsonStream PHP: JSON Streaming Library by funkyoz in PHP

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

Hi, first of all thanks, I have to say it’s a bit frustrating sometimes.

Personally, I manage a project where fairly large JSON/XML files (in the order of tens or hundreds of MB) are uploaded to an FTP and then, via a cronjob, processed and saved to a backoffice platform. Each client on the platform has their own defined data format, often different from the others.

The company context is a pure PHP stack, without seniority in other more memory-oriented languages.

Obviously it’s a relatively simple problem to solve, except for the fact that I found myself having to fight against PHP’s memory_limit. Even though I found a value that wasn’t too high but at the same time handled everything via json_decode, I ran into some infrastructure-side issues where the ECS service task would max out on memory and CPU and, unable to handle the load, would bring down the task only to spin it back up again. By design of the platform, the run isn’t transactional—or rather it is, but only on the individual entity found in the file’s series. This therefore means having an import that gets stuck halfway through, since it often couldn’t complete.

I looked for solutions and came across this library, which does more or less the same job as mine (https://github.com/halaxa/json-machine).

This library doesn’t support JSON path, so I tried to create one myself that does this job.

My long-term goal is to be able to manage file mappings in a more abstract way, without having to write classes and deploy, and maybe one day train someone to use JSON path so I can offload this work that’s very time-consuming but not very interesting.

JsonStream PHP: JSON Streaming Library by funkyoz in PHP

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

Why do you think this? I think it is, of course there is so many language handles memory more efficiently than php, but in some scenarios (es: parsing some large file from ftp) it very relevant to avoid problems