New article and homepage fix
All checks were successful
Docker Deploy / build-and-push (push) Successful in 5m5s

This commit is contained in:
Atridad Lahiji 2025-04-25 00:40:55 -06:00
parent 9dc9225591
commit 16dd4463ae
Signed by: atridad
SSH key fingerprint: SHA256:LGomp8Opq0jz+7kbwNcdfTcuaLRb5Nh0k5AchDDb438
4 changed files with 64 additions and 11 deletions

View file

@ -10,7 +10,6 @@ import * as $index from "./routes/index.tsx";
import * as $post_slug_ from "./routes/post/[slug].tsx";
import * as $posts from "./routes/posts.tsx";
import * as $projects from "./routes/projects.tsx";
import * as $Example from "./islands/Example.tsx";
import * as $NavigationBar from "./islands/NavigationBar.tsx";
import * as $ScrollUpButton from "./islands/ScrollUpButton.tsx";
import type { Manifest } from "$fresh/server.ts";
@ -27,7 +26,6 @@ const manifest = {
"./routes/projects.tsx": $projects,
},
islands: {
"./islands/Example.tsx": $Example,
"./islands/NavigationBar.tsx": $NavigationBar,
"./islands/ScrollUpButton.tsx": $ScrollUpButton,
},

View file

@ -1,7 +0,0 @@
export default function Example() {
return (
<div class="flex flex-row gap-4 text-3xl">
Example
</div>
);
}

View file

@ -0,0 +1,58 @@
---
title: Re-write it in Deno!
published_at: 2025-04-25T15:00:00.000Z
---
So... all new site! I use this site as something of an experiment for whatever
technology interests me. One recently got my attention:
_Deno!_
Yes... Deno the friendly re-imagining of Node.js by Ryan Dahl, the the creator
of Node.js! Now given my recent dive into Golang and HTMX, this might seem odd.
Let me explain:
## Built in TSX and Typescript support!
Deno has built in Typescript support, which has been huge for me. Lets table the
whole "Bun and new Node can do that too" discussion for now. Its simply magical
to have a Typescript codebase without a single tsconfig in sight!
## Security!
Look, the secrity model of Deno is incredible. The idea that the runtime will
default-deny permissions unless you as the developer enables them is an awesome
move.
## Imports
Being able to seamlessly pull from JSR and NPM is amazing! Having those two
ecosystems work without the frustrating package.json dance is refreshing. I
mean, just being able to import directly from URLs? Game changer!
## Built-in tooling
The tooling that ships with Deno is first-class! Formatter, linter, test runner,
doc generator... all built right in! No more spending half a day configuring
eslint, prettier, and jest just to get started on a project. Just use
`deno fmt`, `deno lint`, `deno test` and you're good to go.
## Web standards first
Fetch, web streams, event listeners and so on all work just like they do in the
browser. Coming from Node where you have to remember different APIs between
back-end and front-end JS, this is absolutely a breath of fresh air.
## What about Golang? GOTH Stack?
I still love Go as a language and will continue to use it for certain things.
Its incredibly fast and the concurrency model is awesome, but sometimes you just
want to put together a quick web application and JS frameworks are just much
easier to reach for.
## Whats next?
I'm rebuilding this entire site with Deno Fresh, which is their web framework.
It has their island architecture which means minimal JS sent to the client. Will
I stick with it? Who knows! All I know is this has definitely been a blast of a
re-write.

View file

@ -16,11 +16,15 @@ export default function Home() {
Atridad Lahiji
</h1>
<h2 class="text-2xl font-bold">Places I Exist:</h2>
<h2 class="text-3xl font-bold">
Researcher, Full-Stack Developer, and IT Professional.
</h2>
<h3 class="text-2xl font-bold">Places I Exist:</h3>
<SocialLinks />
<h2 class="text-2xl font-bold">Stuff I Use:</h2>
<h3 class="text-2xl font-bold">Stuff I Use:</h3>
<TechLinks />