The result: A lot of if statements! And you have to type them all! Now imagine that the number of validations increases from 10 to 25 because 15 new use cases must be implemented in the next iteration ...
Unlock the full InfoQ experience by logging in! Stay updated with your favorite authors and topics, engage with content, and download exclusive resources. Vivek Yadav, an engineering manager from ...
Technology has enabled the creation of a vast and growing amount of information, leading to benefits (e.g., more data to learn from) as well as drawbacks (e.g., the spread of fake news and conspiracy ...
You can dramatically simplify your code by using classes to define read-only/immutable objects … but to create classes that behave correctly requires a little bit of redirection. In a previous column, ...
Our applications are complicated enough without adding any more. Here's a way to think about your objects that allows you to dramatically simplify your object model, provided you're willing to turn ...
Isn't it funny how some objects we used to take for granted have turned into gold mines? You might've tossed that old toy or ...
The world can be a busy place. Walking down a crowded street, there is a sea of faces in front of you. Look in a shop window, and there is an array of objects for sale. Look up in the sky, and several ...