5 ms·
You don't need much expertise in CSS to build common web UI patterns. It's been around a long time, and tropes like "it's hard to center a div" aren't really tr
by schwartzworld 4y ago
You don't need much expertise in CSS to build common web UI patterns. It's been around a long time, and tropes like "it's hard to center a div" aren't really true anymore.
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.
- ri0t 4y agoTrouble with CSS is still this: https://media.giphy.com/media/yYSSBtDgbbRzq/giphy.gif https://media.giphy.com/media/yYSSBtDgbbRzq/giphy.gif (Peter Griffin trying CSS) And centering a div can still be very hard depending on the circumstances.
- bob1029 4y ago> And centering a div can still be very hard depending on the circumstances. Are the circumstances that you are banned from using flex or grid?
- kroltan 4y agoI always see this meme going around, but it's just plain and simply untrue now that Grid can be used reliably. 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.
- schwartzworld 4y agoIt gets better as you practice and learn good practices, and for the kinds of "fun" projects OP wants to do, there's no real downside to using a css framework that abstracts a lot of it away. > 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?