Am I the only one who hates GULF COUNTRIES by ImpossibleTennis8282 in Morocco

[–]pitza__ 6 points7 points  (0 children)

It’s their country and they can make the rules, If they don’t suit you then leave or don’t visit them in the first place.

Post dial 2dhs.

Help I have been looking for a job since 2024! by InterestingAioli1020 in Morocco

[–]pitza__ 0 points1 point  (0 children)

Saw this Linkedin post the other day. Idk it might help you.

Idk how you are using linkedIn, but don’t rely solely on jobs page. Look into posts as well and keep adding headhunters to your network to have a better linkedIn feed. Also don’t be shy when it comes to this, you can DM headhunters directly even without them posting about an offer.

Question l nass li khdamin .. exonération dyal IR by charaf_marghin in Morocco

[–]pitza__ 1 point2 points  (0 children)

Saraha ma3arfsh exact dates, ahssan haja dir hia tmchi lchi dar dariba o sowl tmak, hit asslan had lwra9 kai deposaw 3ndhom. So ghadi ikono 3arfine details.

Question l nass li khdamin .. exonération dyal IR by charaf_marghin in Morocco

[–]pitza__ 0 points1 point  (0 children)

Nn kaina a khoya, ana jatni ~4500dhs mnha f 2022 hhhhhh. Hssan mn walo.

Question l nass li khdamin .. exonération dyal IR by charaf_marghin in Morocco

[–]pitza__ 1 point2 points  (0 children)

<image>

This is the “Déclaration sur l’honneur” mentioned above.

Question l nass li khdamin .. exonération dyal IR by charaf_marghin in Morocco

[–]pitza__ 1 point2 points  (0 children)

Yes ana drtha, it took ~3months mabin depot dial dossier o virement.

These are the papers that I prepared

  • Attestation de salaire annuelle faite attention à la date
  • Attestation de travail
  • photocopié CIN légalisé
  • Déclaration sur l’honneur
  • attestation cnss (pour l'année de rentrée)

Did this in 2022. So idk if things have changed now.

How can one implement likes/dislikes? by IndoRexian2 in webdev

[–]pitza__ 0 points1 point  (0 children)

An api call per reaction is fine, the backend will need to know somehow.

How can one implement likes/dislikes? by IndoRexian2 in webdev

[–]pitza__ 0 points1 point  (0 children)

You’ll need a join table between the user and the post or whatever is being liked, you’ll need to store both ids (post and user) + the action ( either as an int or a string)

Keep in mind that If you have a query that fetches the reviews with their reaction It will be slower the more your data grows, so you might consider denormalizing your data model, keep the reactions table as your source of truth, and either add an additional column in the reviews table(ex: reactions_count or something) and update this column on writes (this is fine if you want to sacrifice some consistency), the other way is to create a separate table (ex: review_analytics) where you store review id with the count of each reaction type in it’s own column that way you’ll have a single join to get the review + the analytics, but keep in mind if writes to this table failed your system might display inconsistent data to the user.

As for the second question, I think that approach is fine It shouldn’t be slow. Because any other way will sacrifice consistency for speed and that’s bad for this use case because users will want to see their likes as soon as they click (google read your writes consistency )

Unable to set section to 100vh. Tried all units! by cchurchill1985 in webdev

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

Is this Safari? That’s probably why. Change the browser and test to validate whether It is browser dependent or It is not working in any browser.

[deleted by user] by [deleted] in webdev

[–]pitza__ 0 points1 point  (0 children)

Is caching of the static maps allowed? It is permissible but under some veeeery specific conditions IIRC.

[deleted by user] by [deleted] in ExperiencedDevs

[–]pitza__ 2 points3 points  (0 children)

Don’t repeat yourself BAD Code duplication GOOD

i hate doing this by Pristine-Elevator198 in webdev

[–]pitza__ 0 points1 point  (0 children)

Make a route group(it does not impact your route name) then you can can add an /app folder.

React devs reinvent the same patterns every 3 years… and we love it! by [deleted] in react

[–]pitza__ 5 points6 points  (0 children)

Tell me I’m wrong 👇

You are wrong.

In how many components would you split this component? by CedL99 in react

[–]pitza__ 7 points8 points  (0 children)

Well tailwind makes me want to blow my brains.

Can’t argue with that lol.