reading-notes

Domain Modeling

What is domain modeling?

How to create a domain model?

Why is domain modeling important?

Tips for domain modeling

HTML tables - basics

What is an HTML table?

How to create an HTML table?

How to style an HTML table?

JavaScript objects - basics: Introducing constructors

What is a constructor?

How to create a constructor?

How to add properties and methods to an object?

How to create multiple objects with the same properties and methods?

A Beginner’s Guide to JavaScript’s Prototype

What is a prototype?

Q: Explain why we need domain modeling. A: To create a shared understanding, provide a blueprint for software solutions, and identify potential problems and edge cases.

Q: Why should tables not be used for page layouts? A: They make code more difficult to read, modify, and maintain and do not provide the same level of flexibility and accessibility as using CSS for layout.

Q: List and describe 3 different semantic HTML elements used in an HTML <table>. A: <thead> - groups header content, <tbody> - groups body content, <tfoot> - groups footer content.

Q: What is a constructor and what are some advantages to using it? A: A function used to create objects in JavaScript. Advantages include creating multiple objects with the same properties and methods and making code more organized and easier to maintain.

Q: How does the term “this” differ when used in an object literal versus when used in a constructor? A: In an object literal, “this” refers to the object that contains the function or property. In a constructor, “this” refers to the object being created.

Q: Explain prototypes and inheritance via an analogy from your previous work experience. A: Prototypes are like templates used in construction to build multiple houses with the same design. Inheritance is like passing down traits from a parent to a child.

Q: Explain prototypes and inheritance via an analogy from your previous work experience. A: We had a specific format that we were required to use for some of our products (prototype) and we passed down the knowledge of how to do this specific format to all subordinate analysts. (inheritence)