General Questions Flashcards
Why FP?
Why does functional programming matter? When should a functional programming language be used?
Browsers:
How do companies like Microsoft, Google, Opera, and Mozilla profit from their browsers?
TCP Sockets:
Why does opening a TCP socket have a large overhead?
Encapsulation:
What is encapsulation important for?
Real-time systems:
What is a real-time system and how is it different from an ordinary system?
Real-time and memory allocation:
What’s the relationship between real-time languages and heap memory allocation?
Immutability:
Immutability is the practice of setting values once, at the moment of their creation and never changing them. How can immutability help write safer code?
Mutable vs Immutable:
What are the pros and cons of mutable and immutable values?
Object-Relational Impedance Mismatch:
What’s the Object-Relational impedance mismatch?
Sizing a Cache:
Which principles would you apply to define the size of a cache?
TCP and HTTP:
What’s the difference between TCP and HTTP?
Client-Side vs Server-Side:
What are the tradeoffs of client-side rendering vs. server-side rendering?
Reliable and non-reliable channels:
How could you develop a reliable communication protocol based on a non-reliable one?
Million-Dollar Mistake:
Tony Hoare who invented the null reference once said “I call it my billion-dollar mistake” since it led to “innumerable errors, vulnerabilities, and system crashes, which have probably caused a billion dollars of pain and damage in the last forty years”. Imagine you want to remove the possibility to have null references in your preferred language: how would you achieve this goal? What consequences could this have?