🅱 Founding Engineer & UX Lead @boltdotnew/@stackblitz
💡 Bolt tutorials & tips
Heavily divergent thinker (but will eventually get back to the point)
- #JavaScript tip for today: Use proper array methods. Here's a little cheat sheet.
- I'm not kidding around: go to bolt․new and type in: "make a spotify clone" I'm speechless.
00:00- Ever tried debugging an element that keeps disappearing when it loses focus once you start using devtools? Well dang me to heck there is an "Emulate a focused page" option in @ChromeDevTools just for that 🤯 (you can get it from the [⌘]+[P] Command Menu, or Global Preferences)
00:00 - #HTML tip for today: <ol> element has `start` and `reversed` attributes! Some examples where it's useful: `start` → paginated results `reversed` → "top 10 best ... " lists
00:00 - #JavaScript tip for today: When "console-logging" several variables, you can wrap them in curly brackets to better see which value belongs to which variable. A small thing, but hey.
00:00 - With `window.showOpenFilePicker()` you can now make a text editor that reads and writes to a local(!) file in 12 lines of JavaScript. That is insane. (+ a couple lines for handling shortcuts)
00:00 - Ok, I'm seriously so excited by #TypeScript 4.1! (released today!) I mean come on: you can now e.g. type all 80 color variations from @tailwindcss in like.. no time:
00:00 - #JavaScript tip for today: You can use `console.table` in your node scripts too! (+ pass an array of properties to define which columns to show)
00:00 - #JavaScript tip for today: "npkill" is a nifty little tool that shows all `node_modules` in your system - and allows to remove the selected ones. You can quickly free up some serious gigs by taking care of the old/demo projects!
00:00 - #CSS tip for today: `font-variant-numeric` and `font-feature-setting` CSS properties allow to activate same-width numbers for a font. Use them to make your counters less jumpy, and values nicely aligned.
00:00 - #CSS tip for today: `:focus-within` pseudoclass allows to style element that contains a focused element. You can use it to e.g. put more emphasis on a fieldset the user is filling at a certain moment.
00:00 - #CSS tip for today: If your content doesn't fit, @FirefoxDevTools will show you which element is the one with scrollable overflow - super useful for CSS debugging! 🤩
00:00




