New article and homepage fix
All checks were successful
Docker Deploy / build-and-push (push) Successful in 5m5s
All checks were successful
Docker Deploy / build-and-push (push) Successful in 5m5s
This commit is contained in:
parent
9dc9225591
commit
16dd4463ae
4 changed files with 64 additions and 11 deletions
|
@ -10,7 +10,6 @@ import * as $index from "./routes/index.tsx";
|
||||||
import * as $post_slug_ from "./routes/post/[slug].tsx";
|
import * as $post_slug_ from "./routes/post/[slug].tsx";
|
||||||
import * as $posts from "./routes/posts.tsx";
|
import * as $posts from "./routes/posts.tsx";
|
||||||
import * as $projects from "./routes/projects.tsx";
|
import * as $projects from "./routes/projects.tsx";
|
||||||
import * as $Example from "./islands/Example.tsx";
|
|
||||||
import * as $NavigationBar from "./islands/NavigationBar.tsx";
|
import * as $NavigationBar from "./islands/NavigationBar.tsx";
|
||||||
import * as $ScrollUpButton from "./islands/ScrollUpButton.tsx";
|
import * as $ScrollUpButton from "./islands/ScrollUpButton.tsx";
|
||||||
import type { Manifest } from "$fresh/server.ts";
|
import type { Manifest } from "$fresh/server.ts";
|
||||||
|
@ -27,7 +26,6 @@ const manifest = {
|
||||||
"./routes/projects.tsx": $projects,
|
"./routes/projects.tsx": $projects,
|
||||||
},
|
},
|
||||||
islands: {
|
islands: {
|
||||||
"./islands/Example.tsx": $Example,
|
|
||||||
"./islands/NavigationBar.tsx": $NavigationBar,
|
"./islands/NavigationBar.tsx": $NavigationBar,
|
||||||
"./islands/ScrollUpButton.tsx": $ScrollUpButton,
|
"./islands/ScrollUpButton.tsx": $ScrollUpButton,
|
||||||
},
|
},
|
||||||
|
|
|
@ -1,7 +0,0 @@
|
||||||
export default function Example() {
|
|
||||||
return (
|
|
||||||
<div class="flex flex-row gap-4 text-3xl">
|
|
||||||
Example
|
|
||||||
</div>
|
|
||||||
);
|
|
||||||
}
|
|
58
posts/rewrite_it_in_deno.md
Normal file
58
posts/rewrite_it_in_deno.md
Normal 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.
|
|
@ -16,11 +16,15 @@ export default function Home() {
|
||||||
Atridad Lahiji
|
Atridad Lahiji
|
||||||
</h1>
|
</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 />
|
<SocialLinks />
|
||||||
|
|
||||||
<h2 class="text-2xl font-bold">Stuff I Use:</h2>
|
<h3 class="text-2xl font-bold">Stuff I Use:</h3>
|
||||||
|
|
||||||
<TechLinks />
|
<TechLinks />
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue