Your Coding Teacher
372 subscribers
10 links
Coding, software engineering & #bitcoin technologies. I'll make you a better thinker, not just a better developer | Ex
Amazon, Senior DevOps @eBay
Download Telegram
4 Random coding tips Write useful comments Stay humble Don't be afraid to ask for help Keep practicing
Lines of code are only worth counting when you're deleting them
JavaScript's falsy values: - false - undefined - null - The number 0 - The number NaN - The empty string
"No one hates software more than software developers." - Jeff Atwood
"Computer science education cannot make anybody an expert programmer any more than studying brushes and pigment can make somebody an expert painter." - Eric Raymond
Check for if (-1 == x) instead of if (x == -1) to avoid bugs like if(x = -1)
Theory is when you know something, but it doesn't work Practice is when something works, but you don't know why Programmers combine theory and practice Nothing works and they don't know why
I've yet to see a UML diagram in a professional environment.
"Every program has (at least) two purposes: the one for which it was written, and another for which it wasn't." - Alan J. Perlis
"The only constructive theory connecting neuroscience and psychology will arise from the study of software." - Alan J. Perlis
There are no "simple" bugs.
"Program testing can be a very effective way to show the presence of bugs, but is hopelessly inadequate for showing their absence." - Edsger Dijkstra
If the code and the comments disagree, they are both probably wrong
Inside every complex program is a simple program trying to get out
In theory, theory and practice are the same. In practice, they're not.
"There are no significant bugs in our released software that any significant number of users want fixed." - Bill Gates
First, make it work. Then, make it fast.
"Test doubles are objects that replace real dependencies to enable automated testing. They are the automated testing equivalent of movie stunt people: they take the place of the original since having the real one is expensive or impractical." Excellent analogy by @venkat_s
In JavaScript, a function always returns a value. If the return value is not specified, then it returns undefined.
"Part of the inhumanity of the computer is that, once it is competently programmed and working smoothly, it is completely honest." - Isaac Asimov