Programming Humor
-
This was too funny not to cross-post
derp.foo IP over Spaghetti - derp.fooThere is a discussion on Hacker News [https://news.ycombinator.com/item?id=38733004], but feel free to comment here as well.
-
Looking for a funny story that's been posted before
A few months ago I saw a funny story about a guy who added generics/templates to JavaScript (or maybe TypeScript?) by using runic characters that look like angle brackets to enclose the template parameter, then using a preprocessor to convert the runes, etc. to actual, legal types before compilation. I can't seem to find it anywhere; hoping someone knows what I'm talking about.
-
Believe it or not, git checkout
> Want to make a branch ?
>
git checkout
> Want to make switch branches ?
>
git checkout
> Want to get a specific file version ?
>
git checkout
> Want to get remove changes to one file ?
> Believe it or not, also >
git checkout
-
Windows compatibility
allthatsinteresting.com How Throwing People Out Of Windows Became One Of The Most Bizarre Execution Methods In HistoryThe English language may not have a common word for "the day after tomorrow" — but it does have one for throwing someone out a window.
Is fenestration when you find out if something is windows compatible?
And defenestration when you find out it isn’t?
-
DO NOT TOUCH
Edit: so im done with my preliminary research into this codebase.
Our corporate SSO provider is changing, so I've been updating our tools to take advantage of the new badges. I found this in a web application that I started on today. The original developer is long gone, and according to our PaaS, this app has been running for just under 3 years without an update.
There is no CI/CD, blue-green deployment, or back ups. The database is an H2 db with ddl-auto set to create-drop on startup, meaning that this database will delete itself if the app is restaged but thanks to this guys code, it won't populate itself. 🤷
-
Apollo 11 Lunar Lander "Numero Mysterioso"
From the Apollo 11 github repo: https://github.com/chrislgarry/Apollo-11/blob/b56b8c3d03e810a6ceb69e1c0874d4c89d2c32f6/Luminary099/LUNAR_LANDING_GUIDANCE_EQUATIONS.agc#L666C1-L667C1
-
Our users are smart! They can figure out all the UI features.
Original tweet: https://twitter.com/DesignUXUI/status/576432203560685568
-
Rejected Github Profile Achievements
github.com GitHub - Flet/rejected-github-profile-achievements: 😵 GitHub achievements that did not make the cut.😵 GitHub achievements that did not make the cut. Contribute to Flet/rejected-github-profile-achievements development by creating an account on GitHub.
>A collection listing Achievements that were rejected when creating the GitHub Profile Achievements feature.
>This repository attempts to list them all.
-
SlowDownAndWasteMemory()
// We play this game because we want this to be callable even from places that // don't have access to CallFrame* or the VM, and we only allocate so little // memory here that it's not necessary to trigger a GC - just accounting what // we have done is good enough. The sort of bizarre exception to the "allocating // little memory" is when we transfer a backing buffer into the C heap; this // will temporarily get counted towards heap footprint (incorrectly, in the case // of adopting an oversize typed array) but we don't GC here anyway. That's // almost certainly fine. The worst case is if you created a ton of fast typed // arrays, and did nothing but caused all of them to slow down and waste memory. // In that case, your memory footprint will double before the GC realizes what's // up. But if you do *anything* to trigger a GC watermark check, it will know // that you *had* done those allocations and it will GC appropriately.
Relevant code on line #269
-
I run into this seemingly every other day. Some XKCD's are timeless
Fortunately, the charging one has been solved now that we've all standardized on mini-USB. Or is it micro-USB? Shit.
Link to original XKCD: https://xkcd.com/927/