Compare commits
4 Commits
19271a179c
...
master
Author | SHA1 | Date | |
---|---|---|---|
a58258034a | |||
090211fd46 | |||
c41dc77d77 | |||
28f8cd3c77 |
4
blog/.quote.template
Normal file
4
blog/.quote.template
Normal file
@ -0,0 +1,4 @@
|
||||
<blockquote>
|
||||
<br>
|
||||
-
|
||||
</blockquote>
|
@ -4,6 +4,8 @@
|
||||
</header>
|
||||
|
||||
<ul>
|
||||
<li><a href="blog-020.html">2024-01-14 Pushing New Boundaries</a></li>
|
||||
<li><a href="blog-019.html">2023-12-01 Seeking New Paths</a></li>
|
||||
<li><a href="blog-018.html">2023-10-31 We Need More Motivation</a></li>
|
||||
<li><a href="blog-017.html">2023-03-29 New Year New Beginnings</a></li>
|
||||
<li><a href="blog-016.html">2022-03-29 Fighting With The Past</a></li>
|
||||
|
16
blog/content-019
Normal file
16
blog/content-019
Normal file
@ -0,0 +1,16 @@
|
||||
<header>
|
||||
<h1>Seeking New Paths</h1>
|
||||
</header>
|
||||
|
||||
<h2>It's Golang</h2>
|
||||
<p>Oh wow, this is going to be a short one. I decided to pick up Golang on a whim and I am pleasantly surprised. I have picked up Golang a few times before, but it never clicked until this time, and oh boy did it click this time. I love the strongly-typed nature of the language, and how ergonomic everything is. Sure, there are some things that I would miss from Python like list comprehensions, but when Golang is blazing fast compiled, do I still miss them? I surely do not miss the pre-optimization going on in my head whenever I write Python.</p>
|
||||
|
||||
<h2>It's The Little Things</h2>
|
||||
<p>Coming from the shithole called the Python packaging ecosystem, Golang set me free. No longer do I have to suffer from pip refusing to install packages, Poetry trying to do weird shit, using virtualenv to create "safe" spaces; Golang allows me to do the most important part of coding itself: the code. Dockerfiles with Python almost always devolve into some unholy incantation of pip and some demonic workaround to "get it right".</p>
|
||||
|
||||
<p>No longer do I have to start thinking about how Python would shank me sideways for "poor" coding decisions; Golang coding styles are simple but straightforward. Golang tests all function calls to make sure that they match the type signatures. The development cycle is tight and fast.</p>
|
||||
|
||||
<p>I just spend an hour yesterday reading about how Flask only has one event loop and one worker, how multiple requests are shared by one worker, oh-my-what-a-terrible-decision-please-use-ASGIS, worrying about having to move to a "production" quality server set up, and all that noise. If I have to read one more "comprehensive" guide on asyncio, threading, subprocesses, and how I need to do some convoluted set up just to get concurrency, I'd rather just git init a new Golang project. On Golang, concurrency is already built into net/http.</p>
|
||||
|
||||
<h2>It's Coming I Swear</h2>
|
||||
<p>After countless of dead projects that my hard drive only knows of, I feel like Golang has truly pushed my determination to places I've never been before. It's exhilarating and exciting. Experienced Golang devs, let me have thismoment, before I crawl back into the depths of Python.</p>
|
19
blog/content-020
Normal file
19
blog/content-020
Normal file
@ -0,0 +1,19 @@
|
||||
<header>
|
||||
<h1>Pushing New Boundaries</h1>
|
||||
</header>
|
||||
|
||||
<h2>Hell Yeah It Is About Golang</h2>
|
||||
<p>I've always wanted to start project and properly finish it. Thanks to Golang and a heck ton of conversations with ChatGPT, I managed to make it happen. No more dead projects in the water, no more stranded code without an end in sight. </p>
|
||||
|
||||
<p>So what is it? What have my grubby little fingers created by hammering these poor blue switches for over 3 months in my spare time? <a href="https://tarot.dingo-bramble.ts.net/index.html">A tarot reader that is</a>. Just a boring tarot reader. Yes, yes, it is done with "AI". Yes, it is done with GPT-3.5. Yes, yes, it is probably worse than those chatbot wrappers you get off Play Store that scams with a hefty annual subscription if you forget to cancel the free trial. You go the site, you "talk" via a text form to an entity that tells you ambiguous futures and whatnots about what's on your mind.</p>
|
||||
|
||||
<h2>How It Works</h2>
|
||||
<p>It is pretty much a Golang chatbot that is prompted to talk like a tarot reader. I generated the tarot card set with Dall-E. Link it up with some basic Postgres tables to store conversation, put it behind Caddy+Tailscale Funnel to serve HTTPS traffic and that is pretty much all. Unimpressive, I know.</p>
|
||||
|
||||
<h2>But Why</h2>
|
||||
<p>Because I can. But really, it is because I never "knew" front end development. In this age of Bootstrap, AngularJS, Tailwind, and whatever is going on with front end development, it has always felt that I am served the same thing but on different plates. This project has allowed me to go in depth on how many things came together. CSS styles, the Javascript DOM model, HTML divs, etc. Never had I spent so much time reading MDN and realized the wealth of knowledge that is available on it.</p>
|
||||
|
||||
<h2>Conclusion And Some More</h2>
|
||||
<p>This project is not "creative". If you are against OpenAI, then this project is "useless" too. But it was not useless to me. The "democratization" of LLMs gave me the push forward to places I have not been before. LLMs was the teacher that I never had, and the assistant that could do "that one thing" that you never really understand.</p>
|
||||
|
||||
<p>What about the poor artists I have ripped off? What about the treasure trove of knowledge that these LLMs were trained on that contains a ton of copyrights and IPs? Should I have stopped to wonder to wonder whether I should, before wondering whether I could? Is this code legitimately "mine"? I do not have the answers. But without the push from LLMs, the barrier of entry to the ever-changing landscape of tech has never been so accessible.</p>
|
21
blog/quote-019
Normal file
21
blog/quote-019
Normal file
@ -0,0 +1,21 @@
|
||||
<blockquote>
|
||||
Woo-wee! Evil Morty! That was quite a scheme. Makes me wonder if there's an evil me out there. But I guess, sometimes I look at my life, and I may not even need ‘im. Cuz, well, guess I made a pretty big mess of things myself. Ooo eee.
|
||||
|
||||
I never got my job at the university back. Remember that? Rick made me do karate. It was kinda funny, but I guess things went downhill from there.
|
||||
|
||||
Started isolating myself from Amy. Used to tell her everything I was feeling.
|
||||
|
||||
But then I guess I stopped.
|
||||
|
||||
Cuz I wanted her to love who she thought I was, not who I felt myself becoming.
|
||||
|
||||
Ever think about how horrified the people we love would be if they found out who we truly are? So we just dig ourselves deeper, into our lies every day, ultimately only hurting the people who were brave enough to love us.
|
||||
|
||||
Wish I didn't do that.
|
||||
|
||||
Wish I was brave enough to love them back. I don't know. Maybe you should try it.
|
||||
|
||||
We don't have as much time as we think. Ooo eee.
|
||||
<br>
|
||||
- Mr. Poopybutthole
|
||||
</blockquote>
|
5
blog/quote-020
Normal file
5
blog/quote-020
Normal file
@ -0,0 +1,5 @@
|
||||
<blockquote>
|
||||
“but what should we do when the highborn and wealthy take to crime? Indeed, if a poor man will spend a year in prison for stealing out of hunger, how high would the gallows need to be to hang the rich man who breaks the law out of greed?”
|
||||
<br>
|
||||
- Terry Pratchett, Snuff
|
||||
</blockquote>
|
24
scripts/new-post.sh
Executable file
24
scripts/new-post.sh
Executable file
@ -0,0 +1,24 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# Change to blog folder
|
||||
cd ../blog
|
||||
|
||||
# Get number of posts
|
||||
POSTNUM=$( ls -l content-* | wc -l )
|
||||
QUOTENUM=$( ls -l quote-* | wc -l )
|
||||
if [[ $POSTNUM -gt $QUOTENUM ]];then
|
||||
NUM=$POSTNUM
|
||||
else
|
||||
NUM=$QUOTENUM
|
||||
fi
|
||||
CURRNUM=$(( $NUM -2 ))
|
||||
|
||||
# Create post and quote from template
|
||||
NEWPOSTNAME="content-$(printf %03d "$CURRNUM")"
|
||||
NEWQUOTENAME="quote-$(printf %03d "$CURRNUM")"
|
||||
cp .blog.template "$NEWPOSTNAME"
|
||||
cp .quote.template "$NEWQUOTENAME"
|
||||
|
||||
# Show new file names
|
||||
echo "$(readlink -e "$NEWPOSTNAME")"
|
||||
echo "$(readlink -e "$NEWQUOTENAME")"
|
Reference in New Issue
Block a user