
🦀 live coding Rust by hand at https://teapawt.net/t.co/MPpCiuqw60 ⛏️ building a Minecraft server from scratch ⚒️ @forgewaredev • 🧪 @nostackslab
NYC
Joined May 2023
- Tweets6.5K
- Following2.4K
- Followers1.4K
- Likes71.5K
Pinned Tweet
I forced myself to live code again to keep myself publicly accountable and document my progress over time.
It'll be a long-running series but I want to be consistent for at least 30 days first.
Koko retweeted
The older I get, the more I realize: An average person with exceptional consistency will outperform a talented person with endless excuses.
The age of abundance costs $200/mo minimum, sourced from data stolen from everyone.
Basically the same playbook as Nestle, stealing water supplies, bottling it, and selling it back to local communities.
Just something to think about before outsourcing your mind completely.
8
187
This is a sign to learn systems programming.
We must do everything we can to avoid the futures depicted in Idiocracy and WALL-E. The last thing we want to outsource are our minds.
5
255
AI is junk food for the brain. If we're not careful on our intake, our minds will suffer.
We need mental exercise to keep our minds fit, just like we need gyms to keep our bodies fit.
TERENCE TAO SAYS AI WILL DO TO OUR BRAINS WHAT CHEAP FOOD DID TO OUR BODIES
for most of history life was the workout. then food got cheap and people had to start watching their diet on purpose
tao says thinking is next:
"you have to watch your mental diet, and you do have to maintain mental exercise"
MIT had students write essays with ChatGPT. minutes later 83% couldn't quote a single sentence they'd "written"
the ones who wrote on their own first and got ChatGPT later used it better, and their brain activity went up
the struggle before the answer is the part your brain keeps
an answer you didn't work for is easy to get and even easier to forget
would you let your kid use AI for homework from day one, or make them struggle first?
2
258
This is why I'm betting against pure vibe coding and slowing down to attempt solving difficult problems manually AT LEAST once, before I delegate to an agent.
The hard part is being honest with myself on my mastery level, because if I'm not, the result could be catastrophic.
If I can practice a small subset of a skill, and learn how behavior and constraints change at a larger scale, that would make AI-assisted coding much easier and palatable.
But I know my skill level is not at that level yet, so I still have to code manually until I master those fundamental concepts.
Not every AI-related advice is applicable to everyone, because everyone is at different stages of their mastery. We each have to find the workflows that work for us and adapt accordingly.
I be memeing
teapawt.net/0x45o/status/211583259…
2
27
My trick for reducing distractions is to use a separate browser for "work only" mode, with very few logged-in sites, like GitHub.
No YT, no X, not even AI search except for free ones. This prevents most doomscrolling and rabbit-holing, and fixes my baseline level of dopamine.
Having too much dopamine is a dangerous thing, as it will make coding feel boring, even if I'm working on interesting and exciting problems.
2
186
Day 23 of live coding Rust by hand.
Small TCP server set up to accept handshake request from Minecraft client. This means we'll be able to send a response back soon, to list server details in server list!
Day 22 of live coding Rust by hand.
Had a nasty cough, didn't do much coding, just a lot of yapping. But I did try to map out the server architecture in order to find the easiest vertical slice to implement.
1
8
368
If you want to follow the project progress of "the worst Minecraft server implementation in Rust"
github.com/devkokooo/Nylium
2
55
This is why I'm focusing on Rust and Minecraft server engineering for a season instead of jumping between 5 different stacks.
I need to acquire alien-level skills.
Pursue a domain you love. But simultaneously get so insanely technically skilled at math/coding/AI that you can apply it to your domain of interest in an innovative way. Deep domain expertise plus alien-level technical skills equals lots of interesting and rewarding work to do.
1
5
222
Good advice to follow
the best way to understand any engineered system is to trace:
- 1 bit of information
- 1 joule of energy
- 1 newton of force
from source to destination. once you can do this, your engineering task becomes much simpler. you will probably solve 5 or 6 problems on accident as you try to trace these flows.
8
333
Dayum, it generated 83 MB worth of logs in seconds.
Client tells the server that clientside tick has ended, 20 times a second.
Client also tells server to set player position, rotation, and head rotation, EVEN WHEN STANDING STILL.
Multiplayer will be a pain to implement.
Replying to @DevKokooo
Also this is a cool tool to sniff the packets between client and server to better visualize what the expected payloads are. Will be using it for testing.
github.com/adepierre/SniffCr…
4
270
Day 22 of live coding Rust by hand.
Had a nasty cough, didn't do much coding, just a lot of yapping. But I did try to map out the server architecture in order to find the easiest vertical slice to implement.
Also this is a cool tool to sniff the packets between client and server to better visualize what the expected payloads are. Will be using it for testing.
github.com/adepierre/SniffCr…
The state of the world right now
>junior dev at a mid startup
>wednesday morning
>just want to push a minor bugfix to our php app today
>open laptop, check slack
>company group chat is an absolute warzone
>CTO typing in all caps about php2shell
>fucking php
>whatever, server hasn't blown up yet, I just need to get my code in
>open gitlab to merge the PR
>forced emergency logout because of a critical gitlab security patch release
>fucking gitlab
>pipeline fails because of some weird regex compiler bug
>spend 40 minutes fighting CI/CD
>i can just use AI to help debug
>fire up opencode
>api keys nuked because they were breached
>fucking opencode
>i’ll just get fresh LLM api keys from our corp proxy, LiteLLM
>it won’t connect? It’s down?
>look up LiteLLM news: supply chain compromise
>fucking litellm
>cold sweat forming
>slack alert: db connection error
>check our database connection
>we host on TiDB Cloud
>they just announced a security breach, unauthorized access via stolen service account credentials, data copied
>fucking tidb cloud
>full panic attack incoming
>figure fuck it, just ship the container to Railway and go home
>open Railway dashboard
>bright red banner: "Security Disclosure: Rotate all environment variables immediately. All builds paused."
>fucking railway
>try to open the app URL in browser to see if anything is even working
>NET::ERR_CERT_AUTHORITY_INVALID
>eMudhra intermediate certificates compromised
>4
>instantly untrusted by every major browser
>fucking emudhra
>stare blankly at mac screen for 10min
>random pop-up
>restarting in 10min to fix a critical vulnerability
>fucking macos
>close laptop
>leave office
>never come back
2
132















