diff --git a/src/constants/bkup/2025-03-13.json b/src/constants/bkup/2025-03-13.json new file mode 100644 index 0000000..f58daaa --- /dev/null +++ b/src/constants/bkup/2025-03-13.json @@ -0,0 +1,7 @@ +{ + "title": "Started migrating some JS projects to TS", + "description": "TypeScript is making some good moves recently", + "publishDate": "2025-03-13", + "publishedOn": "", + "publishState": "" +} diff --git a/src/constants/bkup/2025-03-13.md b/src/constants/bkup/2025-03-13.md new file mode 100644 index 0000000..a44d577 --- /dev/null +++ b/src/constants/bkup/2025-03-13.md @@ -0,0 +1,5 @@ +Started some migrations of JS projects to TypeScript. There are a few moves from TypeScript & node that influenced me to do this: + +1. [Node's type stripping](https://nodejs.org/api/typescript.html#type-stripping) - allows execution of TypeScript files that only contains erasable TypeScript syntax. +2. [TypeScript's erasable syntax only](https://www.totaltypescript.com/erasable-syntax-only) - a flag to tell `tsc` to throw error on syntax that are not erasable (e.g., enums, namespaces, and class parameter properties) +3. [TypeScript native compiler](https://devblogs.microsoft.com/typescript/typescript-native-port/) - promises 10x faster typescript compilation diff --git a/src/constants/now.json b/src/constants/now.json index f58daaa..f0352ce 100644 --- a/src/constants/now.json +++ b/src/constants/now.json @@ -1,7 +1,7 @@ { - "title": "Started migrating some JS projects to TS", - "description": "TypeScript is making some good moves recently", - "publishDate": "2025-03-13", - "publishedOn": "", - "publishState": "" + "title": "Building a tiny web ecosystem", + "description": "I am focused at bringing my own web ecosystem to life", + "publishDate": "2025-03-23", + "publishedOn": "the 23rd of March, 2025 in my home in Amsterdam", + "publishState": "where it is starting to get sunny again" } diff --git a/src/constants/now.md b/src/constants/now.md index a44d577..69d5853 100644 --- a/src/constants/now.md +++ b/src/constants/now.md @@ -1,5 +1,10 @@ -Started some migrations of JS projects to TypeScript. There are a few moves from TypeScript & node that influenced me to do this: +I have been building my own tiny web development ecosystem. -1. [Node's type stripping](https://nodejs.org/api/typescript.html#type-stripping) - allows execution of TypeScript files that only contains erasable TypeScript syntax. -2. [TypeScript's erasable syntax only](https://www.totaltypescript.com/erasable-syntax-only) - a flag to tell `tsc` to throw error on syntax that are not erasable (e.g., enums, namespaces, and class parameter properties) -3. [TypeScript native compiler](https://devblogs.microsoft.com/typescript/typescript-native-port/) - promises 10x faster typescript compilation +My web "terrarium" -- at least, that's how I think of it. + +I _now_ have: + +1. [McFly](https://mcfly.js.org) - a metaframework for web components. I describe it that way because the web development industry is still largely in a "component" paradigm. I am hoping to support a different paradigm though, which I _still_ cannot put into words at the moment. So let's keep to thinking "web components" for now. +2. [WCB](https://webcomponent.io) - a low-level reactivity system for... yeah, web components. There's a trade off between productivity & lightweight-ness here and it is somewhere between [Microsoft's FASTElement](https://github.com/microsoft/fast) & [Google's LitElement](https://github.com/lit/lit/). Though the other "knob" to balance the trade off, is building it generic so that devs can also use custom stuff, like now you can use [lit-html](https://codepen.io/ayoayco-the-styleful/pen/ZEwNJBR?editors=1010) with it. + +Many things missing still, as is with all "terrariums", but building a model that represents the larger world allows me to understand web development in ways I never imagined I can. diff --git a/src/pages/now/and-then/posts/2025-03-13.astro b/src/pages/now/and-then/posts/2025-03-13.astro new file mode 100644 index 0000000..1450c16 --- /dev/null +++ b/src/pages/now/and-then/posts/2025-03-13.astro @@ -0,0 +1,76 @@ +--- +import Layout from '../../../../layouts/Layout.astro' +import Footer from '../../../../components/Footer.astro' + +const title = `Started migrating some JS projects to TS` +const description = `TypeScript is making some good moves recently` +let publishedOn = `` +const publishDate = `2025-03-13` +const publishState = `` +const content = `

Started some migrations of JS projects to TypeScript. There are a few moves from TypeScript & node that influenced me to do this:

+
    +
  1. Node's type stripping - allows execution of TypeScript files that only contains erasable TypeScript syntax.
  2. +
  3. TypeScript's erasable syntax only - a flag to tell tsc to throw error on syntax that are not erasable (e.g., enums, namespaces, and class parameter properties)
  4. +
  5. TypeScript native compiler - promises 10x faster typescript compilation
  6. +
` + +publishedOn = publishedOn === '' ? publishDate : publishedOn +--- + + +
+

{title}

+

+ + Published on + + {publishState} + +

+ + + +
+
+ +