Details
-
AboutIT Customer Engineer interested, curious and seeking to learn coding
-
SkillsNone
-
LocationMaputo, Mozambique
Joined devRant on 4/23/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
-
Some time ago I learned that my brother was taking a MATLAB class at University. I thought to myself "hey, why not try teaching him another language, like C#".
He learnt that shit faster than anyone I've ever tutored! Even the 3rd years at University had more problems than he did.
So fucking proud.4 -
How Javascript handles Infinity:
Infinity * 1 == Infinity
Infinity * 0 == NaN
Infinity / 0 == Infinity
0 / Infinity == 0
Infinity + Infinity == Infinity
Infinity - Infinity == NaN
Infinity / Infinity == NaN
NaN & Infinity == 0
NaN && Infinity == NaN
NaN || Infinity == Infinity
1 % Infinity == 1
Infinity << 1 == 0
Infinity >> 0 == 0
Infinity | 0 == 0
Infinity | Infinity == 0
That's kinda philosophical, isn't it?15 -
I tried a few methods.
First osmosis. I would put several programming books under my pillow but that was just a pain in the neck.
Next I tried the TF/RQ methods. I would try to write some code not knowing anything about the language. When it didn't work I'd rage quit and flip the table. That ended with a pile of broken IKEA desks and a lot of spilled coffee. (RIP Coffee 😔)
Finally I sat down and came up with a problem I wanted to solve. I googled it, looked at answers. Tried the code myself, if it worked I'd go over it piece by piece so I could explain to anyone exactly what it did and why.
Honestly, learning to code just comes down to doing it and being fearless. The more curious you are, the more you'll learn.1 -
I'm watching TV and I just heard something along the lines of "The files have been wiped from the server and there was no sign of a DDOS attack. Whoever erased those files had a backdoor.".13