- list page
Javascript React Project
Typescript React Project
Diff the configs:
npm init
JavaScript does not bother you too much with types (at first), which is both a blessing and a cure. But we all know the Boolean type. Boolean variables can either be true
or false
. Yes or no.
Every value in JavaScript can be translated into a boolean, true
or false
. Values that translate to true
are truthy, values that translate to false
are falsy. Simple.
This is about two ways to make that translation.
The longer you have been around, the more the landscape shifts.
We often learn just enough to move forward.
You might even study intently.
But then, you may have studied and learned a feature set that has since had more features published/released.
Looking at some tan-stack table code today ran into some typescript that was foreign to myself: link.
According to the typescript docs this is called optional-element-access, which lets you access both objects and arrays with strings and/or numbers.
Curious to see if anyone violently disagrees. π
Or violently agrees. Or has a more tempered reaction or adjacent take.
Feel free to post in the comments.
My hot take on learning/teaching things to set people up for success:
The key thing for you with learning typescript is to keep it as simple as possible.
This is going to be a weird assignment. For now a week long effort and we re-evaluate at the end of the week.
If you accomplishing one thing would be huge. I am just going to throw a ton of stuff at you and see where we end up. I will also probably be involved at some points working on stuff.
- pick up time around 7am? (negotiable, also I might oversleep π )
- we work from the home office (I will have it all clean)
- when we go out for coffee or lunch I can buy.
- end the day
Extensible Markup Language is a strict serialization of the Document Object Model:
https://developer.mozilla.org/en-US/docs/Web/XML
Using this browser api DOMParser() you can parsing xml uses a node system that is similar to parsing html:
https://developer.mozilla.org/en-US/docs/Web/API/XMLDocument
https://developer.mozilla.org/en-US/docs/Web/API/DOMParser
Google: domparser example xml
https://stackoverflow.com/a/58279236/5283424