00:00
00:00
Gimmick
Thanks for dropping by!
NOTE: My outbox is full, so I may not be able to reply to PMs directly - might PM a reply via my alt or through comments.

Student

Somewhere

Joined on 8/20/08

Level:
28
Exp Points:
8,430 / 8,700
Exp Rank:
4,407
Vote Power:
6.96 votes
Rank:
General
Global Rank:
388
Blams:
1,969
Saves:
23,283
B/P Bonus:
48%
Whistle:
Silver
Medals:
2,487

Old code.

Posted by Gimmick - March 11th, 2023


In my previous newsposts I mentioned I'd been working on ASBoxer/HitShaper/name TBD, and, well looks like time can make a codebase degrade even if nothing's been done to it. It's almost a decade since I first started the project (and 4 years since I stopped working on it) and while the code is readable, it's of somewhat suspect quality.


The document class, main.as, has 7724 lines. 7724. While it's no yandere dev nightmare of if-else chains, and most of the code there serves a purpose (...mostly handling UI stuff...) it's still a warning as to why people shouldn't work on projects solo for continuous periods of time - when you get used to the code base, it can sprawl real quick. And sure, it's probably "necessary" in that there's no duplication, but splitting it off into different classes also felt wrong at the time?


In any case, this was my reaction in a nutshell (warning: loud)

I almost want to just open-source this and make this someone else's problem, but then I realize I'd be a) exposing others to my terrible code (and it's coded in AS3, so insert terrible pun about flashing others ahahaha) and b) nobody's gonna work on it.


Funnily enough the application works, it's just a few parts here and there that are borked to the high heavens. Unfortunately those are the core parts to until I fix those, it's just a shiny user interface and not much else.


Comments

This is the first time of heard of this project of yours. When you say ASBoxer/HitShaper is it like a game or some sort of application?

It's an application for drawing collision shapes in spritesheets. Over the years it grew from that to...well, allowing you to draw any type of shape, for a variety of formats, for exporting to a variety of formats and even options for creating user extensions for if you have an incredibly niche use case in mind.

Here's the first post I made talking about it: https://gimmick.newgrounds.com/news/post/910307
And here's the last time I made a post about it: https://gimmick.newgrounds.com/news/post/1097671 (containing a preview of the latest state of the application)

Nothing's changed since then since it has pretty much remained dormant since then. Given adobe AIR's fall into irrelevance I'm debating just scrapping the thing and redoing it from scratch in a more competent framework and language (which is why I briefly explored using Godot 4 for the task earlier last year), but then I get reminded of just how much work that'd involve, hence pushing this out and dealing with doing it right "later".

USEEEEER OOOOOF THEEEEEEEEEE DAAAAAAAAAAAAAAY11!!!11!1

This is it, I've peaked lol

gratz on UoTD

Thanks lol this was unexpected to say the least

Uotd ayyyyy

I thought this day would never come!