Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Search - "outloud"
-
My first programming job started at a fairly small gamming company. We were pretty close because we were so small and sometimes jokes were a bit too personal. Anyway, during my 3 months probation period, the team lead invited the whole company at his house for a party. Long story short, I got wasted, and when the CEO arrived I went to him and told him something like: Yo dawg, let's drink, don't be a pu**y. The sad part is that I cannot remember doing that and apparently I shouted outloud. I had some pretty interesting meetings the next days. Came too close to being fired 😅.4
-
me: thinking about scraping for a webapp
Random Guy: walks past me staring me dead in the eyes.
Me outloud: "how do i scrape" -
Do I have just a bad version of ecma script or is this some stupid shit in JS in general? I want each sub array to be separate entities, not that same one for all. I assume the fill in just putting the same list in all of them? I honestly don't care I guess, replacing a sublist is fine too. Rather than editing each element separately. Saves ram in long run.
let arr = Array(5).fill(Array(1,2))
console.log(arr)
arr[0][0] = 3
console.log(arr)
[[1,2],[1,2],[1,2],[1,2],[1,2]]
[[3,2],[3,2],[3,2],[3,2],[3,2]]
Congratulations, you are my dev duck today.19