Looking to get to the ThunderDOM, trying to get out of this wasteland, want to find the Silicon/Colton to fuel the rest of your "Mad" escapades. Too bad, I'm not letting you have any of my secrets, especially my most effective survival secrets that could help you become the ThunderDOM champion. If I were to give you some tips, and you did become the champion of the ThunderDOM, maybe, just maybe you could bring me to "Tomorrow-morrow Land." Well maybe I could tell you a few things that could make your trip a little smoother, but I'm coming with, and no waving that gun around, we work with computers in the wasteland. Here's a list of locations we will go through, each more treacherous than the last. Please follow this guide, I promise we will be safe NodeWarrior:
- "Broken Hill, AU" - What is the DOM
- "Menindee Road on the Mundi Mundi Plains" - Accessing the DOM
- "Outside the ThunderDOM" - DOM Interfaces
- "ThunderDOM" - DOM Testing with console.log()
Look, you must be mad if you believe we could take them all on with brute force, and firepower alone in the center of this abandoned gas station. We need to outwit these raiders, and with my wily yet cowardly tactic of using DOM to our advantage we might be able to figure a route outta here that doesn't involve bloodshed and road rash. Let me tell you a little about the DOM, before the great boom, we had a thing called the internet. On the internet were these beautiful interactive documents called webpages made of HTML, CSS, and a whole slew of other programming languages, if you want to know more, there are articles about webpages like this: https://techterms.com/definition/webpage. A road warrior like yourself should get familiar with paths, and the only way to do it is to see this ancient visual representation of a DOM tree.
window on your program.
This is it Max ol' pal, we're outside of what the before boomers called, "Sydney," or what we know it as, the ThunderDOM. Before we move any further, you should learn a bit more about Fundamental DOM Data Types. These are tools that will help you not just survive in the ThunderDOM, but thrive in it as a king!
Let's talk about the actual things you can manipulate in the DOM hierarchy, try to keep up because this can be a bit confusing for first timers, and going back to that guide I linked is helpful in understanding these core concepts. Objects in Web Development borrow from several interfaces, and to learn and memorize all the information about HTML elements that belong to all these interfaces would take years. Luckily that's what I'm here for is to summarize it for you, you see, as far as the DOM is concerned, HTML elements are just a node in a tree of nodes, this is where elements derive. That is how we can reference objects using their class, id, etc. To learn more about nodes, check out this fellow Node Warrior's blog: Vaidehi Joshi
Here is a list of some of the most common APIs in web and XML page scripting using the DOM made by MDN Web Docs:
Now you're dangerous enough to enter the ThunderDOM and show those other NodeWarriors what they're facing.
Think of these debugging tools as ways of checking if your vehicle works, or your traps are orderly and will properly do what they're meant to do. You don't want to be stranded in the wasteland, or have no defense during a raider attack. This is why checking and debugging at every step of the web development process is important, it will save you heartache in the future.
I hope this simple guide helps you in your efforts to become a NodeWarrior just like Mad Max. If you are interested in more articles please visit my CRUD and RESTful routes Ruby on Rails article Scooby Doo and the Ruby on Rails.
Happy trails and drive(code) safely!
If you're not trapped fighting a raider crew, check me out: