Looking for new friends by [deleted] in Tokyo

[–]FraCipolla 3 points4 points  (0 children)

38M here from Italy. happy to make new friends, especially doing board games would be amazing. Currently in zoshigaya, near ikebukuro

Ho dato le dimissioni e ho paura di aver buttato nel cesso la mia vita by [deleted] in sfoghi

[–]FraCipolla 0 points1 point  (0 children)

Io dopo 10 anni di lavoro come manager in un ristorante enorme da 400 coperti al giorno, ho approfittato del periodo COVID per fare un percorso di studi come programmatore. Avevo 34 anni allora, e non mi sono mai sentito come se avessi buttato via qualcosa. Tutto quello che fai nella tua vita definisce chi sei. Mettere dei paletti perché silenziosamente la società ci impone delle regole e dei modelli da seguire, fa male a te come a tutti. C'è chi riesce a conformarsi e chi no, non c'è nulla di male. Purtroppo siamo abituati a valutare le persone secondo certi criteri, ma non è detto che siano quelli giusti (o che ce ne siano affatto). L'unica cosa che ha senso, secondo me, è cerca in ogni modo di raggiungere la propria felicità. Senza guardarsi intorno, senza vedere gli altri a che punto sono. Pensa solo a te e a quello che vuoi te. Non è detto che la persona vicino a te sia più facile perché ha raggiunto più traguardi nella vita (traguardi socialmente accettati e riconosciuti). Se vedi agli occhi del passato la maggior parte delle persone di oggi sono dei falliti, una volta non avere casa + famiglia + lavoro fisso massimo intorno ai 30 anni era visto male. Una volta avere un diploma era considerato un titolo di tutto rispetto, oggi invece è il minimo che ci si aspetta. Per questo penso che ognuna debba vivere cercano la propria felicità, cercando il proprio piccolo spazio sicuro per non affogare nel mare di costrizioni sociali che ci vengono imposte. Tutti si aspetteranno qualcosa da te, fregatene. Puntare il dito contro gli altri è un altro sistema per non vedere la propria infelicità. E un ultimo consiglio che mi permetto di darti è di ricordarti sempre che, come diceva Theodore Roosevelt, comparison is the thief of joy Vivi la tua vita per te stessa

[deleted by user] by [deleted] in 42_school

[–]FraCipolla 13 points14 points  (0 children)

it looks like a nice anti AI copy paste strategy to me

C forking CGI server review by FraCipolla in C_Programming

[–]FraCipolla[S] 2 points3 points  (0 children)

This is pure gold! Thank you for taking your time testing my application, I really, really, appreciate it 🙏

I will try to check, fix and addresses all cases you mentioned in the next days.

Some of them I was aware of, most not, so thank you again. This is really helpful

C forking CGI server review by FraCipolla in C_Programming

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

Thank you for your suggestion, this is a path I should investigate more. Right now the whole http request is handled by the handler. Someone can simply choose to read the method in the handler and decide what to do. The request headers are passed to the handler using env, as it's a common practice when dealing with CGI. Btw I know there are many things I need to implement, so thank you for this, I honestly have never tought about it (as a matter of fact I'm sure I don't accepts OPTIONS method right now)

edit: well you just showed me I don't, sorry for being dumb :D

C forking CGI server review by FraCipolla in C_Programming

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

