forge
Explore
Log in

Don't you dare go Hollow

personality

Clone
★ 0

0 watching0 forksRustGPL-3.0460.1 KiB4de8815Tahinli7 days ago22 commits

posts.rs128 lines, 5.8 KiBHistoryRawDownload
1use super::Block;
2
3#[derive(Clone, Copy, PartialEq, Eq, Debug)]
4pub enum PostKind {
5 Letter,
6 Poem,
7}
8
9impl PostKind {
10 pub fn label(self) -> &'static str {
11 match self {
12 PostKind::Letter => "letter",
13 PostKind::Poem => "poem",
14 }
15 }
16}
17
18#[derive(Clone, Copy, PartialEq, Eq, Debug)]
19pub enum Post {
20 Letter20250824,
21 Letter20250216,
22 Awaken,
23}
24
25impl Post {
26 pub const ALL: [Post; 3] = [Post::Letter20250824, Post::Letter20250216, Post::Awaken];
27
28 pub fn from_slug(slug: &str) -> Option<Self> {
29 Self::ALL.into_iter().find(|post| post.slug() == slug)
30 }
31
32 pub fn slug(self) -> &'static str {
33 match self {
34 Post::Letter20250824 => "open-letter-2025-08-24",
35 Post::Letter20250216 => "open-letter-2025-02-16",
36 Post::Awaken => "awaken",
37 }
38 }
39
40 pub fn title(self) -> &'static str {
41 match self {
42 Post::Letter20250824 | Post::Letter20250216 => "Open letter",
43 Post::Awaken => "Awaken",
44 }
45 }
46
47 pub fn kind(self) -> PostKind {
48 match self {
49 Post::Letter20250824 | Post::Letter20250216 => PostKind::Letter,
50 Post::Awaken => PostKind::Poem,
51 }
52 }
53
54 pub fn date(self) -> Option<&'static str> {
55 match self {
56 Post::Letter20250824 => Some("2025-08-24"),
57 Post::Letter20250216 => Some("2025-02-16"),
58 Post::Awaken => None,
59 }
60 }
61
62 pub fn body(self) -> &'static [Block] {
63 match self {
64 Post::Letter20250824 => &[
65 Block::Paragraph("Hi,"),
66 Block::Paragraph("It has been a couple of months since I quit GitHub. In this period I understood a couple of things:"),
67 Block::Paragraph("Only (or mostly) big open-source projects are capable of reaching others and maintaining themselves without using GitHub."),
68 Block::Paragraph("If you are a solo developer or a small team, you have already lost your chance to reach others when you self-host."),
69 Block::Paragraph("Data security, backup and recovery processes are more serious things than they seemed."),
70 Block::Paragraph("CI/CD processes are not free."),
71 Block::Paragraph("Even non-technical people are familiar with GitHub, and it's an indicator for HR departments when applying for a job."),
72 Block::Paragraph("I'm still in the same position as in my 16 February 2025 letter. GitHub is still closed source and owned by Microsoft. I want to own my own code but still need to reach the community, get better CI/CD and have reliable backup opportunities. So from now on,"),
73 Block::Paragraph("I will mirror my repos to different platforms, including GitHub."),
74 Block::Paragraph("Best wishes,"),
75 Block::Paragraph("Ahmet Kaan Gümüş"),
76 ],
77 Post::Letter20250216 => &[
78 Block::Paragraph("Hi,"),
79 Block::Paragraph("Since I'm an open-source developer and a person who relies on open source software, I realized there is a massive contradiction between my perspective and my life. It's GitHub, which is run by Microsoft. It took me a lot of time to understand what I'm doing after using it for many years and pushing thousands of commits for tens of projects."),
80 Block::Paragraph("I don't want this situation to continue. From now on,"),
81 Block::Paragraph("I have archived all of my repositories and plan to log in only for opening issues and pull requests for other projects."),
82 Block::Paragraph("My new projects will not be hosted there."),
83 Block::Paragraph("If an existing project needs an update, or I want to add new things, it will not be there."),
84 Block::Paragraph("You can follow my projects and source codes from https://tahinli.com."),
85 Block::Paragraph("Best wishes,"),
86 Block::Paragraph("Ahmet Kaan Gümüş"),
87 ],
88 Post::Awaken => &[
89 Block::Lines(&[
90 "Does every word flies, if it's not written.",
91 "A life goes by a word that is written.",
92 "Word doesn't know what is written.",
93 "Only feels why it's written.",
94 ]),
95 Block::Lines(&[
96 "Things come and go with a light.",
97 "A cry is woken by the light.",
98 "Does ever the light's gone for a blind.",
99 "Maybe awaken is blinded by the light.",
100 ]),
101 Block::Lines(&[
102 "Time goes with a paper and blood.",
103 "The blood will end by the paper and a heart.",
104 "The paper came with the blood and a knife.",
105 "Hearts will die with the time and the blood.",
106 ]),
107 Block::Lines(&[
108 "Sirens are here to wake.",
109 "The awaken is ready to take a break.",
110 "Screams goes where, when a silence comes to take.",
111 "Take the gap to get a moment to wake.",
112 ]),
113 Block::Lines(&[
114 "The awaken can't feel a thing what is real.",
115 "Does ever be a thing that is not surreal.",
116 "Real isn't the moment to be there to deal.",
117 "Deal is ever be a thing in real.",
118 ]),
119 Block::Lines(&[
120 "Blooded writes these down with a blind mind.",
121 "A mind came by the light to get a heart of a knife.",
122 "The knife cuts the light in a written time.",
123 "The written is the siren for the awaken to die.",
124 ]),
125 ],
126 }
127 }
128}