Come on kids, let's make #sourcecodesunday a thing!
24 comments
@Haeckse I think you mean #RollbackSaturday. #RolebackSaturday would maybe be about the new member of the development team being sent back to his job in the post room. @scrat @grumpygamer I see your angle, Christian. #include <iostream> int main(int argc, char** argv) @grumpygamer what's the expectation? Show our own source code? Show some/any source code? @ge0rg exactly my fear if showing any source code. I predict 8 out of 10 showings to be about the horror that is someone else's code. @grumpygamer @grumpygamer Well this sunday's code is embarrassing (some level editor undo-redo code retrofitted into old code that wasn't first written with this is mind), so here's a (what I thought back in the day was) minimal code for supporting drag and drop into a Windows window: https://github.com/alexGuntha/mindragndropwin/tree/master/src @grumpygamer If Ron Gilbert says so, it's probably a good idea. This isn't the most impressive block of code, but it might be the most important. I had to write this to fix a bug in a source library. Turns out, OpenStreetMap has some places in its database that have more shapes than .NET has stack memory. Replacing the recursive call with a simple list lets this work on the whole globe now. I wrote this code without thinking, and then I stopped to look at what I had written... Oh dear. Some context: It's part of ScummVM's implementation of the "About" dialog for the Macintosh version of Loom. It contains two images: One with the Lucasfilm Games logo, and one with the Loom logo. This is just part of cleaning up once the dialog had finished. Though I'm told this is one of the few (perhaps the only?) version of Loom that Limited Run Games didn't unearth for their Loom re-release. I haven't completely ruled out that I did something bad after all... @grumpygamer Here is my cute rabbit : https://git.afpy.org/Mindiell/iopcc/src/branch/main/iopcc_2023/fibonacci.py Hey ! You ask for code ! @grumpygamer behold my FindPath function, which uses an A* search to find the shortest path between two tiles on a hex grid using only tiles of the same type. To be expanded. 👀 @grumpygamer with this toot you have instantly locked the two wolves inside me in a mortal battle between "yeah! programming is fun and cool!" and "no! promulgating a toxic hustle culture will burn people out!" @grumpygamer both wolves agree you should camel-case your hash tags though: https://www.okabletech.org/every-day-is-hump-day-why-you-should-camelcase-your-hashtags-on-social-media/ @grumpygamer @Eliot_L oh thanks! I did see it needed merge conflicts fixed but hadn't had time to get to it @pixellight No worries! Happy to help get this merged, thank you for implementing it initially. Like I said this feature is so important to me I have been running a custom fork of Tusky for years just to get it. So I am happy I convinced ConnyDuck that we should merge this feature, finally. MODULE Sunday; |
@grumpygamer we could make it a double-date with #deployToProdFriday! 😆