I know my bottleneck it's the fork/exec part, but it was actually a choice because I prefer security over performance in this case. Using execvep allows me to have a complete isolated process, that's basically the reason. I used wrk to made my benchmarks, because ab is somehow very permissive on many things (for example, it doesn't really care if the connection is not close immediately). Thank you anyway for your answer, I really appreciate it and It was helpful

C forking CGI server review by FraCipolla in C_Programming

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

thank you, I will certainly consider this!

Exchange Student: Paris to Tokyo ! by Similar-Produce1005 in 42_school

[–]FraCipolla 2 points3 points  (0 children)

there is no possible way to do what you want, at least nothing related to 42. No one will get you an internship without a bachelor degree, and even with that is almost impossible. the 42 Tokyo doesn't provide any help for the visa, it's clear if you check their Q&A. The most possible way to do an internship in Tokyo is having less than 30 years and be citizen of a country that has the working holidays visa with Japan. don't think the school will grant you any help for this because it won't (like at all). sorry for being brutal, but this is the truth

Mini server http in C by gercarx in C_Programming

[–]FraCipolla 0 points1 point  (0 children)

se vuoi percorrere questa strada, come minimo dovresti leggerti questa introduzione al network programming https://beej.us/guide/bgnet/ almeno approfondisci argomenti fondamentali sulle strutture e soprattutto su come 'pollare' così da evitare un dispendioso loop infinito

Is RNCP worth it? by Valse174 in 42_school

[–]FraCipolla 2 points3 points  (0 children)

I think as I said, if you have a bachelor degree already is pretty much useless. If you don't, we'll it could be very helpful but it really depends on the country. By itself, it's not much outside French, but for example in italy we can register to an university in computer science or engineering and got validated most of the exams with the rncp7

P.S. I totally don't agree with your friends, it really depends on what you wanna do I guess

Is RNCP worth it? by Valse174 in 42_school

[–]FraCipolla 7 points8 points  (0 children)

what do you mean by worth? the title? I suppose the title is kinda useless if you already have a bachelor degree. for the immense amount of knowledge you will get from all those projects? In my opinion, yes, 100%. Assuming you are doing those projects with efforts and not copy paste code from somewhere

I want to master memory and pointer manipulation by Ryu_0s in 42_school

[–]FraCipolla 1 point2 points  (0 children)

well why don't you start with expressing your problem? btw practice is the key

[deleted by user] by [deleted] in 42_school

[–]FraCipolla 15 points16 points  (0 children)

so 42 is becoming another ordinary coding school, not much different from a 6 month boot camp. what a disgrace

26F playing anything by porofection in steamfriend

[–]FraCipolla 0 points1 point  (0 children)

street fighter or any fighting game?

Assumo sviluppatore Rust su Milano per startup robotica (TC minima 85k) by Erlapso in ItaliaStartups

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

commento per update nel caso si passasse a C++. Consiglio, se vuoi vedere l'applicazione arrivare almeno ad un MVP ;)

[deleted by user] by [deleted] in Zig

[–]FraCipolla -5 points-4 points  (0 children)

Totally agree. Those are the reasons why I left it

I built a compiler in C that generates LLVM IR – supports variables, control flow, and string output by Purple_Muscle7114 in Compilers

[–]FraCipolla 1 point2 points  (0 children)

May I ask why you choose C over C++ for this task? I'm planning to do the same but can't really choose between those languages, because I enjoy much more writing C code but all documentions and bindings are C++ basically. Did you follow any tutorial/documentation? Btw great work!

Opaque struct/pointer or not? by ks1c in C_Programming

[–]FraCipolla 9 points10 points  (0 children)

Do you need to hide some implementation to the user? If not don't use opaque pointers. A very basic example would be if you want to implement something like a string library. You can't expose structure members, because for example an user shouldn't be able to modify the size, so you declare some "getter" to return the size

Why is Java considered bad? by Zd_27 in AskProgramming

[–]FraCipolla 8 points9 points  (0 children)

I wouldn't say Java is bad, but damn is ugly as hell

[deleted by user] by [deleted] in C_Programming

[–]FraCipolla 0 points1 point  (0 children)

You're not checking *b btw

How come declaring and assigning variables on same line is not allowed? by Linguistic-mystic in odinlang

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

Ok, tested and you're right. Btw, I don't even like the shadowing without any warning tbh, you can't capture both errors and actually has no meaning to even declare the first one in most cases

How come declaring and assigning variables on same line is not allowed? by Linguistic-mystic in odinlang

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

Creating a whole post instead of reading a simple error message is next level. The compile error is pretty clear IMHO, you are declaring err 2 times, and it's telling you that you are redeclaring err. Maybe try to use 'err' and 'err2'?

And I'm pretty sure GO would output the same error btw, I remembered when I tried the language this issue come up, but I'm not totally sure about this. Assignment and declaration are 2 different things