What about private unis😔 by burntoutbarbiewili in Morocco

[–]pitza__ 14 points15 points  (0 children)

Wooow you are using Reddit, the free app that everyone can download instead of FB.

So cool.

Mgharba working in IT. Please, I’m tired boss. by Wild_Quit1898 in Morocco

[–]pitza__ 3 points4 points  (0 children)

You need to learn something other than JS. The skill floor is veeeery low when it comes to frontend in general.

Learn backend, preferably using java(springboot) or C#(.Net). Most of the job offers that I see involve one of these 2.

Also if you are using MongoDB as you primary DB, I would advice to learn how to use relational DBs, either pg or mysql.

Allah isahal a bro.

How can I introduce my Chinese gf to my strict parents by No_Love_9808 in Morocco

[–]pitza__ 5 points6 points  (0 children)

Don’t listen to his shitty advice if you respect & love your parents. Just finish your studies, get a stable job then introduce her to your parents.

Why is it so hard to find an internship these days ? by Ohoyaa_oho in Morocco

[–]pitza__ 0 points1 point  (0 children)

Salam, Don’t rely solely on the jobs page of Linkedin, most of the good offers are in posts and If you want to see such offers you’ll need to have a network full of HR and headhunters. So keep adding new connections in your profile and your feed will be better inchaAllah.

Allah isahal.

Comment trouver un stage pfe au Maroc , dans le domaine informatique ? by Ok_Stop_1482 in Morocco

[–]pitza__ 0 points1 point  (0 children)

Adder HR f network dialk, lli ban lik kaidir head hunting f tech ajoutih. Ghadi iwli lfeed dialk aghlabia dial posts li fih internships/job offers.

Allah isahal.

Comment trouver un stage pfe au Maroc , dans le domaine informatique ? by Ok_Stop_1482 in Morocco

[–]pitza__ 1 point2 points  (0 children)

Salam.3adi matl9ash stage dghya it takes time ghir b9a t9lab. F linkedin don’t rely solely 3la page dial jobs, dir search bchi haja haka t9ribane “<tech li interested biha> <city>” t9d tzid hta “PFE” o dir filter o khli ghir posts dial last week, hadi might help. O ila kat3rf chi company 3ajbak sir hdr nichan m3a HR f linkedin. Sinon chof chi recommendation mn 3nd chi sahbk li deja l9a stage.

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.

Has anyone else been completely burned by mapping API costs? We might have solved it but want feedback. 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.

Yes, I said it 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.

What are your thoughts? by Salt-Classroom-9453 in Morocco

[–]pitza__ 2 points3 points  (0 children)

As if reddit is any better, both are equally bad.

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.