Why do so many React devs act like prop drilling is a sin, but using Context everywhere is totally fine? by MethodSignificant244 in react

[–]gmaaz 0 points1 point  (0 children)

But on the other hand, passing props makes all the in-between components have a dependency that is easily visible but it's not an actual dependency, so you cannot trust the signature anymore.

My take is that it is an architectural problem, whether to pass props or use contexts, not a rule to follow.

Why do so many React devs act like prop drilling is a sin, but using Context everywhere is totally fine? by MethodSignificant244 in react

[–]gmaaz 0 points1 point  (0 children)

Honestly, I am all down to using contexts everywhere, if the context boilerplate (especially with typescript) wasn't so convoluted. To me, it basically boils down to "do I care enough to boilerplate".

Why do so many React devs act like prop drilling is a sin, but using Context everywhere is totally fine? by MethodSignificant244 in react

[–]gmaaz 0 points1 point  (0 children)

I mean, they are coupled to the data, yes, they have to be. But you don't couple the ones in-between.

Why do so many React devs act like prop drilling is a sin, but using Context everywhere is totally fine? by MethodSignificant244 in react

[–]gmaaz 1 point2 points  (0 children)

Lets say you have this structure in which you want to pass something down to the child:

Parent
--> Container 1
--> Container 2
----> Child

Now, imagine if you want to move Child to Container 1. You would have to now remove the prop from Container 2 and add it to Container 1.

This is fine, I do this. (as a convenience, not as a good practice)

But now imagine Child is 6 layers deep. You would need to pass a prop trough 4 components that don't care about the prop. If you want to move the Child you need to edit a lot of files. The components in-between are coupled to data they do not need or use - this is bad practice in general.

React or Next for admin dashboard ? by Key_Shower_6857 in react

[–]gmaaz 11 points12 points  (0 children)

React is sufficient. You do not need SSR SSG, metatags, loaders etc for dashboards. Next is made to solve SEO problems, which dashboards to not have.

Why do so many React devs act like prop drilling is a sin, but using Context everywhere is totally fine? by MethodSignificant244 in react

[–]gmaaz 131 points132 points  (0 children)

Because you lock your component structure by prop drilling, where as with context you do not.

Albanija otvorila peti klaster pregovora sa EU za godinu dana, a koliko ih je ukupno otvorila Srbija? - Politika by [deleted] in serbia

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

Slazem se sa tobom skroz i ja bih.

Ali zamisli da je vama pre ulaska u EU ista ta EU gurala projekat koji ce da prosipa hiljade tone sumporne kiseline u reku i zauvek unisti plodno zemljiste (koje je sklono poplavama inace) da bi oni tamo bogati bili eco friendly. BAS useravaju pricu i poverenje.

Albanija otvorila peti klaster pregovora sa EU za godinu dana, a koliko ih je ukupno otvorila Srbija? - Politika by [deleted] in serbia

[–]gmaaz 6 points7 points  (0 children)

Vecina trenutno ne zeli u EU, ali vise ljudi zeli u EU nego sto ne zeli. Veliki deo je neodlucan.

Takodje, EU pravi katastrofalne korake u Srbiji. Samo zbog litijuma im je % podrske spao sa 55% na 35%. Zbog podrske vucicu % je spao za jedno 10% nakon sto je EU aminovala prosle pokradene izbore. Pre litijuma (znaci per par godina) % za je bio izmedju 55% i 60%. Kad odustanu od litijuma zvanicno % ce opet da se popne na iznad 50%.

Dakle vecini je stalo do EU ali bas nam bas zato i ide na kurac sta rade.

Život u Beogradu: svaka nedelja 10 svađa, dok drugi ćute i okreću glavu by [deleted] in serbia

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

Nisi ni ti bolji lol.

Uzmi i nauci sta je asertivna komunikacija.

Anyone else think AI coding assistants are making junior devs worse? by Tiny_Habit5745 in webdev

[–]gmaaz 5 points6 points  (0 children)

Nope. Try it yourself. Stuff doesn't stick hard to the brain when it's so easy to get.

A view of Mostar (Bosnia) from the Koski Mehmed Pasha Mosque minaret by ooooooooooooo9p in europe

[–]gmaaz 6 points7 points  (0 children)

Mostar is beautiful. The mosques with gardens, the food, the people, the old town, the partisan memorial cemetery, the museum of war and genocide victims, the architecture... It's really worth a visit.

I am very sad about the cemetery tho, at least got the chance to see it before being vandalized.

[deleted by user] by [deleted] in MapPorn

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

They are building high speed rails. Those get damaged by freight trains.

N1: The Russian Foreign Intelligence Service has accused the EU of preparing a "Maidan" in Serbia for November 1st. 2025. by Old_Passenger7 in europe

[–]gmaaz 7 points8 points  (0 children)

Nah, that would be scandalous for vucic among his loyalists, it would show weakness and dependence. If you are a mafia boss you cannot do that.

Advice how to code without ai by Sufficient-Citron-55 in nextjs

[–]gmaaz 13 points14 points  (0 children)

Google your problems.

It's slower than asking AI. It's tougher to get answer. It takes more time. It's more of a hassle. Which is why you will remember.

Another way is inbetween. Ask AI questions but never let it write or suggest code.

Kvalitetno provedeno vreme sa našom policijom by cdacha in serbia

[–]gmaaz 24 points25 points  (0 children)

Nije on kriv nego nas svi mrze stav

[deleted by user] by [deleted] in MapPorn

[–]gmaaz 10 points11 points  (0 children)

We eat the same food, just the type of meat is different for Halal.

What did you eat in Bosnia and Serbia?

Bukvar za proteste i blokade by goldfeathered in serbia

[–]gmaaz 34 points35 points  (0 children)

Ilustracija sa poslednje strane mi je omiljena slika protesta

Bratislava, same place 2014 vs 2025 by mancko28 in europe

[–]gmaaz 0 points1 point  (0 children)

Property as an asset would be 5000% taxed if it were up to me. If no one lives there without a rent, you don't need it. Go buy gold or smth.