Details
-
LocationTours, France
Joined devRant on 2/15/2017
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
-
Toilets and race conditions!
A co-worker asked me what issues multi-threading and shared memory can have. So I explained him that stuff with the lock. He wasn't quite sure whether he got it.
Me: imagine you go to the toilet. You check whether there's enough toilet paper in the stall, and it is. BUT now someone else comes in, does business and uses up all paper. CPUs can do shit very fast, can't they? Yeah and now you're sitting on the bowl, and BAMM out of paper. This wouldn't have happened if you had locked the stall, right?
Him: yeah. And with a single thread?
Me: well if you're alone at home in your appartment, there's no reason to lock the door because there's nobody to interfere.
Him: ah, I see. And if I have two threads, but no shared memory, then it is as if my wife and me are at home with each a toilet of our own, then we don't need to lock either.
Me: exactly!12 -
As usual finished the task just an hour before demo meeting. That hour is for transportation. Obviously I didn't test nor rehearse.
As usual, in to 2 mins of demo and greeted by error page.
As usual
1) stay the fuck calm
2) this features was already demo-ed and fixed and went fine few weeks ago
3) what the fuck happen now
4) stay the fuck calm, smile.
5) "ah please give me one minute, I forgot to clean up some stuff while working on new features"
6) shit shit. read the error message and log
7) oh I did refactor some files last week. Reorganized the files and folders for better structure and easier understanding. Thought I corrected every occurrences. Obviously I missed few.
8) ssh to the server while screen is still showing on projector
9) dig into the file quick
10) stay the fuck calm
11) fix
12) refresh
13) sorry all good, so I was saying ....
Well finally it's done for today and going back to office. After all it went ok. 👌2 -
When kids watch tutorials on youtube and think they wanna become black hat hackers and tell everyone that thay are black hat hackers 😂😂
Source : reddit6 -
Postman: We will stop supporting our Chrome app. Please download our "Native" app for better performance.
No motherfuckers.. Go die, alone, while your fucking family watch you bleed to death helplessly.
Electron is not native, don't mix true native development with lazy ass electron. Fuck you. A native postman would've been around 15MB in size but your "native" installer is 68MB so shut the fuck up and don't call it native or I will stick my native dick in your fucking throats.
I develop native apps So yeah, I'm pissed when web devs are starting to call electron and JS as native desktop apps... They are not... Now fuck off you smelly cunts.40