by schwartzworld · 3y ago · 0 comments
It's absolutely possible to build JavaScript apps in a single page with no external dependencies. All you need is a single .html file and a simple development server (I use python http.server).
Writing in typescript is a easy as a single dev dependency to compile the code. There's no multithreading but first class async support.
Additionally, JS / TS are very flexible. You can implement almost any programming paradigm you want to learn. I love doing FP in typescript personally.
And centering a div can still be very hard depending on the circumstances.
You can center anything by making the container display:grid; align-content:center; justify-content:center; I don't know of any situations where that wouldn't work. Flex is a bit finnickier to understand with its major/cross axis concept and wrapping, but you can write Grid layouts with your eyes closed.
> centering a div can still be very hard depending on the circumstances.
Only thing i could think is targeting ancient browsers. I'm curious, do other UI languages not have quirks or edge cases to learn?
Are the circumstances that you are banned from using flex or grid?