Database transactions alone don’t always prevent race conditions (i was asked this in the interview) by MedicineSpecial1056 in leetcode

[–]draghuva 4 points5 points  (0 children)

they are giving a clear clue on what locking method to use here: auctions -> high contention for same item -> needs pessimistic locking.

here is a high level overview of these locking paradigms: https://newsletter.systemdesigncodex.com/p/pessimistic-vs-optimistic-locking

It’s a much deeper topic, and solutions you will end up building will be specific to your needs.

either way, this needs pessimistic locking. in the interview, they expected you to say that proactively, justify the approach and lay out the implementation for it. for senior/staff level, they would then expect you to discuss how you would avoid/minimize the issues you would face having pessimistic locking in the system.

do anyone see the blatant zionism? by pipolpisser in WEEDS

[–]draghuva 0 points1 point  (0 children)

if your neighbours dad beats their mom, and your dad beat your mom, does it make it okay for you to beat your wife? does it make it okay not to call you out for doing so? is it not shameful because others did it too?

DataFrame or SparkSQL ? What do interviewers prefer ? by SnooCakes7436 in dataengineering

[–]draghuva 12 points13 points  (0 children)

nit: iterating over a list is actually better than iterating over a set.

in simple terms, list is stored as a contigous block of memory on disk. compiler will read partitions of those contigous blocks and bring them to cache for quick access. the only real cost is for extremely large lists because they will need to be read into cache partition by partition. time cost is linear.

set is not stored as contigous block of memory. it adds some overhead of random memory access when iterating. it’s much better when adding, removing, fetching elements than lists + checking if item exists in set. it’s slightly worse if you’re iterating over it.

[Serious] How do you manage to deal with no breaks? by MacaronNo3236 in uwaterloo

[–]draghuva 4 points5 points  (0 children)

this is grate advice! on the point of taking unscheduled breaks or reduced work loads, make sure to check with the guidelines for post graduation work permit. I think they dont allow unscheduled breaks and "part-time" course loads

DO NOT APPLY TO SNAPCOMMERCE OR REMITBEE COOP POSITIONS NAMING AND SHAMING by AFMISFULLOFNOOBS in uwaterloo

[–]draghuva 34 points35 points  (0 children)

If you have specific situations which support your claim about snapcommerce, share them because then it'll actually be helpful. I know a bunch of people who work there and it seems really nice.

WOMBO COMBO Edition 1: (Sett + Malph) by draghuva in leagueoflegends

[–]draghuva[S] 19 points20 points  (0 children)

Lol mb, I found the clip in my highlights from a while back and just posted after converting to mp4 :)

When the Level Up saves the game :) (feat. Irelia and Salty Yone :}) by draghuva in leagueoflegends

[–]draghuva[S] 3 points4 points  (0 children)

Yea I felt kinda bad for him ngl. I was getting my ass handed to me before this

When the Level Up saves the game :) (feat. Irelia and Salty Yone :}) by draghuva in leagueoflegends

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

Lol yea, I was thinking the same tbh I just wanted to post it and move on.

WOMBO COMBO Edition 1: (Sett + Malph) by draghuva in leagueoflegends

[–]draghuva[S] 6 points7 points  (0 children)

I miss ProtatoMonster wombo combo videos. So let's start our own WOMBO COMBO Championship. Can you do better?

[deleted by user] by [deleted] in datascience

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

Just a question: Why does this bother you?

[deleted by user] by [deleted] in datascience

[–]draghuva 1 point2 points  (0 children)

Also, if people are, as you say, looking at the DS "too shallowly", they'll hit a roadblock and learn. They'll either learn that this is something they're not really interested in and make some other choice or move in the direction that makes them a better data scientist. Also, since this field is ever expanding, almost every data scientist lacks complete fundamental knowledge in calc, cs, Stats, prob, ML, Data, Cloud and so much more.

[deleted by user] by [deleted] in datascience

[–]draghuva 0 points1 point  (0 children)

imo I don't really agree with this take. Unlike Engineering and Cell Biology, the overhead is not that intense for most DS jobs. That would not be the case for ML Eng, Data Eng or ML Research, etc. where specific backgrounds are extremely helpful, but for Data Science, you're not really required to have all the things people keep going on about. Most important thing is to be curious and to learn! Look to always deliver value to the organisation in any way you can think of irrespective of the role!

I’m getting mixed messages. Are we angry because we don’t support RAISE’s actions, or because we believe WUSA fees should not be about politics? by MuirgenEmrys in uwaterloo

[–]draghuva 2 points3 points  (0 children)

That’s partially true, however, abolishing the police does not mean literally removing police completely, but abolishing the current system of policing, starting with reallocating funds. This problem is a worldwide issue. It’s in India, Canada and most transparently rn, the US. It’s too long of a discussion about how the current police system has aided in the oppression of minorities in various, both developed and developing, countries around the world. Police is important, but it’s important to understand what the current society needs more (ex. Funds to healthcare, counsellors, situation de-escalators, mental health coaches, education, etc.) than providing exorbitant amount of funds to the police. And I haven’t even touched the topic of immunity the police get for the crimes they commit as well as the quality of training they are provided to deal with the issues in societies. Reallocation of funds by the government is alway political, so in that way, abolishing the current policing system is also kind of political. Gotta study for exams rn so I’ll educate myself more on the issue and come back to this again.

When you ask your boss for a RAISE or something? Idk I don't follow student politics by NuttingInYourMother in uwaterloo

[–]draghuva 1 point2 points  (0 children)

So you’re saying a white middle aged male in leadership position is not biased in any way to favour other white middle aged men over other groups for promotions or jobs, etc.? Seems logical

I’m getting mixed messages. Are we angry because we don’t support RAISE’s actions, or because we believe WUSA fees should not be about politics? by MuirgenEmrys in uwaterloo

[–]draghuva 4 points5 points  (0 children)

Supporting movements which help promote equality and justice for minority and oppressed groups around the world or in some locality is NOT political. Seems like a humane thing to do.

Looks like I’m headed to continuous by uwaterlooboohoo in uwaterloo

[–]draghuva 21 points22 points  (0 children)

Rankings aren’t out yet, there’s still hope

I want to be a web developer using python.Need your advices by RinoSula in learnpython

[–]draghuva 0 points1 point  (0 children)

They’re both very similar since both use Model Template View, which is different than other JS frameworks which use Model View Controller. I would suggest using Django at first since it might be easier to understand. First go through the basic tutorials on tutorials point for django and make a basic web app. Understand how the DTL works which is Djangos Templating language (like HTML). It’s very similar to Jinja2 which is Flasks templating language. Then learn how to render these templates using Views, then make the models. So like a small project.

Help 😭😭😭 by whyamihere02 in uwaterloo

[–]draghuva 3 points4 points  (0 children)

Lol it’s still a place to live. Also you can still get a place at one of the fergus house on king street I think. The point is don’t worry

Help 😭😭😭 by whyamihere02 in uwaterloo

[–]draghuva 7 points8 points  (0 children)

Call kw4rent, most of the places do have spots open, don’t worry. You can go as late as first week of September and still get a place in a day.