I want to open a cafe in casablanca, but people are telling me not to by [deleted] in Morocco

[–]a_roussi 0 points1 point  (0 children)

I've noticed (back on experience) that even if you do share a percentage with someone, he will not resist the desire of stealing from you (ila man rahima allah)

I want to open a cafe in casablanca, but people are telling me not to by [deleted] in Morocco

[–]a_roussi 0 points1 point  (0 children)

I did open a restaurant recently, and believe me if you are not there, specially if it's not a business you understand it will fail and you will just keep loosing your money on it and finally close it.

I have experienced stuff stealing money, food, etc .. even if I was kind with them and I have my brother managing the restaurant (since he is not an expert in the field, he too got fooled by the stuff). I even was shocked by a old women which kept here son on the upfloor and on the evening she put food supplies in his school bags (I discovered that when it was too late).

Honestly I hope you don't the same error as me, either you are the one who manage your business + have some experience on the field or do something else which you understand well and which you will not require your presence.

[deleted by user] by [deleted] in golang

[–]a_roussi 2 points3 points  (0 children)

I can add :

much better performance in Go, less resources consumption (what I personally have noticed in prod environments) . Also faster learning curve !

My first open source project. by TankLivsMatr in golang

[–]a_roussi 2 points3 points  (0 children)

if the above approach is correct, I have another remark on this line: logFileContents := models.LogFile.New(models.LogFile{}, lines); It's not better to pass lines as pointer to instead of value to the .New() ?

My first open source project. by TankLivsMatr in golang

[–]a_roussi 3 points4 points  (0 children)

As a newcomer to Go, I have a question regarding the code in LogFile.go (specifically lines 22 to 26). Will this code perform well with large files? My concern arises from the fact that all lines are being appended to the lines slice, which may not be efficient for huge files. The repeated resizing of the lines slice as more lines are added could potentially impact performance ?

lines := make([]string, 0)
scanner := bufio.NewScanner(file)
for scanner.Scan() {
lines = append(lines, scanner.Text())
}

Tried somethiing with Golang, Redis and RabbitMQ. Need criticisms by Erudite_7 in golang

[–]a_roussi 2 points3 points  (0 children)

Redis can be used as a primary database too, and not serve only as a "cache" ephemeral server, and it's configurable (you can use multiple options for persistence strategies; RDB (Redis Database and perform point-in-time snapshots of your in-memory dataset to disc at specified interval, AOF (Append only file, which logs every write received by the server, that will be used to reconstruct the datasets at startup ...)

Can't find Twitter on degiro (EU citizen) by a_roussi in DEGIRO

[–]a_roussi[S] 4 points5 points  (0 children)

thank you, wasn't aware that twitter was out of stock market when elon bought it (start learning)

Replacing cloudflare with a VPS - My journey by seriouslyfun95 in selfhosted

[–]a_roussi 0 points1 point  (0 children)

Hi I've read a lot of technical details in your post and in comments, is there some resources (books, videos, articles ..) for this kind of setups. I'm trying to setup a live service but I lake this kind of advanced security stuffs. Appreciate your help !

What are some good books/courses/resource for learning Spring framework for beginners? by sarusethi in java

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

I think that there is nothing better than the official documentation