"There are no significant bugs in our released software that any significant number of users want fixed."
- Bill Gates
- Bill Gates
The best thing about a boolean is even if you are wrong, you are only off by a bit
"The language in which we express our ideas has a strong influence on our thought processes."
- Donald Knuth
- Donald Knuth
Instead of trying to figure out what's the next incremental improvements for a slow algorithm,
sometimes it's better to try a complete different approach
sometimes it's better to try a complete different approach
4 JavaScript interview questions
What is a Callback function?
What are Arrow functions?
What is the usage of Function.prototype.bind?
How to check if a value is null?
What is a Callback function?
What are Arrow functions?
What is the usage of Function.prototype.bind?
How to check if a value is null?
We live in a world governed by distributed systems.
From small intranets, to share printers, to the Internet
From small intranets, to share printers, to the Internet
Bit-level operations on an integer x
x |= 1<<7 -> set bit 7 (the first bit starts at index 0)
x &= ~(1<<7) -> clear bit 7
x ^= 1<<7 -> toggle bit 7
mask = ((1<<8)-1) -> create an 8 bit mask
(x >> 16) & 0xf -> extract bits 16 through 8
(x >> 7) & 1 -> test bit 7
x |= 1<<7 -> set bit 7 (the first bit starts at index 0)
x &= ~(1<<7) -> clear bit 7
x ^= 1<<7 -> toggle bit 7
mask = ((1<<8)-1) -> create an 8 bit mask
(x >> 16) & 0xf -> extract bits 16 through 8
(x >> 7) & 1 -> test bit 7
I've also wasted long hours debugging issues that came from:
- Reading the wrong configuration file
- Using outdated information from an internal wiki page
- Problems with someone else's code
- Copy-paste related errors
When things go wrong, check your assumptions.
- Reading the wrong configuration file
- Using outdated information from an internal wiki page
- Problems with someone else's code
- Copy-paste related errors
When things go wrong, check your assumptions.
Perl was developed by Larry Wald in 1987 as a scripting language for text editing
It is commonly used in:
- Linux system administration
- Web development
- Network programming
print "Hello, World!\n";
It is commonly used in:
- Linux system administration
- Web development
- Network programming
print "Hello, World!\n";
Some questions to consider to clarify requirements:
- Read/write heavy sistem? (or both)
- Expected # Users (average and peak)
- Traffic patterns
- Amount of data to store (for how long)
- SLA
- Consistency model?
- Cost of development vs operations/maintenance
- Read/write heavy sistem? (or both)
- Expected # Users (average and peak)
- Traffic patterns
- Amount of data to store (for how long)
- SLA
- Consistency model?
- Cost of development vs operations/maintenance
Some properties of distibuted systems:
- Reliability: the system can tolerate faults (software or hardware)
- Scalability: the system has good performance when load increases
- Maintainability: the system is easy to extend and to operate
- Reliability: the system can tolerate faults (software or hardware)
- Scalability: the system has good performance when load increases
- Maintainability: the system is easy to extend and to operate
"A man provided with paper, pencil, and rubber, and subject to strict discipline, is in effect a universal machine"
- Alan Turing
- Alan Turing
If you pass a boolean to a function, there might be an if statement somewhere
Why not refactor that function into two functions and call the appropriate one?
Why not refactor that function into two functions and call the appropriate one?
Some developers think that writing convoluted code makes them look smart.
Writing simple code that reads easily and is easy to understand is what takes real skill.
Writing simple code that reads easily and is easy to understand is what takes real skill.
5 JavaScript interview questions
What is Scope?
What does the new keyword do?
What are the falsy values in JavaScript?
What is an IIFE, what is the use of it?
What's the value of this in JavaScript?
What is Scope?
What does the new keyword do?
What are the falsy values in JavaScript?
What is an IIFE, what is the use of it?
What's the value of this in JavaScript?
"Around computers it is difficult to find the correct unit of time to measure progress.
Some cathedrals took a century to complete.
Can you imagine the grandeur and scope of a program that would take as long?"
- Alan J. Perlis
Some cathedrals took a century to complete.
Can you imagine the grandeur and scope of a program that would take as long?"
- Alan J. Perlis
"Simplicity is a great virtue but it requires hard work to achieve it and education to appreciate it. And to make matters worse: complexity sells better."
- Edsger W. Dijkstra
- Edsger W. Dijkstra
4 JavaScript interview questions
What's the difference between var, let and const keywords?
What is the difference between Implicit and Explicit Coercion?
What is Object Destructuring?
What does "use strict" do?
What's the difference between var, let and const keywords?
What is the difference between Implicit and Explicit Coercion?
What is Object Destructuring?
What does "use strict" do?