Skip to content

Commit b24a198

Browse files
Updated tagline
1 parent fd50ce8 commit b24a198

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

docs/.vitepress/config.mts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { defineConfig } from 'vitepress'
33
// https://vitepress.dev/reference/site-config
44
export default defineConfig({
55
title: "TypeScript is Like C#",
6-
description: "Outgrowing Node.js? If you already know TypeScript, then learning C# is easy! This guide walks you through the similarities (and differences) between TypeScript and C#",
6+
description: "A guide for backend devs. If you already know TypeScript, then learning C# is easy! This guide walks you through the similarities (and differences) between TypeScript and C#",
77
sitemap: {
88
hostname: 'https://typescript-is-like-csharp.chrlschn.dev'
99
},

docs/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ layout: home
44

55
hero:
66
name: "TypeScript is Like C#"
7-
text: "Outgrowing Node.js?"
7+
text: "A Backend Guide"
88
image:
99
src: /csharp-logo.png
1010
alt: C# logo
@@ -18,7 +18,7 @@ hero:
1818
link: /pages/basics/variables
1919
- theme: alt
2020
text: Let's Deep Dive!
21-
link: /pages/intermediate/nest-vs-controller-api
21+
link: /pages/intermediate/databases-and-orms
2222

2323
features:
2424
- title: Easy to Learn

docs/pages/intermediate/databases-and-orms.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -617,7 +617,7 @@ var loadedRunners = await db.Runners
617617
</template>
618618
</CodeSplitter>
619619

620-
I've taken some liberal formatting here to help make the Prisma query more readable, but you can see that as the query gets larger, it is actually quite difficult to manage and refactor while the EF query remains quite legible and easy to understand. .NET has first-class expression trees that can be evaluated at runtime to produce the queries whereas on the Prisma side, the code is effectively *building and expression tree*.
620+
I've taken some liberal formatting here to help make the Prisma query more readable (Prettier would make this code even more lines!), but you can see that as the query gets larger, it is actually quite difficult to manage and refactor while the EF query remains quite legible and easy to understand. .NET has first-class expression trees that can be evaluated at runtime to produce the queries whereas on the Prisma side, the code is effectively *building and expression tree*.
621621

622622
With Prisma, a better strategy might be to use Prisma on the write side and [Kysely](https://kysely.dev/) on the read side much like how some teams with C# might use Entity Framework on the write side and [Dapper](https://github.com/DapperLib/Dapper) on the read side for more complex queries (though Entity Framework's threshold for complex read queries is higher than Prisma's).
623623

@@ -709,7 +709,7 @@ See [**the unit tests in the repo**](https://github.com/CharlieDigital/typescrip
709709
<CodeSplitter>
710710
<template #left>
711711

712-
```ts{43,52,55-60}
712+
```ts{43,53,56-61}
713713
// 📄 results-repository.ts: Sample repository
714714
@Injectable()
715715
export class ResultsRepository {

0 commit comments

Comments
 (0)