TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

The Unhinged Nature of GTA V Source Code [video]

64 pointsby veqqover 1 year ago

9 comments

Perentiover 1 year ago
The best comment I ever saw was in a body-corporate-management suite I maintained for a short while.<p>The comment was at the beginning of a 200 000 line pascal program. It was the only comment in the file.<p>It advised anyone being approached to maintain it to at least double their quote, as the code used 1 and 2 letter names for variables, constants, functions and procedures. It also advised that the same variables were used for multiple purposes, and that maintaining it was a total nightmare.<p>The comment was correct. The only variable name that made any sense was l (el, not one), which always held the current line the cursor was on. I was thrilled when I worked out what l (el) did.<p>-- added clarification due to fonts that make l look like I or 1
qaqover 1 year ago
Th best code comment story was told by Joe Armstrong &quot; Robert Virding, who developed Erlang with me, was famed for his comment. Singular. The entire stuff he wrote had one comment: in the middle of the pattern-match compiler there was a single line saying ‘and now for the tricky bit&quot;.
评论 #38899230 未加载
SanjayMehtaover 1 year ago
Two comments which have stuck in my head for decades<p>1. “May the fleas of a 1024 camels infest the armpits of anyone who overflows this buffer.”<p>2. “TODO: this function needs to be spanked.”
评论 #38899284 未加载
willio58over 1 year ago
This is great. The comments totally match the language of the NPCs in the GTA game, like as if they&#x27;re coding their own game.
评论 #38898665 未加载
atestiover 1 year ago
The video only shows some cursing comments from the source code. Did anybody find any real discussions of the internals of gtav after the leak that are interessting? Any new modding projects?
评论 #38900075 未加载
syspecover 1 year ago
To me, comments, and more specifically the tone of the comments are a reflection of the working environment.
评论 #38898811 未加载
Hnrobert42over 1 year ago
That text to speech is terrible.
beenBoutITover 1 year ago
Makes me wonder why there isn&#x27;t something simple that encrypts and decrypts comments.
评论 #38900565 未加载
评论 #38901477 未加载
rabbits_2002over 1 year ago
whenever i work on a private repo the first thing i do is search the code for curse words to find stuff like this lol